Traders Laboratory - View Single Post - Some EasyLanguage Help Please
View Single Post
  #4 (permalink)  
Old 10-14-2007, 07:18 PM
Dogpile Dogpile is offline
Dogpile has no status.

 
Join Date: May 2007
Posts: 577
Thanks: 0
Thanked 7 Times in 5 Posts
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.
Attached Images
File Type: png EL Doc.png (14.6 KB, 29 views)

Reply With Quote