I am trying to build a strategy (long positions only) in TV wherein strategy.entry will consider the previous exit price. For example:
strategy.entry("long", strategy.long, when = longcondition==true)
strategy.close("long", strategy.close, when = longcondition==false)
I would like to insert another condition for strategy.entry in addition to longcondition==true, that states the below intention:
strategy.entry("long", strategy.long, when = longcondition==true and close[1] < previousExitPrice)
How to do it correctly? Thank you in advance for the answer.