That is true for the backtester but on the chart the code shows a 1 for buy and therefore plots an arrow. bc my code says if buy plot......
Now i know i have to write a loop to prevent a buy from showing up, but I am not sure how???????? meaning a loop that will prevent a sell if I am in a buy. by using a variable? Can Anyone help? thanks --- In [email protected], "Mike" <sfclimb...@...> wrote: > > You don't need to do anything. That is the default built in behavior of > AmiBroker (i.e. single position per symbol, redundant signals ignored). > > http://www.amibroker.com/guide/afl/afl_view.php?name=setbacktestmode > > Mike > > --- In [email protected], zeek ing <zeeking57@> wrote: > > > > Is there a way to code > > that one should only buy if current position is zero?? Meaning one is > > currently not short. and vica versa. I can't seem to find away to this?? > > > > please help > > >
