Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Open Close MA Cross for Amibroker (AFL)

5 / 5 (Votes 1)
amibroker, open, close, moving average

Moving average between open and close provides better signals during trending market.

The below script generates buy (green arrow), exit buy(blue arrow), sell (red arrow), exit sell (yellow) signals for 15min and 30min intraday timeframe.


Indicator / Formula

Copy & Paste Friendly

Open Close moving average cross for 15m and 30m intraday


mamain = MA(C,3);
masig = MA(O,3);


buycross = Cross(mamain,masig);
sellcross = Cross(masig,mamain);
LE = diff > 8 ;
SE = diff < -8 ;
LX=sellcross OR diff < 1;
SX=buycross OR diff >= -1 ;

LE=ExRem(LE,LX); LX=ExRem(LX,LE); SE=ExRem(SE,SX); SX=ExRem(SX,SE);
PlotShapes(IIf(LE, shapeUpArrow, shapeNone),colorGreen, 0, masig, Offset=-12);
PlotShapes(IIf(LX, shapeDownArrow, shapeNone),colorPaleBlue, 0, masig, Offset=-12);
PlotShapes(IIf(SE, shapeDownArrow, shapeNone),colorRed, 0, masig, Offset=-12);
PlotShapes(IIf(SX, shapeUpArrow, shapeNone),colorYellow, 0, masig, Offset=-12);



1. SanjeevDad

Plz contact me on my email id

Leave Comment

Please login here to leave a comment.