Simple Coding Help - No Promise.

Aman1

Well-Known Member
Nope. For those who wish to explore here is the link arthachitra .com
But this is not the proper place for that discussion as this is a ami help thread. I was just asking if anyone is using Arthachitra? Any way a seperate thread will be much better idea for that.
 

Nehal_s143

Well-Known Member
Hi
I am using Algo for trading
I need help in setting Trailing Stoploss.
So that when ever my position goes in profit I can save my profit with changing Sl in Afl
I am using Master trust Algo.
 
//ScalperHighLow Bracket By JRA Jan 2015
HX=Ref(H,-1);
LX=Ref(L,-1);
TicksOffset= Param("TicksOffset",0.0001,0.0001,0.50,0.0001);//NofTicksAboveorBelow
y0=LastValue(HX)+TicksOffset;
y1=LastValue(LX)-TicksOffset;
Offset = 2;
for(i=BarCount-2;i>1;i--)
{
bars = i;
i = 0;
}
Plot(LineArray(bars-Offset, y0, BarCount, y0,1), "", colorDarkRed, styleLine|styleLine|stylenolabel, Null, Null, Offset);
Plot(LineArray(bars-Offset, y1, BarCount, y1,1), "", colorDarkRed, styleLine|styleLine|stylenolabel, Null, Null, Offset);
for (i=bars; i <BarCount;i++)
{
if (C>y0)
color=colorblue;
else
color = Null;
PlotText(""+Y0, BarCount+1,Y0,Null,color);
AlertIF( C>y0, "SOUND C:\\Windows\\Media\\ringout.wav", "Audio alert", 1 );
}
for (i=bars; i <BarCount;i++)
{
if (C<y1)
color=colorred;
else
color = Null;
PlotText(""+Y1, BarCount+1,Y1,Null,color);
AlertIF( C<y1, "SOUND C:\\Windows\\Media\\ringout.wav", "Audio alert", 1 );
}

dear all this afl is high low of previous candle can any one add buy sell signal in high low breakout. buy signal is wheh candle cross above high and vice versa for sell signal
thanks
 

Similar threads