Jump to content


Lifetime Members
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Justin

  1. @Paul aka Aurbano - My man! Just making the world a little bit better one piece of code at a time Look at this original formatting of the tickers and how they get cut off: And now look at Paul's version:
  2. It's possible. What you're asking for is a range order. StopPrice=Price-0;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Ask+0.05;TIF=DAY+;BUY=Send;DefShare=400;Price=Ask-StopPrice*2+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ This will allow you to double click where you want your stop, enter a trade worth $10 (SShare=10/Price;) at the current price (it'll auto calculate the shares). And place a profit target at 2R (Price=Ask-StopPrice*2+Ask;)
  3. It helps that I actually dream about DAS and trading some nights
  4. No, not for stop orders @peterB. @justinstrommer9 It's either a syntax error from when you copied it into DAS or you're not executing the script properly. If you could outline a real example and step by step of exactly what you're doing that would be helpful. Like down to the detail. "I double click on the chart at x price, then hit the first hotkey. Then I double click on the chart at y price and hit the second hotkey."
  5. But wait! There's more! @Alastair @peterB I actually do have a hotkey that will place down R levels. It's a bit of a hack but it works! And being such a visual person, these are a godsend for helping me get to my R goals. The way it works is if you are in a position with a stop loss set, it utilizes your SIM account to place the target levels at 1R, 2R, etc. Look below - the green arrow is obviously my entry, and the blue arrow is my stop loss in my live account. And then when I hit the hotkey it will place two orders at 1R and 2R (orange arrow) with 1 share using my SIM account. Basically it does the math calculation for 1R and 2R, swaps the montage to my SIM account, places the orders, then puts the montage right back to my live account. The 1 share orders never get filled (I'm actually not sure why...), so as the price gets to the 1R and 2R markers you can take a partial or full exit, and it will be executed in your live account. After the trade is done just cancel the orders. Long StopPrice=AvgCost-StopPrice;Price=AvgCost+StopPrice;Share=1;TIF=DAY+;Route=Stop;StopType=Limit;Account=TRIBTXXXX;Sell=Send;Account=UXXXXXXX;StopPrice=StopPrice*2;Price=AvgCost+StopPrice;Share=1;TIF=DAY+;Route=Stop;StopType=Limit;Account=TRIBTXXXX;Sell=Send;Account=UXXXXXXX Short StopPrice=StopPrice-AvgCost;Price=AvgCost-StopPrice;Share=1;TIF=DAY+;Route=Stop;StopType=Limit;Account=TRIBTXXXX;Buy=Send;Account=UXXXXXXX;StopPrice=StopPrice*2;Price=AvgCost-StopPrice;Share=1;TIF=DAY+;Route=Stop;StopType=Limit;Account=TRIBTXXXX;Buy=Send;Account=UXXXXXXX
  6. Yeah, the current solution is to use the Fib. These are my settings it - you click and drag from your entry point to your stop level. Looks like this
  7. Like, you just want to set an order in the future to go long for a fixed $, but the stop is a fixed amount... like 20c?
  8. And to further make things worse... (at least from those on IB) The .dat file DAS gets from IB listing every stock's margin rate is wrong in many cases. DAS will show 100% margin rate when in actuality it's 300%. Last week I finally managed to connect someone at DAS support and someone at IB support to communicate to each other about the problem. And now "This issue remains under review."
  9. @JasonH How did the fixed vs tiered with IB results go?
  10. Long DefShare=BP*0.97;Price=Price-StopPrice;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare; SShare=Share;Share=Price*100; Price=StopPrice; DefShare=Price*100; Price=Share/100; Price=Price+StopPrice; StopPrice=Price; Share=SShare; TogSShare; Price=Price;TIF=DAY+;Route=Stop;StopType=Market; Buy=Send; Share=DefShare;Price=Share/100; StopPrice=Price; DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Short DefShare=BP*0.95;Price=StopPrice-Price;SShare=30/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare; SShare=Share;Share=Price*100; Price=StopPrice; DefShare=Price*100; Price=Share/100; Price=StopPrice-Price; StopPrice=Price; Share=SShare; TogSShare; Price=Price;TIF=DAY+;Route=Stop;StopType=Market; Sell=Send; Share=DefShare;Price=Share/100; StopPrice=Price; DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;
  11. That's correct - with IB it'll automatically tick up for your when a stock is on SSR.
  12. Double clicking is just to set the price in the montage. You still need to hit a hotkey with an appropriate script to execute with that price.
  13. This really doesn't belong in this thread... but below works perfectly fine for me... The only change I made to your script was changing LIMIT to SMRTL for IB CXL ALLSYMB;Route=SMRTL;Share=Pos*.25;Price=Bid-0.05;TIF=DAY+;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=StopPrice;Share=Pos-share;TIF=DAY+;SELL=SEND If you're not required to change your route with whatever broker you are using, I suspect it's simply a syntax issue. Re-copy and paste what I have in the text box above.
  14. @Ishyster Indeed the ; has no effect at the beginning of the scripts. If it's not separating anything, it's not doing anything. @Alastair Indeed putting CXL ALLSYMB in front of Kyle's default buy/sell script will allow you to double click again on the chart (where you want a new stop) and add to your position. It will recalculate your total POS and the new stop loss will be for all shares.
  15. Hmmm hard to say... it does look like it's trying to work The sell of 50% (28 shares) at the current price, the new stop at your average price for the remaining 50% (29 shares).... But the old stop should have cleared. Did you remember to remove the + after DAY in the script?
  16. Yes, I think he's saying have this hotkey instead of the range. Like manually selling at 2R. This will sell 50% of your position at whatever the current price is. It will cancel your current stop, and move it to break even with the remaining shares (so you can't lose any more than you've gained), CXL ALLSYMB;Route=SMRTL;Share=Pos*0.5;Price=Bid-0.05;TIF=DAY+;SELL=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos-share;TIF=GTC;SELL=SEND
  17. @James00trades You can definitely do a 2:1 range order in the same "part-2" hotkey, but it would be a full exit at the stop loss and 2R. There is an alternative... But it's not great. In a 3rd hotkey (after you've entered a position), you can have it recalculate your position and place multiple range orders down at different price levels. Have a look below - one hotkey takes your full position (118 shares) and splits it between 5 range orders at 1R-5R. It's hard to see (as they are stacked on each other) but all 118 shares should stop out at the same price of 123.48. Now I said "should"; here is the real problem with the script (also the main reason it's not released). Because your stop is actually 5 separate orders, in more volatile stocks you can have some bad slippage. It also can increase your commissions a bit (mainly on smaller positions). I know Kyle has been working with DAS, I've been working with DAS.... If they simple can provide us with a few more variables, this stuff would be easy.
  18. Yeah you got it @miked! Yeah, it's not really possible as stop orders will not execute during extended hours I haven't but it's probably possible. You'd like it so the bottom portion of the range is where your stop should be, and the top part of the range is exiting at say... 2R?
  19. Hey @miked and @James00trades it might help if you attach some screenshots, but here is what is supposed to happen: This is an example of when you are trying to go long On QCOM I want my stop to be 164.13. So I double click on the chart at that price and hit the first hotkey: StopPrice=Price You will not see anything on the chart at this point. The price is currently at 164.25 and I want my entry to be from 164.29. So I double click on the chart at that price and hit the second hotkey: DefShare=BP*0.97;Price=Price-StopPrice;SShare=30/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare; SShare=Share;Share=Price*100; Price=StopPrice; DefShare=Price*100; Price=Share/100; Price=Price+StopPrice; StopPrice=Price; Share=SShare; TogSShare; Price=Price+.05;TIF=DAY+;Route=Stop;StopType=Limit; Buy=Send; Share=DefShare;Price=Share/100; StopPrice=Price; DefShare=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; This will show on the chart (below) as a range order, as the hotkey is set to do a 5 cent range (Price=Price+.05) - you can change this to whatever you're comfortable with. You will not see the stop loss on your chart until the price comes up and this range order is triggered. As you can now see (below), the price has come up and entered me at 164.30 (as that price was in the 5 cent range of 164.29 - 164.34). You will also see that the stop loss has triggered upon entering the position at the original price I clicked on the chart - 164.13. Does this explanation help a bit? I think it might be seeing the range order that is confusing.
  20. I just plugged in the URL and you can request access to the sheet with a message. Try that? https://docs.google.com/spreadsheets/d/19i3rRFIJnkoGiYT3l9MJN782nZn_yXL6/edit
  21. Yeah, even at 166 shares it became cheaper. Still will be interested to see your fees when you trade on fixed though. It's not always so clear cut with IB
  • 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.