Hi
I would like to write .efs that when an Order is filled in IB TWS (I have the plugin and my eSignal receives and shows filled trades on the eSignal 10.6.2224 charts) that can create two offsetting orders based on a risk amount.
Example if I enter a position in STX at $10 (this may be directly in TWS or via eSignal) with 1000 shares and a risk of $300 (the risk amount is fixed) I would like the .efs to auto send orders to IB TWS for
SELL STP Price $10 - 300/1000 = $9.70 and 3*Risk Target order
SELL LMT Price 10 + 3*300/1000 = $10.90
with transmit set to false at TWS. This will allow me to OCA the orders in TWS
Can this be done any examples would be helpful. I have 10yrs Java prog exp so I should be able to work it out if u can give me a clue as to how to approach this.
I would like to write .efs that when an Order is filled in IB TWS (I have the plugin and my eSignal receives and shows filled trades on the eSignal 10.6.2224 charts) that can create two offsetting orders based on a risk amount.
Example if I enter a position in STX at $10 (this may be directly in TWS or via eSignal) with 1000 shares and a risk of $300 (the risk amount is fixed) I would like the .efs to auto send orders to IB TWS for
SELL STP Price $10 - 300/1000 = $9.70 and 3*Risk Target order
SELL LMT Price 10 + 3*300/1000 = $10.90
with transmit set to false at TWS. This will allow me to OCA the orders in TWS
Can this be done any examples would be helpful. I have 10yrs Java prog exp so I should be able to work it out if u can give me a clue as to how to approach this.
Comment