[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] What's wrong with my formula (trouble with custombacktest)



PureBytes Links

Trading Reference Links

Hi,

My formula starts like this:

run = Optimize ("run", 1,1,1000,1);

SetOption("UseCustomBacktestProc", True );

SetOption("MaxOpenPositions", 5 );
SetOption("InitialEquity", 100000 );
SetOption("AllowPositionShrinking", True );
SetOption ("AllowSameBarExit", False);
SetOption ("ActivateStopsImmediately", False);
SetOption ("MinShares", 100);
SetOption ("MinPosValue", 5000);
SetOption ("PriceBoundChecking", True);
SetOption ("CommissionMode", 2);
SetOption ("CommissionAmount", 25);
SetOption ("AccountMargin", 100);
SetOption ("ReverseSignalForcesExit", True);
SetOption ("UsePrevBarEquityForPosSizing", True);
SetOption ("PortfolioReportMode",0 );
 

ShortTrades = ParamToggle("Short Trades?","Oui|Non",1);
Longtrades = ParamToggle("Long Trades?","Oui|Non",1);

PositionScore = Random();

buy=.................................
sell=.....
etc.

Is there something wrong with this, as when I click "backtest" I see no results.  When I change the custombacktestproc for "false" everything works well, but how do I do to get it my own way?  Cause I'd like to be able to be in more than one trade at a time.   And also, I think been in more than one trade at a time could make my Monte Carlo backtesting more reliable (am I right?).

Thanks,

Louis
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___