Professional Documents
Culture Documents
Instructions:: Color Key
Instructions:: Color Key
Instructions:
1) Fill in the yellow boxes.
2) Collect your hotkeys on the Hot Key tab.
Defaults
Account Leverage 6.6 Leverage provided by broker (DAS SIM is 4:1, so 4). Used for Total Buying Power calculations, needs to match what your BP Ratio (margin : equity) is in DAS for it to matter. 4
Equity $25,000.00 Non-leveraged buying power. Used in some of the INFORMATIONAL cells. $ 25,000.00
Max Account %Risk 1.00% Maximum account % of equity you want to risk per trade. 1.00
Send / Load Send For testing, you may choose to select "LOAD" so that it won't send the order, just load it into the montage (note: Hitting Enter can send the order). Default is "Send". Send
Route SMRTL Text of the route command, default LIMIT SMRTL
Order Bid/Ask Offset $0.05 How much gap to give the bid/ask price to increase chances of fill. Default is $0.05; e.g. "Fill me UP TO price + offset, but no higher" $0.05
Time in Force DAY+ Setting for TIF, default is DAY+ DAY+
Default Shares 200 This is what you want to reset your default shares to [e.g. the share box is populated by this when you first load a new symbol] 400
This is added to the Stop Distance value as an additional buffer. Default is 0.01. E.g.: Say you click and have a stop distance of 0.04, with a buffer of 0.05. Your shares are calculated on
Minimum Stop Buffer 0 0.09 (stop distance + buffer --> 0.04 + 0.05). 0.01
NOTICE: Using stop orders requires a bug-fix that came in DAS version 5.2.0.34. Be sure to have version 5.2.0.34+! Additionally, the Montage Style must
be set to either Stop Order, Detail, or Trigger. You can do this by right-clicking the price area of the montage --> Style --> Style-Choice. Recommended:
"Stop Order"
Send a Stop Trigger Order? 0 Choose if you want to also queue up a physical stop order that will go into the market when the initial order is fully filled (returned success). 1
Stop Type MARKET MARKET or LIMIT MARKET
For a STOP LIMIT order, this is the LIMIT to which you'll accept fulfillment. Just like how normal LIMITS have this (e.g. ASK + .05 means "fill me up to the current ask price plus as high as
$0.05 higher"). With type set as LIMIT and this set to .20, it means that when the STOP LOSS trigger is hit you're putting in an order that says "fulfill me at my stopprice but no lower than
Stop Order Distance $0.70 stopprice - 0.20". This stops them from fulfilling you at some really low offer on the order book, but can leave you hanging if a massive sell-off happens to jump your gap ($0.20 in this
example).
0.3
Stop Time in Force DAY+ Setting for TIF of the STOP order, default is DAY+. DAY+
Same as "Minimum Stop Buffer" but for the TriggerOrder portion. Usually you'd set this to be the same value as Minimum Stop Buffer. Setting for an additional buffer to be added to the
Stop Order Stop Buffer 0.01 stop order price. Example: With this set to $0.02 and you go long with a stop price of 10.50, this will put the stop at 10.48. It's not recommended, but here for those that want to exclude the
stop price from the order (e.g. "I'll let it go to 10.50, but no lower" instead of "if it hits 10.50, I'm out"). 0.01
Disclaimer: Stocks are risky and this hotkey is no guarantee for success, it may fail on you. You may lose money. Software glitches happen. Use at your own
risk and please test them in either a SIM account or with a testing symbol (TEST TESTB TESTE TESTX ATEST).
Get Hotkeys on
Hot Keys Sheet Breakdown of how it works below.
Below
Special Note: If your broker uses different leverage (margin) factors for LONG and SHORT positions, you may need to play with the numbers a tad
and generate separate hotkeys, I recommend duplicating the workbook (one for long, one for short). DAS will likely only use the LONG Buying
Power for their BP equation (assumed, haven't tested this myself) short positions, even though the broker has a different value.
** Hotkey only uses the DAS built-in Buying Power function (BP) for the very first portion, the maximum shares allowed calculation. The rest of the
equation is based on this value. **
For example: IB -- 4:1 margin on LONG, 3:1 margin on SHORT, equity of $25,000 (BP Long = $100,000, BP Short = $75,000)
Long % of Total Buying Power set to: 98% (0.98) [ equals $98,000 .. 100% - 2% buffer ]
Short % of Total Buying Power set to: 73% (0.73) [ equals $73,000 .. 75% - 2% buffer ]
# Set DefShare as Maximum Shares, returns: Shares Afforded with Leverage, the "B" in our min equation.
DefShare = BP * 0.98;
# Calculate Shares as Risk% of Equity using our Buying Power * offset (above), returns: $$ Risk
Share = DefShare * 0.25 * Price * 0.0096;
# Calculate Stop Distance, returns: $ of distance from stop and current bid/ask price
Price = Price - Bid + 0.01;
# Calculate the [A + B] - [ | A - B | ]
SShare = DefShare - SShare;
SSR rejection on LONG position when scaling out; rejection message (e.g. "Short marketable limit
2 order disable due to SSR!") if using the automatic STOP trigger.
Equated position size is very small (e.g. 4 or 5 shares when expected is hundreds).
3
TriggerOrder for automatic STOP placement not being sent (no stop order placed).
4
Hotkeys do nothing - European Users
5
REASON
No Equity variable, we reverse calculate equity using Buying Power. On subsequent
positions, the % (e.g. 1%) calculation will be based on the available buying power and
NOT the account equity.
DAS calculates that the position will drop below the open stop order position and reject as this can
cause the position to "flip" if it was triggered.
Wrong side was used for the order. E.g. a long hotkey is used when trying to go short. -or- Stop
Distance was calculated to be a negative value (clicked too close to current price).
Montage is not set to a style that doesn't allow TriggerOrder input. Styles not compatible are: Default
[DAS's, if you changed it], Basic, OCO, Option, Full
Possible reason is that European versions of EXCEL will change the decimal separator
from "." to ",".
WORKAROUND / FIX
Precalculate the %risk and use it for the $risk versions. So 1% of $25,000 equity equals $250.
Have a hotkey to clear the open orders (CXL ALLSYMB), clear it, scale the position (e.g. 25%). Either replace the stop or switch to a mental
stop. Alternatively, you can add "CXL ALLSYMB;" to the front of the scale-out hotkeys. You just have to be cognizant to replace the stop
order.
Be cognizant of the hotkeys used and the stop distance clicked. Clicking too close (a really tight stop) can be very dangerous if you do it
inadvertently.
Fix: Use a style that is compatible, they are: Stop Order, Detail, Trigger -- I recommended using the "Stop Order" montage style. To change
this, right click the montage area around where you'd enter a price and select Style --> Your Choice.
Change all "," back to "." - DAS requires the American decimal separator.
Your Hotkeys:
% EQUITY RISK
% Equity Risk Modifier Effective % Equity Risk Factored Dollar Risk
100% 1.00% $250.00
80% 0.80% $200.00
50% 0.50% $125.00
40% 0.40% $100.00
20% 0.20% $50.00
100% 1.00% $250.00
80% 0.80% $200.00
50% 0.50% $125.00
40% 0.40% $100.00
20% 0.20% $50.00
DOLLAR RISK
Dollar Risk
$200
$150
$100
$25
$100
$150
$120
$100
$80
$25
Note: This is for adding to an existing position, use it like you wou
percent of your original position you want to add. So if your origin
SCALE-IN POS % adding 500 shares if you have buying power. If you do not, it will
New Position Post
% Position Example Original Position Execution
100% 1,000 2,000
75% 1,000 1,750
50% 1,000 1,500
25% 1,000 1,250
15% 1,000 1,150
100% 1,000 2,000
75% 1,000 1,750
50% 1,000 1,500
25% 1,000 1,250
15% 1,000 1,150
Note: This is for adding to an existing position, use it like you wou
additional risk you're willing to add to your original position So if y
quantity to fill that additional risk. Shares are calculated off the cu
$ Position = Extra $ Risk you want (on top of your current risk)
Offset = Extra buffer you want to add to the calculation. 0.02 = 2c
risk on the entry.
SCALE-IN ADDL. $RISK CXL ALLSYMB = Cancels any pending orders for the symbol. Go
% Position Offset Add CXL ALLSYMB?
$30.00 0.02 1
$40.00 0.02 1
$50.00 0.02 1
$60.00 0.02 1
$70.00 0.02 1
$30.00 0.02 1
$40.00 0.02 1
$50.00 0.02 1
$60.00 0.02 1
$70.00 0.02 1
Note: These are just general sell / cover orders for when you wan
hotkeys.
The route, Time in Force, and ask/bid buffer (e.g. Ask + .05) is th
Option: CXL ALLSYMB --> If set to True, this will add the CXL AL
if at start). What this does is when executed it will cancel all open
SCALE-OUT All) as it'll clear any STOPS / PRICE-TARGETS you've set.
% Position Add CXL ALLSYMB?
100% 1
75% 0
50% 0
25% 0
15% 0
100% 1
75% 0
50% 0
25% 0
15% 0
Note: This is a companion hotkey, it's designed to be used after you've en
1) Use this hotkey if you've moved your stop to B/Even in the system.
2) Modified the StopPrice field manually.
3) Entered a second position (another SYMB) on the same montage. The
Options:
Target Distance [in R] --> Where to place the new orders trigger price. So
RANGE ORDER 10.50 [.20 * 2.5].
Target Distance [in R]
1.25
1.00
1.00
1.25
1.00
1.00
Extra Hotkeys for different things. See note box for additional ins
NOTE: These use the values on the Setup & Instructions page. A
orders).
EXTRAS
Item Stop Order Type
Stop - Set to Breakeven - Long LIMIT or MARKET
Stop - Set to Breakeven - Short LIMIT or MARKET
Stop - Set to Breakeven - Bidirectional MARKET ONLY
Stop - Update Price - Long LIMIT or MARKET
Stop - Update Price - Short LIMIT or MARKET
Stop - Update Position - Long - Replace LIMIT or MARKET
Stop - Update Position - Short - Replace LIMIT or MARKET
Stop - Update Position - Bidirectional - Replace MARKET ONLY
Item Config
Zoom Y Out - Margin Increase See "Special Notes - Zoom Y" Zoom Per Step:
Zoom Y Out to 118% - Margin Increase See "Special Notes - Zoom Y"
Zoom Y In - Margin Decrease See "Special Notes - Zoom Y" Zoom Per Step:
Zoom Y - Margin Reset to Default See "Special Notes - Zoom Y" Default Value
Color Key: Editable Instructions: 1) Adjust the %Equity you want to risk (for
Editable Option 2) Select Long or Short (or just use the alr
Reference Value
Informational 3) Select the command in cell E and copy,
4) Profit? Hopefully ...
Long/Short Hotkeys
long DefShare=BP*0.96;Share=DefShare*0.152*Price*0.01;Price=Ask-Price+0;SShare=Share/Price;Sh
long DefShare=BP*0.96;Share=DefShare*0.152*Price*0.008;Price=Ask-Price+0;SShare=Share/Price;S
long DefShare=BP*0.96;Share=DefShare*0.152*Price*0.005;Price=Ask-Price+0;SShare=Share/Price;S
long DefShare=BP*0.96;Share=DefShare*0.152*Price*0.004;Price=Ask-Price+0;SShare=Share/Price;S
long DefShare=BP*0.96;Share=DefShare*0.152*Price*0.002;Price=Ask-Price+0;SShare=Share/Price;S
short DefShare=BP*0.96;Share=DefShare*0.152*Price*0.01;Price=Price-Bid+0;SShare=Share/Price;Sha
short DefShare=BP*0.96;Share=DefShare*0.152*Price*0.008;Price=Price-Bid+0;SShare=Share/Price;Sh
short DefShare=BP*0.96;Share=DefShare*0.152*Price*0.005;Price=Price-Bid+0;SShare=Share/Price;Sh
short DefShare=BP*0.96;Share=DefShare*0.152*Price*0.004;Price=Price-Bid+0;SShare=Share/Price;Sh
short DefShare=BP*0.96;Share=DefShare*0.152*Price*0.002;Price=Price-Bid+0;SShare=Share/Price;Sh
Long/Short Hotkeys
long DefShare=BP*0.96;Price=Ask-Price+0;SShare=200/Price;Share=DefShare-SShare;DefShare=DefS
long DefShare=BP*0.96;Price=Ask-Price+0;SShare=150/Price;Share=DefShare-SShare;DefShare=DefS
long DefShare=BP*0.96;Price=Ask-Price+0;SShare=100/Price;Share=DefShare-SShare;DefShare=DefS
long DefShare=BP*0.96;Price=Ask-Price+0;SShare=25/Price;Share=DefShare-SShare;DefShare=D
short-SSR DefShare=BP*0.96;Price=Price-Bid+0;SShare=100/Price;Share=DefShare-SShare;DefShare=DefS
short DefShare=BP*0.96;Price=Price-Bid+0;SShare=150/Price;Share=DefShare-SShare;DefShare=DefS
short DefShare=BP*0.96;Price=Price-Bid+0;SShare=120/Price;Share=DefShare-SShare;DefShare=DefS
short DefShare=BP*0.96;Price=Price-Bid+0;SShare=100/Price;Share=DefShare-SShare;DefShare=DefS
short DefShare=BP*0.96;Price=Price-Bid+0;SShare=80/Price;Share=DefShare-SShare;DefShare=DefSh
short DefShare=BP*0.96;Price=Price-Bid+0;SShare=25/Price;Share=DefShare-SShare;DefShare=DefSh
for adding to an existing position, use it like you would a normal entry hotkey (no-need to double-click chart). % Position equals the
our original position you want to add. So if your original position is 1000 shares and % Position equals 50%, you will be effectively
shares if you have buying power. If you do not, it will add up the maximum you can afford.
Long/Short Hotkeys
long DefShare=BP*0.96;Share=Pos;SShare=Share *1;Share=DefShare-SShare;DefShare=DefShare+S
long DefShare=BP*0.96;Share=Pos;SShare=Share *0.75;Share=DefShare-SShare;DefShare=DefShare
long DefShare=BP*0.96;Share=Pos;SShare=Share *0.5;Share=DefShare-SShare;DefShare=DefShare+
long DefShare=BP*0.96;Share=Pos;SShare=Share *0.25;Share=DefShare-SShare;DefShare=DefShare
long DefShare=BP*0.96;Share=Pos;SShare=Share *0.15;Share=DefShare-SShare;DefShare=DefShare
short DefShare=BP*0.96;Share=Pos;SShare=Share *1;Share=DefShare-SShare;DefShare=DefShare+S
short DefShare=BP*0.96;Share=Pos;SShare=Share *0.75;Share=DefShare-SShare;DefShare=DefShare
short DefShare=BP*0.96;Share=Pos;SShare=Share *0.5;Share=DefShare-SShare;DefShare=DefShare+
short DefShare=BP*0.96;Share=Pos;SShare=Share *0.25;Share=DefShare-SShare;DefShare=DefShare
short DefShare=BP*0.96;Share=Pos;SShare=Share *0.15;Share=DefShare-SShare;DefShare=DefShare
for adding to an existing position, use it like you would a normal entry hotkey (no-need to double-click chart). $ Risk equals the
sk you're willing to add to your original position So if your original position risk was $100, and you add $25, it'll estimate the share
ll that additional risk. Shares are calculated off the current Ask or Bid amounts with a slight slippage offset (0.01).
are just general sell / cover orders for when you want to scale out. Nothing special, just makes it easier for people to create their
ime in Force, and ask/bid buffer (e.g. Ask + .05) is the same used for the other hotkeys set on the main screen.
ALLSYMB --> If set to True, this will add the CXL ALLSYMB command to the begginning (prevents a DAS Buying Power rejection
What this does is when executed it will cancel all open orders for the symbol, RECOMMENDED USE: for the 100% (Sell All or Cover
ear any STOPS / PRICE-TARGETS you've set.
Long/Short Hotkeys
long ;CXL ALLSYMB;Route=SMRTL;Share=Pos*1;Price=Bid-0.05;TIF=DAY+;SELL=Send
long Route=SMRTL;Share=Pos*0.75;Price=Bid-0.05;TIF=DAY+;SELL=Send
long Route=SMRTL;Share=Pos*0.5;Price=Bid-0.05;TIF=DAY+;SELL=Send
long Route=SMRTL;Share=Pos*0.25;Price=Bid-0.05;TIF=DAY+;SELL=Send
long Route=SMRTL;Share=Pos*0.15;Price=Bid-0.05;TIF=DAY+;SELL=Send
short ;CXL ALLSYMB;Route=SMRTL;Share=Pos*1;Price=Ask+0.05;TIF=DAY+;BUY=Send
short Route=SMRTL;Share=Pos*0.75;Price=Ask+0.05;TIF=DAY+;BUY=Send
short Route=SMRTL;Share=Pos*0.5;Price=Ask+0.05;TIF=DAY+;BUY=Send
short Route=SMRTL;Share=Pos*0.25;Price=Ask+0.05;TIF=DAY+;BUY=Send
short Route=SMRTL;Share=Pos*0.15;Price=Ask+0.05;TIF=DAY+;BUY=Send
a companion hotkey, it's designed to be used after you've entered a position using the $Dollar Risk or Account % methods. As a note, it is not recommended to:
tkey if you've moved your stop to B/Even in the system.
e StopPrice field manually.
econd position (another SYMB) on the same montage. The StopPrice field is a MONTAGE variable, so it's independent of the SYMB.
ion% --> Percentage of Position you want to execute (e.g. if your position is 100 and you set to 25%, it'll put the new order in at 25).
ce [in R] --> Where to place the new orders trigger price. So LONG at $10.00 [avgcost] with a stop at $9.80 [stop distance of .20], if you set to 2.5, it'll set the target price at
5].
Long/Short Hotkeys
short Route=Limit;Share=Pos*0.25;Price=StopPrice-AvgCost;Price=Price*1.25;Price=AvgCost-Price;Pric
short Route=Limit;Share=Pos*0.25;Price=StopPrice-AvgCost;Price=Price*1.25;Price=AvgCost-Price;Pric
long Route=Limit;Share=Pos*0.25;Price=AvgCost-StopPrice;Price=Price*1;Price=Price+AvgCost;Price=
long Route=Limit;Share=Pos*0.25;Price=AvgCost-StopPrice;Price=Price*1;Price=Price+AvgCost;Price=
a companion hotkey, it's designed to be used after you've entered a position using the $Dollar Risk or Account % methods. As a note, it is not recommended to:
tkey if you've moved your stop to B/Even in the system.
e StopPrice field manually.
econd position (another SYMB) on the same montage. The StopPrice field is a MONTAGE variable, so it's independent of the SYMB.
ce [in R] --> Where to place the new orders trigger price. So LONG at $10.00 [avgcost] with a stop at $9.80 [stop distance of .20], if you set to 2.5, it'll set the target price at
5].
Long/Short Hotkeys
long CXL ALLSYMB; Route=Limit;Share=Pos;Price=AvgCost-StopPrice;Price=Price*1.25;Price=Price+A
long CXL ALLSYMB; Route=Limit;Share=Pos;Price=AvgCost-StopPrice;Price=Price*1;Price=Price+Avg
long CXL ALLSYMB; Route=Limit;Share=Pos;Price=AvgCost-StopPrice;Price=Price*1;Price=Price+Avg
short CXL ALLSYMB; Route=Limit;Share=Pos;Price=StopPrice-AvgCost;Price=Price*1.25;Price=AvgCos
short CXL ALLSYMB; Route=Limit;Share=Pos;Price=StopPrice-AvgCost;Price=Price*1;Price=AvgCost-P
short CXL ALLSYMB; Route=Limit;Share=Pos;Price=StopPrice-AvgCost;Price=Price*1;Price=AvgCost-P
ys for different things. See note box for additional instructions on a particular hotkey.
e use the values on the Setup & Instructions page. Additionally, these will clear any price target orders you've input (pending Limit
Hotkeys Notes
;CXL ALLSYMB;Route=SThis hotkey will CANCEL all open-orders for the SYMB, then input the new
;CXL ALLSYMB;Route=SThis hotkey will CANCEL all open-orders for the SYMB, then input the new
;CXL ALLSYMB;Route=Stop;Price=AvgCost;StopType=MARKET;STOPPRICE=AvgCost;StopPrice
;CXL ALLSYMB;Route=St
This hotkey will CANCEL all open-orders for the SYMB, then input the new
;CXL ALLSYMB;Route=St
This hotkey will CANCEL all open-orders for the SYMB, then input the new
Route=Stop;Price=Stop This hotkey will not cancel all open-orders for the SYMB. It will REPLACE
Route=Stop;Price=Stop This hotkey will not cancel all open-orders for the SYMB. It will REPLACE
Route=Stop;Share=Pos;Bidirectional (Long or Short positions), use with STOP MARKET orders on
Config Value
10 IncreaseTopBottomMargiSee "Special Notes - Zoom Y"
ResetTopBottomMargin 9See "Special Notes - Zoom Y"
4 DecreaseTopBottomMarg
See "Special Notes - Zoom Y"
10 ResetTopBottomMargin 1See "Special Notes - Zoom Y"
st the %Equity you want to risk (for multiple hotkeys, otherwise just take 100%). If you want to use a non-dynamic fixed $$ amount, use the section below.
ct Long or Short (or just use the already configured). Or select "short-SSR" which is the same as the short command, but puts the sent price at bid+0.01 (s
ct the command in cell E and copy, paste it into DAS Trader Pro
it? Hopefully ...
Price+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*
-Price+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5
-Price+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5
-Price+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5
-Price+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5
-Bid+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*S
e-Bid+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*
e-Bid+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*
e-Bid+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*
e-Bid+0;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;
DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SM
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;P
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;P
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;P
efShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;P
Share-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Pr
Share-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Pr
-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= A
are-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price
re-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=
are-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price
are-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price
-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=bi
are-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price
re-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=
are-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price
are-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price
hare=30/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSS
hare=40/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSS
hare=50/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSS
hare=60/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSS
hare=70/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSS
are=30/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSSh
are=40/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSSh
are=50/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSSh
are=60/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSSh
are=70/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSSh
DAY+;SELL=Send
=DAY+;BUY=Send
is not recommended to:
e*1.25;Price=AvgCost-Price;Price=Round2;TIF=DAY+;BUY=Send
e*1.25;Price=AvgCost-Price;Price=Round2;TIF=DAY+;BUY=Send
e*1;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send
e*1;Price=Price+AvgCost;Price=Round2;TIF=DAY+;SELL=Send
;Price=Price*1.25;Price=Price+AvgCost;Price=Round2;Route=Stop;StopType=Range;LowPrice=StopPrice;HighPrice=Price;TIF=DAY+;SEL
;Price=Price*1;Price=Price+AvgCost;Price=Round2;Route=Stop;StopType=Range;LowPrice=StopPrice;HighPrice=Price;TIF=DAY+;SELL=
;Price=Price*1;Price=Price+AvgCost;Price=Round2;Route=Stop;StopType=Range;LowPrice=StopPrice;HighPrice=Price;TIF=DAY+;SELL=
;Price=Price*1.25;Price=AvgCost-Price;Price=Round2;Route=Stop;StopType=Range;HighPrice=StopPrice;LowPrice=Price;TIF=DAY+;BUY
;Price=Price*1;Price=AvgCost-Price;Price=Round2;Route=Stop;StopType=Range;HighPrice=StopPrice;LowPrice=Price;TIF=DAY+;BUY=S
;Price=Price*1;Price=AvgCost-Price;Price=Round2;Route=Stop;StopType=Range;HighPrice=StopPrice;LowPrice=Price;TIF=DAY+;BUY=S
or the SYMB, then input the new STOP order with AVGCOST (breakeven) as the trigger. Also updates the position.
or the SYMB, then input the new STOP order with AVGCOST (breakeven) as the trigger. Also updates the position.
STOPPRICE=AvgCost;StopPrice=Round2;Share=Pos;TIF=DAY+;Send=Reverse;
or the SYMB, then input the new STOP location based on where you double clicked on the chart. Also updates the position.
or the SYMB, then input the new STOP location based on where you double clicked on the chart. Also updates the position.
for the SYMB. It will REPLACE the clicked order. It updates the POSITION only. To use you must have an "Orders" window available, doub
for the SYMB. It will REPLACE the clicked order. It updates the POSITION only. To use you must have an "Orders" window available, doub
with STOP MARKET orders only. This hotkey will not cancel all open-orders for the SYMB. It will REPLACE the clicked order. It updates th
$ amount, use the section below.
DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
Share;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;
TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
ogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
ogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;
es the position.
es the position.
Orders" window available, double-click the stop order you want to replace, and then fire the hotkey.
Orders" window available, double-click the stop order you want to replace, and then fire the hotkey.
the clicked order. It updates the POSITION only. To use you must have an "Orders" window available, double-click the stop order you wan
DefShare=200;
;DefShare=200;
;DefShare=200;
;DefShare=200;
;DefShare=200;
efShare=200;
DefShare=200;
DefShare=200;
DefShare=200;
DefShare=200;
e-click the stop order you want to replace, and then fire the hotkey.
You double-click the chart at 19.98 to go long, price is currently at 20.20.
LONG
% EQUITY: StopPrice=Price-0.01; DefShare=BP*0.97; Share=DefShare*0.25*Price*0.01
^ if sending a stop
Example Variables:
Side Long
Price @ Entry Time 20.2
Stop Price (DoubleClicked) 19.98
Configured:
Account Leverage: 4
Equity: $25,000
Max Account Risk [per-trade] 1%
Calculated Buying Power $100,000
% of Total Buying Power: 97%
Ma DefShare=BP*0.97;
DefShare=4802*0.97; 4,802
Share=DefShare*0.25*Price*0.01
Share=4802*0.25*19.98*0.01 240
Rs SShare=Share/Price;
SShare=240/0.23; 1,043
Share=DefShare-SShare;
Share=4802-1043; 3,759
DefShare=DefShare+SShare;
DefShare=4802+1043; 5,845
SShare=Share;
SShare=3759; 3,759
Sshare=DefShare-SShare;
Sshare=5845-3759; 2,086
Share=0.5*SShare;
Share=0.5*2086; 1,043
The section below is just the rest of the hotkey, and if you
TogSShare;
ROUTE=LIMIT;
TIF=DAY+;BUY=Send;
DefShare=400;
TriggerOrder=RT:STOP STOPTYPE:Limit
PX:StopPrice-0.3
PX:19.97-0.3 19.67
ACT:SELL
atenated values, the "example" portion below on the left in the B column will not change if you chang
anges with the above if you want to see what will change with different values.
ight be slightly off as Excel has higher precision than values from DAS, they'll be close enough for th
SPECIAL NOTE: The BP variable in DAS is not the Buying Power dollar amount, it's the sh
Maximum shares DAS expects you to be able to afford (example assumes 20.20 last price,
Calculated maximum dollar risk per trade (1% of [25,000 * 97%])
Calculate Stop Distance, returns: $ of distance from stop and current bid/ask price
Calculate shares afforded at % Equity Risk, returns: Total shares at the % equity risk.
Absolute Value of A - B (Display box can only have positive INTs, so it loses the sign)
Calculate the [A + B] - [ | A - B | ]
Yes - Rs is smaller than Ma, we can afford the full order at our $risk.
1,043
$ 239.86
$ 21,065.87
e hotkey, and if you had a Stop Trigger Order enabled, what that would look like.
This is the LIMIT order max we want, so we're asking to fill at the current value UP TO this
For stop limit orders, this is just like the "fill down to this amount, but no lower." Recommen
The "Pos" part of this is a dynamic variable, it won't be populated until the Trigger Order fire
DefShare=DefShare+SShare; SShare=Share; Sshare=DefShare-SShare; Share=0.5*SShare; TogSShare;
wer dollar amount, it's the shares afforded at the LAST PRICE.
ple assumes 20.20 last price, 100,000 equity) * our Buying Power usage (97%)
current bid/ask price
d look like.
he current value UP TO this value, but no higher.
LONG
$RISK StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=150/Price;Share=DefShare-SShare;D
^ if sending a stop
Example Variables:
Side Long
Price @ Entry Time 20.2
Stop Price (DoubleClicked) 19.98
Configured:
Account Leverage: 4
Equity: $25,000
Max Account Risk [per-trade] 1%
Calculated Buying Power $100,000
% of Total Buying Power: 97%
$Dollar Risk $150
NOTE: Because of how Excel colors it's concatenated values, the "ex
The D column (Calculated Values) changes with the above if
The default values and calculations might be slightly off as Ex
For best understanding, try and follow the colors as they prog
Script Portion Calculated Value
StopPrice=Price-0.01;
StopPrice=19.98-0.01; 19.97
Price is our double-clicked spot, to get us the risk distance (stop distance). "Min
Ma DefShare=BP*0.97;
DefShare=4950*0.97; 4,802
Example Ask: 20.2
;Price=Ask-Price+0.01;
;Price=20.20-19.98+0.01; 0.229999999999999
Rs SShare=$Risk/Price;
SShare=150/0.23; 652
Share=DefShare-SShare;
Share=4802-652; 4,150
DefShare=DefShare+SShare;
DefShare=4802+652 5,454
SShare=Share;
SShare=4150; 4,150
Sshare=DefShare-SShare;
Sshare=5454-4150; 1,304
Share=0.5*SShare;
Share=0.5*20849; 652
The section below is just the rest of the hotkey, and if you had
TogSShare;
ROUTE=LIMIT;
Example Ask: 20.2
Price= Ask+0.05;
Price= 20.20+0.05; 20.25
TIF=DAY+;BUY=Send;
DefShare=400;
TriggerOrder=RT:STOP STOPTYPE:Limit
PX:StopPrice-0.3
PX:19.97-0.3 19.67
ACT:SELL
ncatenated values, the "example" portion below on the left in the B column will not change if you cha
hanges with the above if you want to see what will change with different values.
might be slightly off as Excel has higher precision than values from DAS, they'll be close enough for
w the colors as they progress through the variables. I know some colors are really close, but I've trie
SPECIAL NOTE: The BP variable in DAS is not the Buying Power dollar amount, it's the sh
Maximum shares DAS expects you to be able to afford (example assumes 20.20 last price,
Price in this instance is the double-clicked part on the chart, keep that in mind!
Calculate Stop Distance, returns: $ of distance from stop and current bid/ask price
Absolute Value of A - B (Display box can only have positive INTs, so it loses the sign)
Calculate the [A + B] - [ | A - B | ]
Final calculation for the MIN formula, divided it in half. This is the shares we'll go with.
Yes - Rs is smaller than Ma, we can afford the full order at our $risk.
652
$ 150.00
$ 13,173.91
the hotkey, and if you had a Stop Trigger Order enabled, what that would look like.
This is the LIMIT order max we want, so we're asking to fill at the current value UP TO this
For stop limit orders, this is just like the "fill down to this amount, but no lower." Recommen
The "Pos" part of this is a dynamic variable, it won't be populated until the Trigger Order fire
SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=400;TriggerOrder=RT:STOP ST
wer dollar amount, it's the shares afforded at the LAST PRICE.
ple assumes 20.20 last price, 100,000 equity) * our Buying Power usage (97%)
eep that in mind!
current bid/ask price
he $ risk.
We simulate a Y-Axis zoom by editing the "Top Bottom Margin" percentage on the chart via hotkey. So if you set the "Config Value" to 10, it'd represent a zoom
selected chart and add 10% to it. This only changes the selected charge.
The "Reset to Default" value is the value you want to set the chart. By default, Top Bottom Margin is set to 3% in DAS. If you usually use 25%, you'd put "25" in t
**NOTE** As of DAS 3.4.0.2, the ResetTopBottomMargin now accepts a value after it so that it can be reset to a specific value. In that sense, you could have tw
20; , and one for your "zoomed out" value ResetTopBottomMargin 99;
Although you can manually go above 99% by typing it in or by pressing your IncreaseTopBottomMargin hotkey, you can not get there via the ResetTopBottomM
**NOTE** As of DAS 3.4.0.0, the length of this hotkey is limited to 20. Not sure if this is an introduced bug or a new limit. The selectable options are limited to 20
Date Version Person
10 / 2018 v1.00 Kyle K
10/17/2018 v1.1 Kyle K
v2.1 Kyle K
Notes
Released to Public / BBT
- Changed the precision calculation on certain portions of the script to only go to 3 decimal places. Minor change, no need to re
- Added some more helper mark up / instructions.
- Added instructions for dealing with different LONG / SHORT margins (IB broker).
- Changed $Dollar Risk equation to be more efficient (removed unnecessary calculations for it).
- NEW FEATURE: Added "Scale-In" hotkey generator below $Dollar Risk on Hot Keys tab. Calculates affordable position scale
- Merged in Michael P's suggestion to remove ranges from CONCATENATE as they're only supported in Sheets. Should be co
Added a "Scale-Out" hotkey generator for the newer users who also want to do their take-profit hotkeys.
Added a new options for configuring an automatic STOP TRIGGER command with the initial command.
Added a stop-price-offset for those that want to include the clicked price or exclude the clicked price. Default is 0. Few minor to
Added a troubleshooting section. Added a new "Extras" section to Hotkeys that have additional hotkey commands for modifying
- Rewrote the Stop Trigger section to be easier to add to other hotkeys in the future (if necessary, e.g. update on scale-in or up
- Fixed a bug in the stop-trigger code that may have been causing undesireable results among users.
- NOTICE: Important bugfix to the breakeven modifier hotkeys, if you have one from the previous version it is advised that you
Added new ZoomY hotkey to Hot Keys "Extras" section.
Added some new hotkeys (Range, PriceTarget, Short-SSR)
Added Scale-In by $Risk hotkey.
Lots of fixes and new workflow example on the sheets titled "Example - Equity%" and "Example - $Risk" to help explain the ma
Bug Fixes:
- Fixed: Stop Update Long, Stop Update Short, Scale-In Risk.
- Recolored some items on the Hotkeys tab to better illustrate to the user what can be changed.
- Changed verbiage around the "Stop Offset" to avoid confusion.
% of Total
Account Leverage Max Account Risk % Bid / Ask Offset Routes
Buying Power
1 0.25% 0 100.00% LIMIT
2 0.50% 0.01 99.00% MARKET
3 0.75% 0.02 98.00% SMRTL
4 1.00% 0.03 97.00% SMRTM
5 1.25% 0.04 96.00%
6 1.50% 0.05 95.00%
1.75% 0.06 94.00%
2.00% 0.07 93.00%
2.25% 0.08 92.00%
2.50% 0.09 91.00%
2.75% 0.1 90.00%
3.00% 0.11 89.00%
4.00% 0.12 88.00%
5.00% 0.13 87.00%
0.14 86.00%
0.15 85.00%
0.16 84.00%
0.17 83.00%
0.18 82.00%
0.19 81.00%
0.2 80.00%
0.21 79.00%
0.22 78.00%
0.23 77.00%
0.24 76.00%
0.25 75.00%
0.26 74.00%
0.27 73.00%
0.28 72.00%
0.29 71.00%
0.3 70.00%
0.31 69.00%
0.32 68.00%
0.33 67.00%
0.34 66.00%
0.35 65.00%
0.36 64.00%
0.37 63.00%
0.38 62.00%
0.39 61.00%
0.4 60.00%
0.41 59.00%
0.42 58.00%
0.43 57.00%
0.44 56.00%
0.45 55.00%
0.46 54.00%
0.47 53.00%
0.48 52.00%
0.49 51.00%
0.5 50.00%
0.51 49.00%
0.52 48.00%
0.53 47.00%
0.54 46.00%
0.55 45.00%
0.56 44.00%
0.57 43.00%
0.58 42.00%
0.59 41.00%
0.6 40.00%
0.61 39.00%
0.62 38.00%
0.63 37.00%
0.64 36.00%
0.65 35.00%
0.66 34.00%
0.67 33.00%
0.68 32.00%
0.69 31.00%
0.7 30.00%
0.71 29.00%
0.72 28.00%
0.73 27.00%
0.74 26.00%
0.75 25.00%
0.76 24.00%
0.77 23.00%
0.78 22.00%
0.79 21.00%
0.8 20.00%
0.81 19.00%
0.82 18.00%
0.83 17.00%
0.84 16.00%
0.85 15.00%
0.86 14.00%
0.87 13.00%
0.88 12.00%
0.89 11.00%
0.9 10.00%
0.91 9.00%
0.92 8.00%
0.93 7.00%
0.94 6.00%
0.95 5.00%
0.96 4.00%
0.97 3.00%
0.98 2.00%
0.99 1.00%
Time In Force Equity % Fixed Dollar Risk Send-Load True-False Stop Routes
0 0.25
1 0.5
2 0.75
3 1
4 1.25
5 1.5
6 1.75
7 2
8 2.25
9 2.5
10 2.75
11 3
12
13
14
15
16
17
18
19
20