Hi
I leg into iron condor, so I can manage each spread independently.
But at the same time I wand to set a "WHEN" rule to close the whole position (both call and put spreads simultaneously) when the return on max reward of both spreads combined is => 0.5
the "code" should look like this:
WHEN
order SellCallVertical 1 ruturnOnMaxReward
and
order SellPutVertical 1 ruturnOnMaxReward
=>0.5
Do
close Order SellCallVertical 1
close Order SellPutVertical 1
I don't seem to find the appropriate blocks for this condition
Would appreciate your help