創富坊
【如何在Amibroker編寫Acceleration Oscillator 這指標】
1)開啟formula editor
(按圖可放大)
2)將以下copy到formula editor
_SECTION_BEGIN(“ACCELERATION OSCILLATOR");
MAAvg34 = MA(Avg, 34);
MAAvg5 = MA(Avg, 5);
MADiff = MAAvg5 – MAAvg34;
AO = MA(MADiff – MA(MADiff, 5), 5);
ACUpBar = AO > Ref(AO, -1);
ACDownBar = AO < Ref(AO, -1);
Plot(AO,"AO",IIf(ACUpBar,colorGreen,colorRed),styleHistogram|styleThick);
Plot(0,"",15);
_SECTION_END();
3) 儲存在custom的file
4) right click 指標按insert 便能將指標放在圖表上分析