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.

Roberto

Hotkey help for a simple buy/stoploss

Recommended Posts

Roberto

I'm trying to make a simple hotkey to buy and sell 100 shares with a stoploss attached in SIM, that eventually will be used for a live account to IBKR, but not getting results.  Here's what I've tried:

FocusWindow RMG_1;ROUTE=LIMIT;Share=100;TIF=DAY+;Price=Ask+0.04;BUY=Send;TriggerOrder=RT:STOP;StopType=Market;StopPrice=AvgCost-0.20;Share=100;TIF=DAY+;SELL=Send;

My issue is the order gets filled, but the stoploss seems to ignore the -0.20:

image.thumb.png.8a9dd09c8a9fec42ff0b0aaacbaa47c7.png

What's my problem?

Edited by Roberto

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.