closing iron condor

51 views
Skip to first unread message

ramb...@gmail.com

unread,
Sep 18, 2022, 9:31:31 AM9/18/22
to OptionStack
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

OptionStack

unread,
Sep 21, 2022, 1:16:42 AM9/21/22
to OptionStack
You can model your exit condition as follows:

WHEN:
  • returnOnMaxProfit (Put Vertical) >= 0.5 AND
  • returnOnMaxProfit (Call Verical) >= 0.5
    • Close (Put Vertical)
    • Close (Call Vertical)
returnOnMaxProfit.png

Here is an example of legging into Iron Condors and closing the Put / Call Verticals when both verticals have returnOnMaxProfit > 50%:


The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory or other services by OptionStack. In addition, the content of the website offers no opinion with respect to the suitability of any security or any specific investment.  There are no guarantees as to accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. Past performance is no indication or guarantee of future results. All investments involve risk – including loss of principal. You should consult with an investment professional before making any investment decisions.
Reply all
Reply to author
Forward
0 new messages