I can't find much documentation on what the 'activation floor' means. Does it mean that a 2% trailing stop will kick in only after the price has risen 2% from the buyprice?
@C_M, check the ReleaseNotes.html file in the Amibroker folder.
CHANGES FOR VERSION 6.25.0 (as compared to 6.22.0)
AFL: ApplyStop now has 8th argument: ActivationFloor that defines the amount of profit (in dollars or percents, according to stopmode) that must be exceeded before stop is activated
The same document, elsewhere, also states:
Docs: updated documentation on ApplyStop to include activationFloor
but, unfortunately, this seems not the case for the ApplyStop() function documentation (let's hint @Tomasz to check it - by the way it seems to me that this should be the 9th argument.).
@beppe, could you help me understand why this simple trailing stop code will sometimes exit at the same price as the buyprice on the next bar? I checked the settings carefully and thought they were correct.