Roger Posted July 27, 2021 Report Share Posted July 27, 2021 Hello. I cannot get the trailing stop percentage setting to work in my websocket - AMTD account. Keeps giving error: r\nThe Trailing Stop Parameter is not specified or is not valid\r\n. In your docs you have "TrailingParamPercentInc" placed last in the AMTD order examples, but when requesting the AMTD setting from websocket, it has "TrailingParam" just below "StopBasis" in the websocket order list. I have tried every possible position and spelling, but always get the error. The trailing stop percent works when I send it in a MT trade ticket -AMTD account. I have not tried with IB, hope to get to it tomorrow. Thanks, Roger Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted July 27, 2021 Report Share Posted July 27, 2021 AMTD Restricts Trailing Stop Percent to be whole numbers. Yes, I know. don't start IB lets you specify decimals for the %. For AMTD, you probably would be better off using the trailing stop Dollar/point offsets Quote Link to comment Share on other sites More sharing options...
Roger Posted July 28, 2021 Author Report Share Posted July 28, 2021 Mr. Medved, hello. I still cannot get the trailing stop to work on AMTD or IB websocket. Here is the code I use: { "cmd": "tradeCommandNew", "accountKey": "IB:DU1111111", "order": { "Legs": [ { "Symbol": "ZME", "Quantity": 1, "Action": "Sell", "OrderType": "TStopPT", "TIF": "Day", "TrailingParamPercentInc": 5.0 I have tried every combination with wording and numbers, please let me know what I am doing wrong. With this format, buy orders work fine and I can place trailing stop order directly from MT. On the websocket I have tried both TStopDLR and TStopPT orders with no luck. Thanks. Quote Link to comment Share on other sites More sharing options...
Roger Posted July 29, 2021 Author Report Share Posted July 29, 2021 Hello. I got trailing stops to work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.