I am trying to get the equalized risk with range order target hotkey set up in DAS trader using the updated hotkeys from Peter's site, however I am having an issue with the short version.
When I execute it it is saying "Invalid shares."
The long version works.
Any help would be appreaciated!
$MONTAGE=GetWindowObj("MONTAGE1");
$MONTAGE.CXL ALLSYMB;
$sellprice=$MONTAGE.Bid;
$risk=20;
$mystop=$MONTAGE.price;
$pricetostop=$mystop-$sellprice;
$target=Bid-$pricetostop-$pricetostop-$pricetostop;
$amount=$risk/$pricetostop;
$MONTAGE.Share=$amount;
$MONTAGE.ROUTE="SMRTL";
$MONTAGE.Price=Round($sellprice,2);
$MONTAGE.TIF=DAY+;
$MONTAGE.SELL;
$MONTAGE.TriggerOrder=RT:STOP STOPTYPE:RANGEMKT LowPrice:$target HighPrice:$mystop ACT:BUY QTY:POS TIF:DAY+;