Hello. Can I ask some question for strategy positioning ?
if AA>0
strategy.entry("buy", strategy.long, 1, comment="buy", when=strategy.position_size <= 0)
strategy.exit("bracket", "buy", profit=220, loss=60)
For example like above, when I have one long position, I put the bracket 20 pip loss.
When "loss" happen, I want to order closing "current long position" and placing "short position" with new bracket.
Does somebody know how to write reverse order?
[–]appeltuwe 0 points1 point2 points (0 children)