Does anyone know *why* this option in the settings for Long/Short/Long & Short has been implemented?
I mean, if there's a "Buy" variable in the code, the system includes going long, if there's a "Short" variable in the code, the system includes going short. Quite simple. Why does one need a special setting for this (which one has to change all the time for different systems)? --- In [email protected], "Mike" <sfclimb...@...> wrote: > > The formula that you copied probably only has Buy/Sell. But, your AmiBroker > settings are probably set for Long and Short, meaning that AmiBroker expects > to see code for Short/Cover also. > > The solution is to either add the following code to the top of your formula: > > Buy = Sell = Short = Cover = False; > > Or to change your settings to be Long only. Same arugment applies for Short > only formulas. > > Mike > > --- In [email protected], "s.momtaz" <s.momtaz@> wrote: > > > > hi. i am new in amibroker and also amibroker group. today i want to put a > > formula copied from afl library of amibroker.com > > > > but when i was testing it the message appeared: > > > > "missing buy/sell variable assigments. check user's guide: tutorial: > > back-testing your trading ideas for the details." > > > > now what can i do? i have checked the related topic in user guide, but > > don't understand anything. please help! > > > > shaheen > > >
