Exit formula in my backtesting


I have a formula which I would like to use as a part of my exit.
The formula is:
PmPcB = (Close - BBandBot(Close,20,2)) / (BBandTop(Close,20,2) - BBandBot(Close,20,2));

The exit should work as follows:
Exit if PmPcB is higher than 0.25 or
Close < (Entrydays Close-Entrydays range) and PmPcB > 0.

Thankful if someone could help me with the code for this exit.

Best regards,
Leif Axelsson

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