Jump to content

We have moved to Discord. Please click here to join us in the Trading Terminal Discord server.



These forums are read-only.

joeylui

Hotkey to add my position

Recommended Posts

joeylui

Hi everyone,

I am creating a hotkey to add my position, but my script seems not working.

This hotkey is to add more positions in winning trade. For example, I have 100 shares @$10 and it's now $13, the hotkey is supposed to add shares to make my average cost and stop loss@$11, in other words, I want to get 200 more shares in this trade and put a stop loss at the breakeven.

My script is:

CXL ALLSYMB;ROUTE=LIMIT;Share=Pos*(Price-Avgcost)/(ASK-Price);Price=ASK+0.05;TIF=DAY+;BUY=Send;

After I push this button, there's a notification that part of my scirpt is not able to run, but it still helps me get some more shares, but not the amount I want precisely. Would anyone give me a helping hand to build this script?

Share this post


Link to post
Share on other sites
joeylui
On 7/4/2021 at 7:43 PM, peterB said:

just use this 

 

Thank you Peter, I couldn't see this post which is exactly I need. I am going to test it today.

Share this post


Link to post
Share on other sites

[[Template core/front/global/mobileNavigation is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.