NEED experts soft touch on 5/34 Histogram and 5 bar signal line

#1
Experts

Plz provide ur co-operation once again for adding scan code of buy/ sell code

Regards and adv thanks


Buy condition= if the histogram is above the signal line
Sell condition= if the histogram is below the signal line


**********************************/

outsidebar = Outside();
insidebar = H <= Ref(H,-1) AND L >= Ref(L,-1);
upbar = H > Ref(H,-1) AND L >= Ref(L, -1);
downbar = L < Ref(L,-1) AND H <= Ref(H,-1);
barcolor=IIf(outsidebar, 1,
IIf(downbar, 4,
IIf(upbar, 5,
IIf(insidebar,6, 0 ) ) ) );

/*barcolor=
iif(outsidebar, 1, iif(downbar, 4, iif(upbar,5, 0) ) );*/


var1=MA( Avg, 34);
var2=MA( Avg,5);
Graph0=var2-var1;
Graph0Style=2+4;
Graph1=MA(var2-var1,5);
Graph1Style=4+1;
Graph0BarColor=Barcolor;
_SECTION_END();
 
#2
I tried to solve like this but not working..........can anyone solve it...plz


outsidebar = Outside();
insidebar = H <= Ref(H,-1) AND L >= Ref (L,-1);
upbar = H > Ref(H,-1) AND L >= Ref(L, -1);
downbar = L < Ref(L,-1) AND H <= Ref(H,-1);
barcolor=IIf(outsidebar, 1,
IIf(downbar, 4,
IIf(upbar, 5,
IIf(insidebar,6, 0 ) ) ) );

/*barcolor=
iif(outsidebar, 1, iif(downbar, 4, iif(upbar,5, 0) ) );*/


a=var1=MA( Avg, 34);
b=var2=MA( Avg,5);
C=Graph0=var2-var1;
Graph0Style=2+4;
d=Graph1=MA(var2-var1,5);
Graph1Style=4+1;
Graph0BarColor=Barcolor;
_SECTION_END();




Buy = Cross(a,b) AND Cross(C,d);
Sell = Cross(b,a) AND Cross(d,C);
PlotShapes(Buy*shapeUpTriangle,colorGreen,0,Graph0);
PlotShapes(Sell*shapeDownArrow,colorRed,0,Graph0);
 

Similar threads

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?