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.