Arg Posted March 8, 2021 Report Share Posted March 8, 2021 Hi, I want a hotkey to buy and at same time put in a market order sell stop below the purchase price to sell if price goes wrong way. What is wrong with my attempt below? Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 8, 2021 Report Share Posted March 8, 2021 at the time an OTA is placed, you don't have PosPaid. For conditional orders, the 2nd leg has to be an offset,like -0.06 So just remove the PosPaid and leave: -0.06 Quote Link to comment Share on other sites More sharing options...
Arg Posted March 9, 2021 Author Report Share Posted March 9, 2021 Stopprice set at -0.06 doesn't work. Get invalid price message. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 9, 2021 Report Share Posted March 9, 2021 huh? I just checked. This worked { "Disabled": false, "Order": { "Drop": "true", "Send": "false", "ConditionalType": "OTA", "Legs": [ { "OrderType": "Limit", "Action": "Buy", "Quantity": "1000", "LimitPrice": "Ask+ 0.02" }, { "OrderType": "StopMarket", "Action": "Sell", "StopPrice": "-0.06" } ] } } Where are you getting the error? on the trade ticket when trying to apply the hotkey? on the hotkey editor? Quote Link to comment Share on other sites More sharing options...
Arg Posted March 9, 2021 Author Report Share Posted March 9, 2021 I am using it on Level 2. In your code you have drop = true. In mine it's false - is this a problem? Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 9, 2021 Report Share Posted March 9, 2021 drop=true would be for filling in the trade ticket, which I was doing for testing. cannot do that on the Level II since UI does not support conditionals. as long as you have send=true, it should work Quote Link to comment Share on other sites More sharing options...
Arg Posted March 15, 2021 Author Report Share Posted March 15, 2021 This is the error message: Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 15, 2021 Report Share Posted March 15, 2021 ok but 1) what is your current saved order? and 2) this trade ticket does not do 2 leg. Quote Link to comment Share on other sites More sharing options...
Arg Posted March 16, 2021 Author Report Share Posted March 16, 2021 1) Not sure what "saved order" means. I've never used this. Is it something I need to use for a hotkey? 2) "trade ticket does not do 2 leg" ... also not sure what this means. Here is what I was trying to do: use a hotkey to buy shares (with default parameters taken from the level 2 window in this case) and then put in a sell stop loss 6c below the "purchase price" (not entirely clear what this price will be - I guess average price paid for all shares bought?). Is this possible? If so, how can I implement it - preferably on Level 2 window? Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 16, 2021 Report Share Posted March 16, 2021 sorry, saved order is a subset of Hotkeys. I was asking for the definition of your hotkey as for 2 leg - conditional orders (OTA) have 2 legs - one for the entry, one for what is triggered once the entry order executes. The Level II trade ticket does not support entry for those orders. Normally using just "Send" without drop would get around that but right now we have the issue with those type of orders that we need to fix. So the work around is to 1) use a regular trade ticket that does support conditional orders and then 2) set your hotkey to both send and drop (fill in the order). that should work until we get the issue resolved for Level II 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.