| jfehrman 3 posts
 msg #107417
 - Ignore jfehrman
 | 8/7/2012 9:08:30 AM 
 W/ my limited knowledge of SF coding, I am having difficulty figuring out how to create an indicator that returns a set of values, ie overbought returns a 1, neutral returns a 0, oversold returns a -1.  I have 5 indicators and I'm aiming to amalgamate the 5 into one score, which would read -5 if all 5 indicators were oversold and 5 if all were overbought.  For instance:
 
 If Indicator_1 is greater than .8, value return should be 1.
 If Indicator_1 is less than .2, value returned should be -1.
 If Indicator_1 is .8>.2, value returned should be 0.
 
 Final_Indicator is the sum of values returned for Indicator_1, Indicator_2, ... Indicator_5.
 
 Any help would be greatly appreciated!
 
 
 |