I have ReverseSignalForcesExit = true, and for the most part it works as expected. But with some short trades, it won't exit when a buy signal appears in subsequent bars (instead, it occurs later with ApplyStop (profit)).

I read that exrem() and equity() can sometimes interfere, but I have neither of those in my code. Backtestmode = regularRaw. Is there something I should be checking please?

See if this was helpful: [amibroker] Re: Why "Reverse entry signal forces exit" does not work for me?

1 Like

Thanks mate, it did help. ReverseSignalForcesExit obvioulsy works in a different way to what I expected. I still don't know what it does, but I changed sell = short and buy = cover and get the desired effect.

1 Like

It is really impossible to answer questions without formula that shows the problem. Please follow this advice: How to ask a good question

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.