glgene 618 posts msg #130104 - Ignore glgene | 
7/27/2016 10:23:31 PM
  This is my first experimental SF script using the "Count" feature.  I can get my desired results with the MA50 count, but the script falls apart when I try to add an RSI14 (and total-- either 0, 1 or 2) count.  Here is my script.  Any suggestions?
 
 
  	    
 
  | 
four 5,087 posts msg #130106 - Ignore four modified | 
7/27/2016 11:28:12 PM
  Retyped from scratch and simplified variable names.
 Removed 'multiply by 1'
 
  	    
 
  | 
glgene 618 posts msg #130147 - Ignore glgene | 
7/28/2016 10:41:56 PM
  Thank you, FOUR.  Mission accomplished.  I added a 3rd indicator (MACD-histogram) to the total mix, using your flow of SF script.  I really wanted the MACD-PPO, but the script didn't like it.  That's OK... because all I need is when either MACD number is positive or negative.  It's the "crossover" that I am concerned with.
 
 As you know, the MACD-Histogram and MACD-PPO [Percent Price Oscillator] have identical crossover points (Histogram is in $ and cents amt; PPO is in % amt).
 
 It is my understanding that...
 PPO =  MACD histogram(12,26,9) divided by EMA(26).
 I use the PPO number in a report I produce so I can compare different stocks on an apples-to-apples basis.  Histogram doesn't allow a good comparison... but it works fine on an individual stock.
 
 Without your assistance, I would not have figured out how to make Count work in my desired manner.  THANK YOU.
 -- Gene
 
  | 
four 5,087 posts msg #130148 - Ignore four modified | 
7/29/2016 1:37:04 AM
  You are very welcome.
 
 I had to check your statement about them being the same and found they are not both MA nor both EMA.
 
 From Indicator page in StockFetcher :
 
 The Percent Price Oscillator (PPO) 
 
 is computed by taking the difference between two simple moving averages.
 
 --
 
 Moving Average Convergence Divergence (MACD)
  
 Parameters 
 Period Fast EMA
 Period Slow EMA2
 Smoothing Period 
 
 And
   http://www.stockfetcher.com/forums/General-Discussion/PPO-vs-MACD/96423
 
 
  | 
graftonian 1,089 posts msg #130166 - Ignore graftonian modified | 
7/29/2016 1:30:29 PM
  extra comma after "49.99" in original script.
 
  |