// CDC ActionZone V2 29 Sep 2016
// CDC ActionZone is based on a simple 2MA and is most suitable for use with medium volatility market
// 11 Nov 2016 : Ported to Trading View with minor UI enhancement
// from TradingView by Aj Piriya33 + convert to Amibroker by Dreamscat
src = (O+H+L+C)/4;
prd1 = 12;
prd2 = 26;
AP = ema(src,2);
Fast = ema(AP,prd1);
Slow = ema(AP,prd2);
Bullish = Fast>Slow;
Bearish = Fast<Slow;
Green = Bullish and AP>Fast;
Red = Bearish and AP<Fast;
Yellow = Bullish and AP<Fast;
Blue = Bearish and AP>Fast;
Buy = Bullish and Ref(Bearish,-1);
Sell = Bearish and Ref(Bullish,-1);
//Plot
Plot(Fast,"Fast",colorRed);
Plot(Slow,"Slow",colorBlue,styleThick);
BarColor = IIf(Green,colorLime,IIf(Red,colorRed,IIf(yellow,colorYellow,IIf(blue,colorlightBlue,colorWhite))));
CloudColor = IIf(Green,colordarkgreen,IIf(Red,colordarkRed,IIf(yellow,colordarkYellow,IIf(blue,colordarkBlue,colorGrey50))));
Plot(C,"Price",BarColor,styleCandle);
PlotOHLC(Fast,Fast,Slow,Slow,"",CloudColor,styleCloud);
การใช้โปรแกรม AMIBROKER เบื้องต้น Part 6.5 (การนำ SYSTEM ทีมีอยู่แล้วมาใส่ใน AMIBROKER) โดยอาจารย์พิริยะ ครับ
This reply was modified 4 years, 5 months ago by dreamscat.
This reply was modified 4 years, 5 months ago by dreamscat.