Jump to content


Lifetime Members
  • Content Count

  • Joined

  • Last visited

  • Days Won


RussWilliamL last won the day on January 15

RussWilliamL had the most liked content!

Community Reputation

12 Good

Recent Profile Visitors

235 profile views
  1. Hi Ywiratania. My modifications of Peter B's script are below. Remember this script is for Interactive Brokers. It will not work with other brokers. Also, make sure you use it in SIM first before going live so that you can be certain there is not a catastrophic error in the script that would lose you a lot of money. I cannot guarantee they will work for you. I will be testing the Market versions for myself Monday in SIM. The portion that makes sure the Trigger order will create the Stop Orders is "Price=Round2;" added to the original script. The portion that changes the entry from a LIMIT order to a Market order, is by replacing "ROUTE=SMRTL;" with "ROUTE=SMRTM;". The portion that changes the Triggered Range Order from a LIMIT order to a MARKET order, is by replacing "STOPTYPE:RANGE" with "STOPTYPE:RANGEMKT". ------------------------------------------------------------------------------------------------------------------- Long LIMIT entry $100 risk with 1.5 to 1 stop range LIMIT exit CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.975;Price=Ask-Price+0.00;SShare=100/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Ask+0.1;TIF=DAY+;BUY=Send;DefShare=200;Price=Ask-StopPrice*1.5+Ask;Price=Round2;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ ------------------------------------------------------------- Short LIMIT entry $100 risk with 1.5 to 1 stop range LIMIT exit CXL ALLSYMB;StopPrice=Price+0;DefShare=BP*0.975;Price=Price-Bid+0.00;SShare=100/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Bid-0.1;TIF=DAY+;SELL=Send;DefShare=200;Price=StopPrice-Bid*1.5;Price=Round2;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS TIF:DAY+ ------------------------------------------------------------- Long MARKET entry $100 risk with 1.5 to 1 stop range MARKET exit CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.975;Price=Ask-Price+0.00;SShare=100/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTM;TIF=DAY+;BUY=Send;DefShare=200;Price=Ask-StopPrice*1.5+Ask;Price=Round2;TriggerOrder=RT:STOP STOPTYPE:RANGEMKT LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ -------------------------------------------------------------- Short MARKET entry $100 risk with 1.5 to 1 stop range MARKET exit CXL ALLSYMB;StopPrice=Price+0;DefShare=BP*0.975;Price=Price-Bid+0.00;SShare=100/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTM;TIF=DAY+;SELL=Send;DefShare=200;Price=StopPrice-Bid*1.5;Price=Round2;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGEMKT LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS TIF:DAY+ ---------------------------------------------------------------- Best, Russell Landwehr
  2. Thanks Peter. I see this was added to v5.6.4.15 in October. I totally missed it when reading through the release notes. Russell
  3. I just found a problem with Range orders. It places a Market Stop on the loss side, but a Limit Order on the profit side. Friday, SQ tickled my profit target and sent the Limit Order, but the Limit Order didn't get filled. Meanwhile, the Stop Market order portion of the Range was cancelled. THEN the price dropped BELOW my previous 1R Stop Loss part of the Range order, but the Stop wasn't there to catch it. Luckily SQ came back up and filled the Limit Order. However, I'm concerned. Now I'm considering NOT using Range orders as part of my Exit Strategy. Well, first I'm going to look into the "risk controls" page in DAS. Perhaps I can set a control that will catch this problem on a per-position basis. OR... maybe use that risk control as my 1R Stop, and just set a profit-taking TriggerOrder... just thinking out loud now.
  4. I'm with you on that. In every back-test I've done, partialing has come out low on the ROI list, and the commissions are important to consider. Of course, with higher share size, the commissions aren't quite as impactful.
  5. Correct, I don't take partials, besides, Isn't that the intent of your hotkey script?
  6. Hi Peter B, I'm developing a strategy that fits my personality and methods. The strategy is based on the 5-min ORB. After back-testing the strategy, I found 1.5R profit was my sweet-spot. At 1.5R profit, a 40% win-rate is break-even and a 50% win-rate is my target; with an expectation of about a 60% win-rate. A 50% win-rate returns 0.25R profit per trade. A 60% win-rate returns 0.50R profit per trade. For myself (a beginning day-trader) the conservative 1.5R/R reduces the "pressure". I expect to increase the win/loss ratio once I'm better at picking the right stocks to trade. (my back-test yielded a 63% win-rate) This "conservative" strategy fits my personality, methods, and goals. In the past I was swing trading successfully using an extremely conservative method. A friend of mine, who's been trading much longer than I, said, "but you're leaving so much money on the table!" So I let him get in my head and I changed my strategy... and turned a winning strategy into a losing one that I was unable to bring myself to "reset" to my original strategy. I don't need to make a "killing", only this steady ROI to meet my targets. All the best, Russell Landwehr
  7. I ran into a problem when I changed the target to 1.5 (instead of an even number) (I also changed the script to a market entry instead of limit) anyway, the problem: Randomly the TriggerOrder wouldn't flow. It wouldn't give an error or anything, it just wouldn't show up. I fixed the problem by adding Price=Round2; after the StopPrice*1.5; (and also in the same place on the Short version of the script) Now the TriggerOrders execute smoothly every time. Best, Russell Landwehr
  8. what was your resolution to this problem? (I'm struggling with short position range orders)
  9. I like to create custom spoken alerts using Amazon's Polly. (my favorite voice is Emma). My most recent custom alert audio (and new favorite) is attached as an mp3. If you want to add it to your alerts, you will need the WAV file which is located here: DOWNLOAD "STOP TRADING" ALERT WAV Then place the WAV file in your DAS main folder and set up your alert as shown in the attached screenshot. Russell Landwehr Stop Trading alert.mp3
  10. I found related information in this Forum topic
  • 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.