Skip to main content

SMART TRADING SYSTEM for Amibroker (AFL)

ginto over 11 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 5)
  • Tags:
    trading system, amibroker

TRADE AND ENJOY THE MARKET MOVEMENT WITH PROFIT.
By Ginto

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("SMART TRADING SYSTEM ");
GraphXSpace = 15;
A = DEMA(C,2);
BH = DEMA(a,34)+2*(StDev(a,34));
BL = DEMA(a,34)-2*(StDev(a,34));
BM = (BH+BL)/2;
Highs = TEMA(High, 30);
Lows = TEMA(Low, 30);
A = DEMA(L,2);
BH = DEMA(A,34)+2*(StDev(A,34));
BL = DEMA(A,34)-2*(StDev(A,34));
BM = (BH+BL)/2;
A = DEMA(H,2);
BH = DEMA(A,34)+2*(StDev(A,34));
BL = DEMA(A,34)-2*(StDev(A,34));
UpTrend = C > Highs;
DnTrend = C < Lows ;
BM1 = (BH+BL)/2;
Sell=Cross(BM,C);
Buy=Cross(C,BM1);
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
PlotShapes(IIf(Buy, shapeHollowUpArrow, shapeNone),colorGreen, 0,L, Offset=-45); 
PlotShapes(IIf(Sell, shapeHollowDownArrow, shapeNone),colorRed, 0, H, Offset=-35);Colors = IIf(UpTrend, colorGreen, IIf(DnTrend, colorRed, colorLightGrey));
Plot(Close, "Price", Colors, styleCandle | styleThick);
_SECTION_END();

8 comments

over 11 years ago

remove the last bracket in the sixth line.

corrected line: *BM = (BH+BL)/2;

it will work

4. axay
over 11 years ago

if you have error in any code in any afl just comment it and the author will rectify it like this one. thnak you.its working now. removed by admin

over 11 years ago

hi sir, i am new for trading please advice me how i use this indicator in amibroker ,
send details to sornapercula@gmail.com
thanks

about 11 years ago

hi, nice indicator, but i am not able to backtest in amibroker using the same via analysis…can u suggest any solution?

Leave Comment

Please login here to leave a comment.