Hi all, I am tring to bulid up a naked put strategy with rolling. My problem is in the rolling case. Below the screenshot of the code.
in second When (the rolling case) I want to roll the option if the difference between the stock value and the strike goes below the 20% of the value at the beginning of the operation. For example if I open an opetation with stock value 100 and strike 90 (difference 10) I want to roll when stock value is less than 92 (92-90= 2, 20% of 10).
I write the code in the figure but iy does not works, it never roll even if the stock value decrease or even if I chanhe the 0.2 value to 20 (case in which the strategy have to roll in continous).
Where is the mistake? Someone can help me?
thak you very much in advance.
Samuele