Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 03/26/2022 in Posts

  1. 1 point
    Hi @Aiman Almansoori @KyleK29, I'm trying to tweak one of the hotkeys you have included in the link above for a stop limit long order, limit long order both including stop limit stoploss orders. Some parts of the hotkey code is a bit confusing for me so would need your help and hotkey experience to make this work. If you have some time to spare, I would be grateful and appreciate if you can help me with this. The main concern is using limit bids/ask instead of marketable limit orders and market stops. The first hotkey is a "long entry on limit bid" hotkey, what I need it to do is: 1. enter long position on limit bid+0.01 - on dynamic size at a risk of $20 per trade, based on the stops clicked on the chart. 2. once the long position is complete, trigger a stop limit order when price retraces back to the entry price (average cost of my shares in the long position), posting a sell stop limit order to the markets at the price I clicked on the chart. Below is the hotkey code I tweaked (not sure if properly done): StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid+0.01;TIF=DAY+;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:LIMIT PX:StopPrice ACT:SELL STOPPRICE:AvgCost QTY:Pos TIF:DAY+; I think the dynamic entry part should be correct. I'm just not too sure if the trigger order codes are correct. Specifically the "stoptype:limit" or "route=limit" part. Can you help me with this please? The second hotkey is a bit more confusing. This is a long entry on STOP limit hotkey, what I need it to do is to: 1. enter long position on stop limit ask+0.01 - on dynamic size at a risk of $20 per trade 2. once the long position is complete, trigger a stop limit order when price retraces back to the entry price (average cost of my shares in the long position), posting my stop limit order to the markets at the price i clicked on the chart. below is the second hotkey code: StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=STOP;Price=ASK+0.01;TIF=DAY+;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:LIMIT PX:StopPrice ACT:SELL STOPPRICE:AvgCost QTY:Pos TIF:DAY+; For this the trigger order issue is the same as the first hotkey, I'm not too sure about the stop limit order and how that might work, do I need to add a "px:stopprice" to the dynamic long position part of the hotkey code? Many thanks guys!
×
×
  • 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.