Jump to content

VladMD

Members+
  • Content Count

    20
  • Joined

  • Last visited

  • Days Won

    6

VladMD last won the day on March 4 2021

VladMD had the most liked content!

Community Reputation

21 Excellent

Recent Profile Visitors

1,445 profile views
  1. StopPrice=Price-0.01;DefShare=BP*0.95;Price=Ask-Price+0.01;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;SShare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Ask+0.03;TIF=DAY+;BUY=Send;DefShare=150;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Share TIF:DAY+;
  2. Thanks Peter! I tried it with Share again but still no luck. I can't think of any other logical thing that would work in Qty so I guess I'll just have to live with changing the stops manually.
  3. Hello and sorry if this has been asked before but I haven't been able to find an answer. I have a pretty typical hotkey, double click where I want to set my stop, $20 fixed risk, works perfectly. The only issue I have is that if I add to an existing position I get a second stop order for the total number of shares, instead of the just the number of shares that I added. So, let's say I'm long 100 shares with a stop loss at 95.50. I take another entry for 50 shares but this time with the stop at 95.70. Now I have two stops, one for 100 shares at 95.50, and one for 150 shares at 95.70. I'm wondering how I can modify the hotkey so that the second stop will be for just 50 shares at 95.70. Here's the script: StopPrice=Price-0.01;DefShare=BP*0.95;Price=Ask-Price+0.01;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;SShare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Ask+0.03;TIF=DAY+;BUY=Send;DefShare=150;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.1 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; I already tried changing the QTY from Pos to Shares or SShares. The former doesn't change anything and the latter just doesn't place a stop order at all.
×
×
  • 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.