hi Friends,
I have one indicators afl. These indicator give Buy sell signal on chart. But no of signal in intraday is so much. so i want to filter these buy sell signal. condition is.
1. if 15 min charts 11.00 am candel is close and he show buy call and next candal is break pereviouse candel hig so these buy call is continue but if next candel is not break previuse candel high so i dont want these buy call on chart.
Condition is only if buy next candel is break previous candel high and if sell next candel break previous candel low. only if these condition is fullfill i want call on chart other wise reamaning all call are not show on chart.
If any one can do these pls try
I give Buy sell afl Below
_SECTION_BEGIN("Awsome Oscilator");
center=(H+L)/2;
t1=Optimize("t1",34,20,50,3); //slow MA param
t2=Optimize("t2",5,3,10,1); //fast MA param
awi=MA(center,t2)-MA(center,t1);
//Plot(awi,"Awsome",IIf(awi>Ref(awi,-1),colorGreen,colorRed),styleHistogram | styleThick);
Buy=Cover=
Cross(awi,0) OR //cross 0
(awi>Ref(awi,-1) AND Ref(awi, -BarsSince(awi<Ref(awi,-1)))>LLV(awi,BarsSince(awi>0))) OR //lower high built
(awi>Ref(awi,-1)) // awi direction change to positive above 0 level
;
Short=Sell=
Cross(0,awi) OR //cross 0
(awi<Ref(awi,-1) AND Ref(awi, -BarsSince(awi>Ref(awi,-1)))<HHV(awi,BarsSince(awi<0))) OR //higher low built
(awi<Ref(awi,-1)) // awi direction change to negative below 0 level
;
Buy=Cover=ExRem(Buy,Sell);
Sell=Short=ExRem(Short,Cover);
//PlotShapes( IIf( Buy, shapeNone , shapeNone ), colorWhite );
//PlotShapes( IIf( Short, shapeNone, shapeNone ), colorWhite );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
Plot( Close, "Price", colorBlack, styleCandle );
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );
GraphXSpace = 5;
_SECTION_END();