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

RE: [amibroker] Re: Stupid Question?



PureBytes Links

Trading Reference Links

Hi Eric,

 

I too tend to overlook the settings screen before I run a test and I have often left an optimization run overnight only to find it’s totally useless because I forgot to set the proper settings J because of this I now make it a point to copy paste the code below (and modify accordingly) for every system I use. It also helps when you are running different systems which require slightly different settings.

 

Claude

 

/*****************************************************************************************************/

//Set Parameters

/*****************************************************************************************************/

SETOPTION("NoDefaultColumns",0);

SETOPTION("InitialEquity",250000);

SETOPTION("AllowSameBarExit",0);

SETOPTION("ActivateStopsImmediately",0);

SETOPTION("AllowPositionShrinking",0);

SETOPTION("FuturesMode",0);

SETOPTION("InterestRate",0);

SETOPTION("MaxOpenPositions",1000);

SETOPTION("MinShares",1);

SETOPTION("PriceBoundChecking",1) ;

SETOPTION("CommissionMode",2); //Dollar per trade

SETOPTION("CommissionAmount",10);

SETOPTION("MarginRequirement",100); //No margin

SETOPTION("ReverseSignalForcesExit",0);

SETOPTION("UsePrevBarEquityForPosSizing",1);

 

SetTradeDelays(0,1,0,1); //Buy on same bar, sell next bar

 

 


From: ericleake [mailto:eleake@xxxxxxx]
Sent: Wednesday, March 23, 2005 01:32
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Stupid Question?

 


Thanks Tomasz-
That was it.

> Probably you have automatic STOPS activated in the settings
> that take you out.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> >
> > This used to work for me (or at least I thought it did) prior to
> > 4.7. Why isn't this giving me a "permanent" buy and hold?
> >
> > Buy=1;
> > Sell=0;
> >
> > -Eric.






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 other support material please check also:
http://www.amibroker.com/support.html







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 other support material please check also:
http://www.amibroker.com/support.html




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links