Jump to content
Medved Trader Forums

Hotkey help to move stop to break even


Np2112

Recommended Posts

Hi - I am currently using hotkeys to trim position/take profits along the way, the logic is as soon as 1st trim is executed, remaining position qnty should move to breakeven. Getting an error with quantity i.e only the qnty of position that was executed on trim moves up to breakeven,

Below is current formula, What should be changed to move the entire remaining qnty to B/E?

image.thumb.png.7817eb14eafacc9291e4694122ed6c7c.png

image.png.db26e742eee0dc4f68701c354d322c33.png

 

Link to comment
Share on other sites

First, you have an OTA order with 2 different quantities in the legs. I am pretty sure we don't allow for it.

Second - your "triggered" order has Pos as the quantity. You probably think that the Pos includes the amount that was bought on the first leg. But the Pos is taken from the account positions *at the time* of the hotkey execution.

Link to comment
Share on other sites

3 minutes ago, Np2112 said:

Thanks Mike, is there is a workaround for what i am trying to do then inside of 1 hotkey?

worst case, i can just not use a conditional order and use 2 keystokes to execute, 1st to trim and 2nd to move pos to b/e.  

 

You can execute two or more orders in one hotkey... Each one independent of the other?

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...