Jump to content

Most Frequently Used Hotkeys Issue

Recommended Posts

Hi there,

My first question here , I've been using the hotkeys from the "Most Frequently Used Hotkeys" and there's something I noticed regarding the short side:

1) I'm using the order with automatic stop loss and defined risk as below:

StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=25/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.05 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;


When I short, I got the montage as below, I think the Sshare minus is what cause the issue



2) After short, when I decide to cover, I use the cover the following script:

CXL ALLSYMB;ROUTE=LIMIT;Price=ASK+0.05;Price=Round2;Share=Pos*.5;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos+share;TIF=GTC;BUY=SEND

and I get the following montage:


as you can see the shares was reduced by 1/2 as intended but the stop added 1 share, but, if I cover half again:


this time, appears to have changed properly, but as the first calculation was incorrect I have now 18 shares on the buy side and as you can imagine, if it hits my breakeven, I go long by 9 shares (18-9).

Does anyone got this issue using the script? I believe it's related to the SSHARE parameter, but I've been struggling with that with no success so far.


Kind regards,




Share this post

Link to post
Share on other sites

the minus in the montage is certainly not the problem

the cover hot script is ok as well

so the problem must be your montage setting or you

Edited by peterB

Share this post

Link to post
Share on other sites

i just tried both your hotkeys and they work

make sure you have montage style selected properly


Share this post

Link to post
Share on other sites

Hi Peter,

Thanks for checking this, at least I know where I don't need to check, yes I'm using the montage as stop order, maybe it's the device  between keyboard and chair, I'm going to investigate deeper.



  • Haha 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

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.