Set with conditions but no position?

Hi,

Can i have a set with certain condition but no position taken. I just want to initialize a runtime variable on certain condition without taking ay position. Is it possible ? My logic is as below:

Set 1:
Condition: if EMA 8 crosses EMA 20 upside, initialize var1 = 1. No position taken.
Exit: if var1 = 1 then exit

Set2:
Condition: If var1 = 1 and RSI > 70 then take a trade.
Exit: if EMA8 crosses EMA 20 downside. Initialize var1 = 0.

I tried this but no trade was taken in back testing.

Could anybody please advise how to achieve this. Thank you !

Even I tried few days back similar with no position taken. But it did not work.

1 Like