Problem with when case

34 views
Skip to first unread message

Samuele Libetti

unread,
Aug 24, 2022, 12:15:59 PM8/24/22
to OptionStack
Hi all, I am tring to bulid up a naked put strategy with rolling. My problem is in the rolling case. Below the screenshot of the code.
Cattura.PNG

in second When (the rolling case) I want to roll the option if the difference between the stock value and the strike goes below the 20% of the value at the beginning of the operation. For example if I open an opetation with stock value 100 and strike 90 (difference 10) I want to roll when stock value is less than 92 (92-90= 2, 20% of 10).
I write the code in the figure but iy does not works, it never roll even if the stock value decrease or even if I chanhe the 0.2 value to 20 (case in which the strategy have to roll in continous).
Where is the mistake? Someone can help me?

thak you very much in advance.

Samuele

OptionStack

unread,
Aug 24, 2022, 11:30:18 PM8/24/22
to OptionStack
Can you please post a link to your strategy by clicking on the "Share" button?


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.

samuele...@gmail.com

unread,
Sep 1, 2022, 12:06:05 PM9/1/22
to OptionStack
thank you for your help I understood and fix the problem.
But now I have another problem also with the when case. The problem is that the roll works only if the roll condition occurs in days different by the expiration date. If the roll condition occurs at expiration date the strategy colses operation instead of roll. there is a way to solve the probelm?

OptionStack

unread,
Sep 1, 2022, 12:16:41 PM9/1/22
to OptionStack
If you do NOT want to close your positions as expiration, you can change the expiration behavior of the trade.  Specifically, you can allow the position to be exercised / assigned / rolled at expiration, instead of automatically closed.    

  • Click on the Gear icon on the Strategy block to enable the Advanced Options 
  • Enable the "At Expiration" option by dragging/dropping the "At Expiration block" into the "Options Block"
  • Change the "At Expiration" option to "Exercise/Assign" instead of "Close"

Expiration.png


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