Can someoneplease look at the attached file.
For the varaibles dss and EMA2 i want to be able to put in a condition for color coding my bars based on whether the dss value of the previous bar is either equal to a greater than the ema2 value of the previous bar as in
if(dss(-1)<ema2(-1))
when i put this expression in the efs i get an error
However when i put in conditon of if dss>ema2 for the same purpose my efs works fine.
Is there another set of variables i need to define to set this up
such as dssprev=dss.getvalue( xxx. ,-1) . If so can you show me the proper expression.
Thanks to everyone on this board ive have immensely improved my knowledge of programming in the javascript but i obviuosly have much to learn still.
For the varaibles dss and EMA2 i want to be able to put in a condition for color coding my bars based on whether the dss value of the previous bar is either equal to a greater than the ema2 value of the previous bar as in
if(dss(-1)<ema2(-1))
when i put this expression in the efs i get an error
However when i put in conditon of if dss>ema2 for the same purpose my efs works fine.
Is there another set of variables i need to define to set this up
such as dssprev=dss.getvalue( xxx. ,-1) . If so can you show me the proper expression.
Thanks to everyone on this board ive have immensely improved my knowledge of programming in the javascript but i obviuosly have much to learn still.
Comment