hi guys.
I need help. I will like to run a scan/exploration on an AFL titled 
"BREAKOUTS". I reduced the parameters to (lookback= 10) & (Shift=5). I need it 
to give me "H1'' & "L1" points prices of each stocks and perhaps a BUY/SELL 
within these regions.
Thanks I will really appreciate.


_SECTION_BEGIN("BREAK OUTS");
H0=H;

L0=L;

C0=C;

O0=O;

Lookback=Param("LookBack",22,10,50,1); // Default for interday commodity 
currency trading

shift=Param("Shift", 11,1,50,1);                     // ?

x0=LastValue(Cum(1));

x1=x0-shift;

H=Ref(H,-shift+1);

L=Ref(L,-shift+1);

H1=LastValue(Ref(HHV(H,Lookback),-1));

L1=LastValue(Ref(LLV(L,Lookback),-1));

Plot(H1,"H1",colorYellow);

Plot(L1,"L1",colorYellow);

H=H0;L=L0;C=C0;O=O0;

up=Cross(H,H1) AND Cum(1)>x1;

dn=Cross(L1,L) AND Cum(1)>x1;

Plot(C,"Close",IIf(Cum(1)>x1-Lookback AND Cum(1)<=x1,colorBlue,IIf

(Up,colorBrightGreen,IIf( Dn,colorRed,colorBlack))),64);

PlotShapes(shapeDownArrow*(Cum(1)==x1+1),colorBlue);


_SECTION_END();

Reply via email to