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.

DrJonoG

Buy shares with stop hotkey

Recommended Posts

DrJonoG

Hi all

I'm looking to create a simple hotkey that works as follows;

I double click on the chart which defines my stop, I think hit my hotkey and buy as many shares as I can such that I lose no more than a total of $200 should my stop be reached. As the trade is sent a stop loss is triggered too at the place I clicked on the chart.

Any help would be much appreciated

Kind regards

Jonathon

Share this post


Link to post
Share on other sites
DrJonoG

This is what I have so far

ROUTE=SMRTL;StopPrice=Price;Price=Ask+0.03;Share=200.0/(Price-StopPrice);TIF=DAY+;BUY=Send;TriggerOrder=RT:STOP STOPTYPE:MARKET STOPPRICE:StopPrice ACT:SELL QTY:POS TIF:DAY+

Which seems to work apart from 

Share=200.0/(Price-StopPrice) 

Any suggestions?

I was also wondering if it was possible to not execute the trade if the average risk per share was greater than (for example) $0.40?

Share this post


Link to post
Share on other sites
Tommy

you can find the info you want in this topic.

 

Share this post


Link to post
Share on other sites
DrJonoG
On 3/2/2022 at 11:18 AM, Tommy said:

you can find the info you want in this topic.

 

Thank you 🙂

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.