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.mom...@...> 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
>


Reply via email to