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 ....
Find Out More Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

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

Naive System 03 by Sosrodiningrat @2017 for Amibroker (AFL)

Rating:
2 / 5 (Votes 3)
Tags:
trading system, optimize, ambroker

Just for educational purpose not for real trading.

Naive System 03
Buy and sell on open. You can optimize the value.

By Sosrodiningrat @2017

Screenshots

Indicator / Formula

Copy & Paste Friendly
//Naive System 03 by Sosrodiningrat @2017

OptimizerSetEngine("spso");OptimizerSetOption("Runs",1);OptimizerSetOption("MaxEval",1000);

SetTradeDelays(0,0,0,0);
SetOption( "AllowSameBarExit",True);
b1=Optimize("b1",11,1,12,1);
s1=Optimize("s1",10,1,12,1);

BuyPrice=O;
SellPrice=O;

Buy=Month()==b1;
Sell=Month()==s1;

Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);

Plot(C,"",colorBlack,styleCandle);
//Plot(Equity(1),"",colorGrey50,styleLine|styleOwnScale);
//====================================
GfxSetOverlayMode(1);
GfxSetBkMode(1); // transparent
GfxSelectFont("Tahoma", Status("pxheight")/16 );
GfxSetTextColor(colorGreen);
//GfxTextOut("Equity= "+NumToStr(Equity(1)/ValueWhen(BarIndex()==1,Equity(1)),1.0)+" times",510,80);
//====================================
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,L,-12);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-12);
//====================================

0 comments

Leave Comment

Please login here to leave a comment.

Back