I would suggest that it's actually better to put all settings in code. Relying on AA settings is error prone. One forgotten tweak and your results are all garbage, without even realizing it!
If you do any kind of development, what-if scenarios, etc. it is very easy to forget to return an AA setting to the original value. Bruce has published a nice template for this purpose at AmiBrokerU: http://tinyurl.com/aasettings Mike --- In [email protected], "jollypollyanna" <jollypolly...@...> wrote: > > Have a look in Automatic Analysis --> "settings" . Why repeat the built > in settings in a formula?? > > Built into Automatic Analysis from your formula :- > > 1) SetTradeDelays( Buy, Sell, Short, Cover); > 2) SetOption("AllowSameBarExit" , True); > 3) SetOption("MaxOpenPositions" , 4); > 4) Shortprice=open > > [;;)] > > > > > --- In [email protected], Tony M <pqj100@> wrote: > > > > Need to corrected a typo in my earlier email: > > > > > > Here's my code structure: > > Condition1=. ..; > > Condition2=. .., > > SetTradeDelays( 0,0,1,0); > > SetOption("AllowSam eBarExit" ,True); > > SetOption("MaxOpenP ositions" , 4); > > PositionSize = -100/4; > > BUY=0; > > SELL=0; > > SHORT=condition1 and condition2; > > Shortprice=open; > > Cover=1; > > Coverprice=close; > > PositionScore= 100-RSI(14) ; >
