Jump to content

Day-Meister

Lifetime Members
  • Content Count

    18
  • Joined

  • Last visited

  • Days Won

    4

Day-Meister last won the day on October 16 2023

Day-Meister had the most liked content!

Community Reputation

13 Good

2 Followers

Recent Profile Visitors

4,656 profile views
  1. I did have a request for a version of this script that entered the trade and made a single order at 1R for 12.5% of position and the remainder at 3R. This is what I came up with (Long version based on BP only) CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.5;Share=DefShare*0.333*Price*0.01;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/8;Share=Share*8;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=1000;Price=Ask-StopPrice+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.125 TIF:DAY+;Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.875 TIF:DAY+;
  2. Usually if the orders aren't showing up you have some type of syntax error in the script. I would test it first by re-copying the working script from this thread and paste it as-is in a new botton or hot-key. Can't say for sure what else it may be; I know a lot of people are using it wothout issue.
  3. No idea why you would see ghost orders. I've never seen it or heard anyone else mention it. To answer your question, I actually don't use this anymore. I have a different trading style now that doesn't lend itself to set levels, but more to do with momentum. I still use Kyle's keys to enter the trade and set my stop loss, but my exits are based more on observation and using Heikin Ashi Candlesticks
  4. Your issue is that your sizes for your orders are set to .3 of your position (.9 total). you could try .333 or go .3, .3, .4 or some such.
  5. Glad some people are finding this helpful. The move to breakeven is not really doable (although often asked about) - You could alter the code to set stop to purchase price at the time you create the orders, but then it would likely get triggered as a stop almost immediately. - The ability to alter existing orders from the first triggered order really isn't there as far as I can tell. - The best alternative I could think of but am not inclined to pursue at this time would be for the script included in the first range order that would contain a trigger order that cancels all other orders for that symbol and recreates them with the new stop at B/E. If you want to figure that one out, have fun. In essence, you would only create 2 orders initially; one for the first range (including stop) for whatever percentage of your position + a stop for the remaining shares and the first order would need a trigger that cancels existing orders and creating new orders/stops with a new stop price of your average cost. It would need to extrapolate your next profit level somehow based on what that trade was at. There just seems to be too many variables to easily do that. If I ever get bored, I might go back to this and see if I can flesh that out, but since I don't really have use for it, don't hold your breath anyhoo... Cheers and happy trading.
  6. This gives maximum flexibility over a variety of stocks trading at varying price levels. Basically, your BP is fixed and is based on what DAS has calculated. so BP *.5 allows you to enter 2 trades at the same time using a total of your Max BP. The issue you have run up against is that your risk level is so narrow on this price of stock that it is not giving you full risk $, but using the full amount of buying power you have elected to use per trade. (for example: If I have a micro account with BP of $100 and want to risk all of it on a stock that is trading at $50, it doesn't matter where I put my Stop, I can't buy more than 2 shares) As for DAS, you should see what DAS has calculated as your buying power in your account window. You should also be able to see BP withheld in your positions window. Hope that makes sense.
  7. What I think is happening is you don't have enough buying power for it to purchase a full $300 risk. If it is a margin account and you have $100k available BP, the script is designed to use half of that amount: "DefShare=BP*0.5", so $50K 344 shares * $145 = $49,880 So, although you narrowed your stop loss vs. the purchase price, you couldn't achieve more than your total def shares as above. If you want to test that theory, you can change the "DefShare=BP*0.5" to "DefShare=BP*0.75" and see if that changes the amount of shares it takes.
  8. Hey Fernando, - The Stop Loss for the remaining orders can not be updated automatically based on the automated profit taking as it is all set in one motion when you enter the trade. I don't know of anyway to carry your cost variable forward and have it re-write the orders based on the first (or any subsequent) fill. - There are examples of this script with fixed $ in the thread - If it is set up correctly, all orders should be set as range orders, therefore as soon as one condition is met (a specific target is achieved), the entire portion of that order will be complete leaving you with the remaining orders (or none in the case of stop loss). There should not be a state where one of the conditions of the range order is hit and executed but leaving the other side of the range intact. - If all your profit targets are hit, you should be left with 1 outstanding stop loss order for 1/4 of your original share size; This is by design in order to let you manually ride the trend until you decide to exit. I hope that answers your question.
  9. OK, Try this for long: CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.5;Share=DefShare*0.333*Price*0.01;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=1000; Price=Ask-StopPrice*1.5 +Ask;TriggerOrder=RT:SMRTL; Price=Round2; PX:Price ACT:SELL QTY:POS*.25 TIF:DAY+; Price=Ask-StopPrice*2+Ask;TriggerOrder=RT:SMRTL PX:Price ACT:SELL QTY:POS*.25 TIF:DAY+; Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:SMRTL PX:Price ACT:SELL QTY:POS*.25 TIF:DAY+; Price=Ask-StopPrice*4+Ask;TriggerOrder=RT:SMRTL PX:Price ACT:SELL QTY:POS*.25 TIF:DAY+; TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; and this for short: CXL ALLSYMB; StopPrice=Price+0.01;DefShare=BP*0.5;Share=DefShare*0.333*Price*0.01;Price=Price-Bid+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= bid-0.05;TIF=DAY+;SELL=Send;DefShare=1000; Price=StopPrice-Bid*1.5;Price=Bid-Price; Price=Round2;TriggerOrder=RT:SMRTL PX:Price ACT:BUY QTY:POS*.25 TIF:DAY+; Price=StopPrice-Bid*2;Price=Bid-Price; TriggerOrder=RT:SMRTL PX:Price ACT:BUY QTY:POS*.25 TIF:DAY+; Price=StopPrice-Bid*3;Price=Bid-Price; TriggerOrder=RT:SMRTL PX:Price ACT:BUY QTY:POS*.25 TIF:DAY+; Price=StopPrice-Bid*4;Price=Bid-Price; TriggerOrder=RT:SMRTL PX:Price ACT:BUY QTY:POS*.25 TIF:DAY+; TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; That is for sizing based on BP Replace the first line of each with the corresponding code for $fixed risk from above. In testing, I noticed that sometimes it would only create 3 orders (I suspect it has something to do with calculation of the 1.5R) (EDIT: pretty sure that was the issue; corrected script with ROUND2 to hopefully fix that)
  10. It sounds simple in theory, and you could adjust the code to create the initial orders that way by making them 4 different limit orders and 1 stop order (rather than the multiple range orders); The problem comes when your limit orders are hit, there is no way to really change the quantity of your stop order automatically. I can't think of a way to overcome that, sorry.
  11. Awesome. Yes, the DefShare=BP*0.5 uses half buying power. This seems necessary for trading stocks that may not allow as much leverage as DAS has calculated. (This is necessary for me at least; Feel free to experiment with that value if you want. It may not be necessary with the $ value defined risk vs. the Buying power one, but it is included in Kyle's hotkeys so I assume it is still valid)
  12. OK, This should give you $50 long risk: and $50 short risk Obviously test in SIM extensively before counting on it Let me know how it goes
  13. Interesting. I wonder if that will work for stops that were set as part of a range order rather than the whole range.
×
×
  • 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.