Jump to content
gmount

Stop, Sell and Cover B/E Hotkey

Recommended Posts

Question: Found Thor Hotkey video helpful, but there was no explanation regarding the Sell/Cover @B/E, and Stop B/E buttons or a script for Sell/Cover @B/E. 

Share this post


Link to post
Share on other sites
Posted (edited)
CXL ALLSYMB;ROUTE=LIMIT;Price=ASK+0.05;Price=Round2;Share=Pos*.25;TIF=DAY;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos+share;TIF=DAY;BUY=SEND

that is for cover 25% of position and set the stop loss to break-even point

 

 

CXL ALLSYMB;ROUTE=LIMIT;Price=BID-0.05;Price=Round2;Share=Pos*.25;TIF=DAY;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos-share;TIF=DAY;SELL=SEND

that is for sell of 25% of position and set the stop loss to break-even point

 

CXL ALLSYMB;Route=LIMIT;Share=Pos*1;Price=Ask+0.05;TIF=DAY;BUY=Send

that is to cover 100% of position

 

 

CXL ALLSYMB;Route=LIMIT;Share=Pos*1;Price=Bid-0.05;TIF=DAY;SELL=Send

that is to sell 100% of position

 

 

CXL ALLSYMB;Route=Stop;Share=Pos;StopPrice=Price;StopType=MARKET;TIF=DAY;Send=Reverse;

that is to update the stop with current position size and price wherevere you click on the chart - custom stop loss

 

 

CXL ALLSYMB;Route=Stop;Price=AvgCost;StopType=MARKET;STOPPRICE=AvgCost;StopPrice=Round2;Share=Pos;TIF=DAY;Send=Reverse;

that is to set the stop loss in whichever direction to the current average price and size - break even stop loss

 

NOTE:these are for CMEG broker, if you are using IB replace the "LIMIT" with "SMRTL"

Edited by peterB
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks PeterB I was looking for the script to click chart for stop loss. Tested and working. appreciate it.

Share this post


Link to post
Share on other sites

hi guys ,,, what is the script to take partial , without breakeven or cancelling the original stop loss . Thanks

Share this post


Link to post
Share on other sites

Hi Fahad,

These scipts wont cancel or put in a new stop loss. 

Script for Selling 50%

ROUTE=SMRTL;Price=Bid-0.10;Share=Pos*.5;TIF=DAY+;SELL=Send

Script for Buying/Covering 50%

ROUTE=SMRTL;Price=Ask+0.10;Share=Pos*.5;TIF=DAY+;BUY=Send

You can change the percentage after Pos* to whatever you like. I made them for 100%, 50%, 25% and 10% partials. 

Hope this works for you,

Jeff

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Hi SagaOttawa,

I use cmeg broker.  I tried those scripts , they works fine in buying partial and selling partial " only if  short available ".

If stock is not shortable script doesnt work. 

I tried this script ; 

CXL ALLSYMB;ROUTE=LIMIT;Price=BID-0.05;Price=Round2;Share=Pos*.25;TIF=DAY;SELL=Send

It works , but cancel my original stope .  I removed " CXL ALLSYMB " , so it doesnt cancel my original stop , but it doesnt work at all ??

Thanks .

 

Share this post


Link to post
Share on other sites

Hi Team,

Searching everywhere for the following Hotkeys with no success 😞. Would appreciate any help!

"Fixed dollar equalized risk for SSR trades"

Thanks and best regards

 

Share this post


Link to post
Share on other sites
19 hours ago, TraderVJ said:

Hi Team,

Searching everywhere for the following Hotkeys with no success 😞. Would appreciate any help!

"Fixed dollar equalized risk for SSR trades"

Thanks and best regards

 

just use normal hotkey script but change the BID to ASK or ASK to BID depending if it is a short or Long trade

  • Thanks 1

Share this post


Link to post
Share on other sites

Peter, would you be able to share the hotkey for "Equalized Dollar Risk: Cover Half + Move Stop to Breakeven". When I use mine it does covers half but completely removes my stop!

Thanks so much.

Share this post


Link to post
Share on other sites

that is perhaps your montage order preset is not set to STOP

Share this post


Link to post
Share on other sites

Hi Peter, I checked and can confirm the montage was set to STOP. Also, the long version of the key works perfectly. Thanks.

Share this post


Link to post
Share on other sites

so compare the long and short scripts and make sure the stock is shortable - SSR.S not only SSR

the .S means the availability for shortage and SSR means only it is restricted to short selling IF AVAILABLE only

Edited by peterB

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.