Jump to content
Medved Trader Forums

Hotkey for buy and market sell stop


Arg

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...