simple coding!

veggen

Newbie
Messages
6
Likes
0
Hi!!

Can somebody help me writing a code for a color changing moving average?

Green if up, and red if down, that is what I am working on.

I have little experience with code writing, or come to think of it - no experience.

I know where to write the code, that is all!

I am using OpenEcry, and it will understand Easy Language, .Net and C#

Please someone, I am desperate :cry:

Regards, veggen
 
Easy Language Code:

Code:
Inputs:  Price( Close ), Length( 9 ) ;

Variables:  MovAvg( 0 ) ;
	
MovAvg = AverageFC( Price, Length ) ;

Plot1( MovAvg, "MovAvg" ) ;

If MovAvg > MovAvg[1] Then SetPlotColor( 1, Green ) ;
If MovAvg < MovAvg[1] Then SetPlotColor( 1, Red ) ;
 
Top