mk 3-80 Intraday for Nifty for Amibroker (AFL)
mrkanitkar about 14 years ago Amibroker (AFL)
This is 3-80 SMA trading system for Nifty.
Indicator / Formula
Copy & Paste Friendly
/*PositionSize = MarginDeposit = 1; */
/*i = Optimize ("best volume", 5, 1, 50, 1); */
Buy = MA( Close , 3 ) > MA( Close , 80 )
AND Volume > Ref( Volume , -5 ) AND Close > SAR( 0.02, 0.2 );
/* AND Volume > Ref (Volume, Optimize ("best volume", 5, 1, 30, 3)) AND Close > SAR( 0.02, 0.2 );*/
/* ApplyStop(stopTypeLoss, stopModePercent, Optimize( "max. loss stop level", 10, 2, 30, 1 ), True ); */
/*BuyStop = ApplyStop(stopTypeLoss, stopModePoint, Optimize( "MK max. loss stop level", 10, 2, 30, 1 ), True );*/
Sell = MA( Close , 3 ) < MA( Close , 80 )
AND Volume > Ref( Volume , -5 )AND SAR( 0.02, 0.2 ) > Close;
/*Sell = SAR( 0.02, 0.2 ) > Close;*/
/*AND Volume > Ref (Volume, Optimize ("best volume", -5, -1, -30, -3)) AND SAR( 0.02, 0.2 ) > Close;*/
/* Sell= (( Ref( Close , -1 )- Close) < -2); */
Short = MA( Close , 3 ) < MA( Close , 80 )
AND Volume > Ref( Volume , -5 ) AND SAR( 0.02, 0.2 ) > Close;
/*AND Volume > Ref (Volume, Optimize ("best volume", -5, -1, -30, -3)) AND SAR( 0.02, 0.2 ) > Close;*/
Cover = MA( Close , 3 ) > MA( Close , 80 )
AND Volume > Ref( Volume , -5 )AND Close > SAR( 0.02, 0.2 );
/*AND Volume > Ref (Volume, Optimize ("best volume", -5, -1, -30, -3)) AND Close > SAR( 0.02, 0.2 );*/
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-20);
PlotShapes(IIf(Sell==1, shapeHollowDownArrow, shapeNone), colorRed, 0,High, Offset=-20);
10 comments
Leave Comment
Please login here to leave a comment.
This works very well on Nifty. I checked it from Dec 2007 to May 2012 5 min bars. It’s backtested for around 80,000 bars. It works best with Indian Index Nifty, BankNifty futures and Options as well.
Dear sir, am try to install the AFL, but showing blank screen, pls. give me clarification for what is the peroblem ?.. thx ..
Showing blank chart. pl. rectify.
showing white screen only
insert price along with this afl
Regards,
Paresh
showing blank screen
why not send picture ???
You need to have default chart with sma 3,sma 80 and then apply the formula.
I am not able to post updated formula.
Will post new one.
Here is link for new version.
where is the link????
http://www.wisestocktrader.com/indicators/3019-mk-3-8
0-intraday-for-nifty-v1