Entry Criteria : Close [0] > Open[0]
When this criteria is met i,e, bar must close, I want to enter long at say Limit price of Close[0] and also want to record the value High[0] - Low[0] to define my stoploss and take profit price variables. Eg. If the bars range (High[0]-Low[0] was $5 and Close[0]=100. My take profit will be 105 and Stoploss will be 95.
I am able to establish the position and even capture the take profit and stoploss value. However i want the bracket order submitted as soon as the position is established. Its easy enough to exit position if closing price was higher or lower than my take profit and stoploss order but that is not what i want.
Can anyone help me with the steps? If this isnt possible to configure via Strategy builder, can someone plz help me with a code? I tried referencing the OCO and ATM syntax but couldnt really code myself.

Comment