forkey
Lifetime Members-
Content Count
8 -
Joined
-
Last visited
Community Reputation
2 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I am currently clicking the chart for each additional entry and sometimes I want to manage the adds completely independently from the first entry. In a perfect world, each entry will have its own stop loss (and ideally its own target too with a 6:1 range - my second question) and can be therefore independently managed. Correct. Here is the current long entry with a 0.35% risk (i hit this up to 5 times maximum depending on the setup and how tight I can get). ;CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*1;Share=DefShare*0.3*Price*0.0035;Price=Ask-Price+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=ARCAL;Price=Bid;TIF=DAY+; Account=ABC123;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ___________________________________ So the above includes the stop but not the target. Once I get in the trade and it starts working, I will put out a 4:1 range with a stop using this: ;CXL ALLSYMB;ROUTE=STOP;StopType=Range;LowPrice=Price;HighPrice=AvgCost-Price*5+AvgCost;Share=Pos;TIF=DAY+;SELL=Send _________________________________ Is it possible to simply conjoin the first hotkey's entry+stop and the second hotkey's target as a single hotkey? Is it possible to tier in with my the first hotkey and then when clicking it again (after clicking chart to indicate the next entry's stop) I am in with tier2 and it has its own stop (and target? - ideally).? Thanks so much @Justin
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi @Justin and @KyleK29. I've been using these hotkeys religiously and simply put - they are an edge. I have one long and one short hotkey that I use to get me into every single trade. As you would expect, I click the chart price where I want my stop, and hotkey in. The long and short hotkeys hit me in for 0.33% risk on my account. So the idea is that I hit in to a total 3 times while confirmation transpires which will put me to a maximum risk of ~1.0%. Both the long and short keys begin with 'CXLALLSYMB;' to cancel the first stop (that went live upon the first entry fill)and to put out a new stop with the updated size because POS now equals entry1size+entry2size and not only entry1size. My first question is - is it possible to have the first entry stay live once the first add (second entry) is put on and therefore the second entry also has its own stop? I just can't imagine how it would calculate the POS size since we naturally populate that field with the position entirety ('POS'). Once I'm in the trade, I have another range hotkey (thanks Kyle once again) that I use to set a 6:1. This hotkey will begin with the ';CXLALLSYMB;' so that it cancels the first stop that was used when I was 'tiering in.' Would it be possible to have the original tier entry hotkey that I use to enter the trade also include this target and ultimately become a range order? And if so, can the second entry (the first add) also have an independent target and stop (like in my first question)? TYSM!!!
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Thank you @Yann. You just saved me from having to hard code a constant 0.75*BP in basically everything ^_^
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Thanks @Justin I think the original problem derived from DAS assuming BP leverage is 4:1 and IB is 3.3333:1 so I will just discount the BP in the syntax to 75% or something like I denoted in the first post: DefShare=BP*0.75; If I wanted to hard code in the SIM account into these hotkeys, would it twice throughout the syntax because there are two orders like below in red? CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.75;Share=DefShare*0.99*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;TogSShare;ROUTE=ARCAL;Price= Bid+0;TIF=DAY+; ACCOUNT=ABCDEFG ;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; ACCOUNT=ABCDEFG;
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi @Peter de Beir. Kyle generously posted the downloadable link on the first page of this thread. At the bottom of the page it will let you navigate to the first page of this thread. I hope this helps.
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi @Justin. I followed your recommendations and downloaded the spreadsheet again. My intention is to take Kyle’s buy order with a 1.0% max risk live stop, and make it 1. add liquidity, 2. on ARCAL, and 3. cancel any existing orders on the symbol beforehand. In what step did I go wrong? Step Hotkey Notes 1 StopPrice=Price-0.01;DefShare=BP*0.75;Share=DefShare*0.99*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;TogSShare;ROUTE=SMRTL;Price= Ask+0;TIF=DAY+;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Spreadsheet output 2 StopPrice=Price-0.01;DefShare=BP*0.75;Share=DefShare*0.99*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;TogSShare;ROUTE=ARCAL;Price= Ask+0;TIF=DAY+;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Now routes to ARCA 3 StopPrice=Price-0.01;DefShare=BP*0.75;Share=DefShare*0.99*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;TogSShare;ROUTE=ARCAL;Price= Bid+0;TIF=DAY+;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Now adds liquidity on bid 4 CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.75;Share=DefShare*0.99*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;TogSShare;ROUTE=ARCAL;Price= Bid+0;TIF=DAY+;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Now cancels existing orders beforehand This below 4:1 profit taker order also generated an error. Does anything look obvious? Step Hotkey Notes 1 Route=Limit;Share=Pos*0.25;Price=AvgCost-StopPrice;Price=Price*1.25;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send Spreadsheet output 2 Route=ARCAL;Share=Pos*0.25;Price=AvgCost-StopPrice;Price=Price*1.25;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send Now routes to ARCA 3 Route=ARCAL;Share=Pos*1.00;Price=AvgCost-StopPrice;Price=Price*1.25;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send Now sells the whole position 4 Route=ARCAL;Share=Pos*1.00;Price=AvgCost-StopPrice;Price=Price*4.00;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send Now sells at 4:1 1. Can the above entry and 4:1 profit taker hotkeys be combined into one single hotkey? Can it become an OCO? 2. Does !Invalid shares mean that the syntax is good but the account does not contain sufficient BP to execute? Thank you so much @KyleK29, @Justin & community.
- 588 replies
-
- 1
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi @KyleK29. First of all thank you so much for not just the syntax but the cumbersome data assembly in excel. I really appreciate it and I'm sure that everyone else does too. I'm having an elementary problem here trying to replicate the fixed $risk hotkey with a live stop. I keep getting !Invalid Shares error. I apologize if someone else has solved this same problem - I checked the other two instances of people experiencing similar !Share issues but their problems didn't seem a bit different. I hope you can give me some direction. Thank you so much. Assumptions: Cash balance: $1,000 Risk per trade: $5 or ½% Leverage multiplier: 3.3333333 Output from Excel: ;CXL ALLSYMB;StopPrice=Price+0.01; DefShare=1000*3.3333333*0.97;Price=Price-Bid+0.01;SShare=5/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0;TIF=DAY+;SELL=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Broken down: 1 ;CXL ALLSYMB; Cancels existing stops in case this hotkey is used to add to an existing position (that already has a live stop) so that it can wrap up the new position in a new stop at the end. Side note: I did manually add this one line to the original excel output. 2 StopPrice=Price+0.01; 3 DefShare=5100*3.3333333*0.97; Discounts 3% intentionally. 4 Price=Price-Bid+0.01;SShare=5/Price; Assuming ‘SShare=5’ here means $5 risk per trade. 5 Share=DefShare-SShare; 6 DefShare=DefShare+SShare; 7 SShare=Share; 8 Sshare=DefShare-SShare; 9 Share=0.5*SShare; 10 TogSShare; 11 ROUTE=LIMIT; 12 Price=Bid-0; 13 TIF=DAY+; 14 SELL=Send; 15 DefShare=100; 16 TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0 ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+; Now the only stop order should reflect not just this entry but the whole position.
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Anyone in the Toronto area - Meetup?
forkey replied to nassarsyed's topic in Members Introductions & Meetups
I’m in the area until the 4th of July and can meet up Sonny H