RAJASWAMY LONG TRADING for Amibroker (AFL)
rajaswamy over 15 years ago Amibroker (AFL)
HI THIS IS RAJASWAMY THIS AFL IS USED FOR DELIVERY PURPUSE YOU HAVE TO TAKE POSITION ONLY IN EOD BASED THE CORNFIRMATION IS DARK GREEN LINE DONT TAKE POSITION IN DASHED GREEN LINE THANK YOU
Screenshots
Indicator / Formula
Copy & Paste Friendly
SetChartOptions( 0, chartShowDates | chartShowArrows | chartLogarithmic | chartWrapTitle );
_N( Title = StrFormat( "{{NAME}} - " + SectorID( 1 ) + " - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " + WriteVal( V, 1.0 ) + " {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );
Plot( C, "Close", colorRose, styleCandle | styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
if ( ParamToggle( "Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip = StrFormat( "Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: " + NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 ) ) );
}
pds1 = Param("ATR Lookback", 10,2,50,1);
mult = Param("ATR MUltiplier", 2.0,0.5,5.0,0.5);
Pds2 = Param("Periods Lookback", 20,2,100,1);
//{Volatility Stop (Long)}
PrelimStopLong = HHV(H,Pds1) - ATR(Pds1)*Mult;
ActualStopLong = HHV(PrelimStopLong,Pds2);
//{Volatility Stop (Short)}
PrelimStopShort = LLV(L,Pds1) + ATR(Pds1)*Mult;
ActualStopShort = LLV(PrelimStopShort,Pds2);
Plot(PrelimStopLong, "PrelimStopLong", colorRed, styleDashed);
Plot(ActualStopLong, "ActualStopLong", colorGreen, styleThick);2 comments
Leave Comment
Please login here to leave a comment.
IT IS NOT SHOWN IN AMI 5.00
I’ve just combined between the same prelim or prelim to actual or each other, and finally result a very good afl. So simply and powerfull. I like it very much. Thank’s for this contribution.