|
Re: Some EasyLanguage Help Please
surely my way isn't the most elegant but it works:
--------
value1=average(c,2);
value2=average(c,5);
value3=value1-value2;
value4=lowest(value3,10)[1];
condition1=value4>0 and value1<value2;
if condition1 then
plot1(1,"10 abv");
--------
I plotted it at the bottom as a histogram to show a blue bar (value of '1') if the 2 period MA was > 5 period MA for 10 bars then crossed below it last bar.
|