Autotrading Entry End of Bar, Profit Target Intrabar- ???
Posted: 22 Jan 2013
I was testing a simple autotrading system today on the ES and ran into this problem (or senior moment).
For example (5 minute bars)...
I enter long 2 contracts NEXT BAR AT MARKET of the 5 minute bar and want to set the 1st profit target at $200 and the second target at $400 , how can I set profit targets INTRABAR ???
Everything I've read (EL GUIDE, etc), either uses IOG (I can't use, because I enter the Close of the bar NOT intrabar) or setprofittarget (it closes ALL (BOTH) contracts. I need to close them separately at different prices)..
I could see maybe a GV from a second chart with the system applied, but there has to be an easier way..(and I think the GV will wait 1 bar to send the value anyway)..
Today, running autotrade), my 1st target was $200 and price went to $300 and still did NOT take profit ! (when the bar closed it took profit)..
I used something like "if mp = 1 and openposiionprofit >= 200 then sell next bar at market"..
I have to exit intrabar.
help !!!
For example (5 minute bars)...
I enter long 2 contracts NEXT BAR AT MARKET of the 5 minute bar and want to set the 1st profit target at $200 and the second target at $400 , how can I set profit targets INTRABAR ???
Everything I've read (EL GUIDE, etc), either uses IOG (I can't use, because I enter the Close of the bar NOT intrabar) or setprofittarget (it closes ALL (BOTH) contracts. I need to close them separately at different prices)..
I could see maybe a GV from a second chart with the system applied, but there has to be an easier way..(and I think the GV will wait 1 bar to send the value anyway)..
Today, running autotrade), my 1st target was $200 and price went to $300 and still did NOT take profit ! (when the bar closed it took profit)..
I used something like "if mp = 1 and openposiionprofit >= 200 then sell next bar at market"..
I have to exit intrabar.
help !!!