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)

Rating:
5 / 5 (Votes 1)
Tags:
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.

Screenshots

Indicator / Formula

Copy & Paste Friendly

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

_SECTION_BEGIN("OpenCloseMA");

mamain = MA(C,3);
masig = MA(O,3);
diff=(1-(masig/mamain))*10000;

Plot(mamain,"Avg",colorBrightGreen);
Plot(masig,"Sig"+diff,colorRed);

//Signals
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);


_SECTION_END();

1 comments

1. SanjeevDad

Plz contact me on my email id sanj_dad@hotmail.com

Leave Comment

Please login here to leave a comment.

Back