DAS Trader Pro – How to build up a position while keeping the risk the same

The objective of this hotkey is to add into a position, while changing the stop loss and keep the risk on the desired level.

It can be very practical to build up a position or to get back into full size after a partial. You can use the hotkey to open a position too which is also very practical as you press only one hotkey for opening the position or to add into a position.

Example:

You buy a stock that costs $100, and you set your stop to $99 while you want to risk $100.

You open the position with the previous hotkeys or any other way you like. In this case you buy 100 shares.

Now when the price action moves to $101 you want to add to your position while having the new stop loss at $100.50.

This means you are now opening a new position at $101 with a stop loss of $0.5 while having a $100 of unrealized profit.

Normally you would open the position with 200 shares but having 100 shares already from the previous entry makes things a bit different now as 200 shares would bring you to 300 shares and if the new stop loss would be hit you would lose $100 from the new position plus $50 from the unrealized gains from the position you stared.

The formula for counting the correct number of shares needed for a long trade is:

Simple Hotkey to add into a long position while keeping the desired risk

$MONTAGE=getwindowobj("MONTAGE1");
$DRISK=20;
// change this for the desired risk;
$MONTAGE.CXL ALLSYMB;
// cancel previous order
// start of calculations
$NEWSTOP=$montage.Price;
$DIFF=$montage.ASK-$montage.Price;
$TBRLS=$montage.POS*$montage.AVGCOST;
$TBRRS=$montage.POS*$NEWSTOP;
$TBR=$TBRLS-$TBRRS;
$TOP=$DRISK-$TBR;
$X=$TOP/$DIFF;
// end of calculations
$MONTAGE.SHARE=$X;
// change to 4 for sub dollar stock price
$MONTAGE.Price=ROUND($MONTAGE.Ask*1.003,2);
$MONTAGE.TIF="DAY+";
// change this for your desired route;
$MONTAGE.ROUTE="LIMIT";
$MONTAGE.BUY;
$MONTAGE.TriggerOrder=RT:STOP STOPTYPE:MARKET PX:$NEWSTOP ACT:SELL STOPPRICE:$NEWSTOP QTY:Pos TIF:DAY+;

Similarly, the same can be applied for short trades

The formula for counting the number of shares needed for a short trade is:

Simple Hotkey to add into a short position while keeping the desired risk

$MONTAGE=getwindowobj("MONTAGE1");
$DRISK=20;
// change this for the desired risk;
$MONTAGE.CXL ALLSYMB;
// cancel previous order
// start of calculations
$NEWSTOP=$montage.Price;
$DIFF=$montage.Price-$montage.BID;
$TBRLS=$montage.POS*$NEWSTOP;
$TBRRS=$montage.POS*$montage.AVGCOST;
$TBR=$TBRLS-$TBRRS;
$TOP=$DRISK-$TBR;
$X=$TOP/$DIFF;
// end of calculations
$MONTAGE.SHARE=$X;
// change to 4 for sub dollar stocks
$MONTAGE.Price=round($MONTAGE.Bid*0.997,2);
$MONTAGE.TIF="DAY+";
// change this for your desired route;
$MONTAGE.ROUTE="LIMIT";
$MONTAGE.SELL;
$MONTAGE.TriggerOrder=RT:STOP STOPTYPE:MARKET PX:$NEWSTOP ACT:BUY STOPPRICE:$NEWSTOP QTY:Pos TIF:DAY+;

I call the hotkeys above simple as they contain no conditions. Change the $DRISK value to the desired risk of your choice and other parts as necessary for the rounding and routing. Add into the position only if there is unrealized profit to be risked, otherwise the calculations can lead to incorrect numbers. Test it on SIM account first to get used to it.