Author |
Topic: Trailing Stop (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
THowes697 Posts: 7 Joined: Jun 22, 2011 |
Hello Victor
We are developing a new app for our customers and they require a trailing stop. I put in a TrSTP order with the following results: 09:12:45.705 201864173 Command Create Buy 1 ESZ1 TrSTP 1203.75 TrailingStop, Ref price: 1204.00, Delta: 0.25 09:12:45.705 3397208 State Sent 09:12:45.729 3397209 State Rejected Invalid absolute offset I thought that in order for this to work on a Buy, Reference Price had to be equal or greater than Price and Delta could be equal to 0 or greater. On a SellShort, Reference Price had to be equal or lesser than Price and Delta could be equal to 0 or lesser. I'm totally confused. Regards Thomas Regards Thomas |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Thomas,
what current price was at that time? Another thought - could you try to send Delta = 0, if Price differs from Ref Price in one tick? Victor Vins Lead Software Developer |
||||
THowes697 Posts: 7 Joined: Jun 22, 2011 |
Hello Victor
Last Command for the above was: Buy 1 ESZ1 TrSTP 1203.75 TrailingStop, Ref price: 1204.00, Delta: 0.25 When I trade on Contract.CurrentPrice.LastPrice it is a successfull trade and shows trade made at MKT, however it is never stopped out. Example from this morning: SUCCESS: 09:43:36.180 3400728 State Working #2480515 09:43:38.400 201865284 Command Modify To: Sell Short 1 ESZ1 MKT TrailingStop, Ref price: 1195.75, Delta: 0.25 09:43:38.406 3400729 State Completed 09:43:38.445 3400730 Fill 1@1195.50 If I wish to do a Limit order, I get this. FAILURE: 09:39:46.406 201865277 Command Create Buy 1 ESZ1 TrSTP 1199.00 TrailingStop, Ref price: 1198.75, Delta: 0.25 09:39:46.406 3400698 State Sent 09:39:46.480 3400699 State Rejected Wrong stop price of trailing stop order Regards Thomas Regards Thomas |
||||