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.

imayusa

Range Hotkey Setup

Recommended Posts

imayusa

Been looking everywhere for Range Hotkeys and could really use some help.

Range (Long):

ROUTE=STOP;StopType=Range;LowPrice=Price;HighPrice=AvgCost-Price*2+AvgCost;Share=10;TIF=DAY+;SELL=Send

^This is not working for me, it just shorts. I wonder if I'm missing something. 

Any feedback would be great. Thank you!

Share this post


Link to post
Share on other sites
zulkafil
8 hours ago, imayusa said:

Been looking everywhere for Range Hotkeys and could really use some help.

Range (Long):

ROUTE=STOP;StopType=Range;LowPrice=Price;HighPrice=AvgCost-Price*2+AvgCost;Share=10;TIF=DAY+;SELL=Send

^This is not working for me, it just shorts. I wonder if I'm missing something. 

Any feedback would be great. Thank you!

I will suggest you to debug your script with some values for variables AvgCost and Price. Calculate what values you are getting for LowPrice, HighPrice and check if the calculated prices are valid for your range order. You can use Share=Pos; instead of 10, if you don't plan to sell only 10 shares with the range order.

Best of luck.

Edited by zulkafil
  • Like 1

Share this post


Link to post
Share on other sites
imayusa

I think I got it now. 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.