Hi,
I have a afl that i need to write in tradescript code, its called +100-100 indicator. I also need alert to be generated when any script matches criteria.
Thanks,
Hi,
I have a afl that i need to write in tradescript code, its called +100-100 indicator. I also need alert to be generated when any script matches criteria.
Thanks,
Specify / Post that afl condition, will check the possibility.
If you can provide the logic in simple english it should be helpful as atleast someone can try.
But I believe it may not be possible as tradescript is very basic language and AFL uses many functionalities which are not available on tradescript.
Anyhow post the logic in simple english instead posting your AFL code.
Hi,
Below is the afl.
_SECTION_BEGIN("+100");
Plot(100,"",7,styleLine);
Plot(-100,"",7,styleLine);
n=9;
ys1=(High+Low+Close2)/4;
rk3=EMA(ys1,n);
rk4=StDev(ys1,n);
rk5=(ys1-rk3)100/rk4;
rk6=EMA(rk5,n);
UP=EMA(rk6,n);
DOWN=EMA(up,n);
Oo=IIf(up<down,up,down);
Hh=Oo;
Ll=IIf(up<down,down,up);
Cc=Ll;
barcolor2=IIf(Ref(oo,-1)<Oo AND Cc<Ref(Cc,-1),colorBlue,IIf(up>down,colorGreen,colorRed));
PlotOHLC( Oo,hh,ll,Cc, "Modified " + Name(), barcolor2, styleCandle );
_SECTION_END();
Buy=Cross(Cc,-100);
Short=Cross(100,Cc);
PlotShapes(BuyshapeUpTriangle,colorGreen,0,Cc,-3);
PlotShapes(ShortshapeDownTriangle,colorRed,0,Cc,-3);
Thanks,
Aparna
Than why you super hipe about Pi Bridge, it doesn’t take signal directly from amibroker AFL code, than I can’t understood the use of Pi-Bridge?