How add a buy leg ( with tgt & sl) after exit/SL of short leg of a straddle in tradetron.
Say if i created a stradde by selling ATM Call Put Option with SL of each leg by 20 points.
once SL happen in call Side leg i want to add a Long/buy a call leg with same Strite as Call shorted leg sl happens.
Also define Exit of Sets And Universal Exit.
Note- I understand how to code Straddle with Repair Once Conditions Or with leg sl and tgt.
Lion AlgosSolution
Try this:
SET1:
Entry - put entry condition
Position Builder Leg1 CE sell, Leg2 PE sell
Repair Once-1: check for Leg1 SL
Position Builder : Exit CE
Repair Once-2: check for Leg2 SL
Positio Builder : Exit PE
SET2:
Entry : check for repair once1 complete
Position builder : Buy CE
Set exit : check SL/TGT for CE
SET3:
Entry : check for repair once2 complete
Position builder : Buy PE
Set exit : check SL/TGT for PE
Universal Exit : Exit at 3:25 PM
Mohit Upadhyay
what would be the Keyword for
SET2:
Entry : check for repair once1 complete
That’s upto you to decide. With the above conditions any one leg hits SL then Set 2 or Set 3 triggers depends on which leg hit SL. Then one profitable leg remains in Set1. How do you want to handle profit leg? Depends on that we need to code.
Ex: you can set fixed profit target and square off when it achieve the target. This condition can be achieved by Repair once3 and Repair once4 in Set1
OR you can wait till end of day and let Universal exit to close the trades
Mohit Upadhyay
Yes, that i understand.
but what if i only want to go with Unversal exit?
than what to code for SET1 exit… becouse once i add SET2 than SET1 asked for exit condition along with repair once.