About this template
This is a 0DTE bot. At 9:40 it opens a neutral iron butterfly, a bullish iron butterfly and a bearish iron butterfly.
On paper all the positions fill with no problem. In live trading some of the positions may not get filled. Logic was added so at 0945 and 1000 to ensure each position was filled. That being said if the market moves down on you hard before the bearish position is filled if may be best to either turn the bot off and leave that position off or open another bullish iron butterfly. It‘s a toss up depending on what you think the market may do that day.
You can choose what your bot P/L % for the day will be depending if the positions are 0 or 1 DTE. You can also set your stop loss % for the day.