-
Content Count
47 -
Joined
-
Last visited
-
Days Won
9
Single Status Update
See all updates by RussWilliamL
-
Could you help me set this script to “risk 1R to make 1.25R” so either I lose 1R or profit 1.25R? thx in advance.
Short
CXL ALLSYMB;
$buyprice=Bid;
$risk=69;
$mystop=price;
$pricetostop=$mystop-$buyprice;
$target=Bid-$pricetostop-$pricetostop-$pricetostop;
$amount=$risk/$pricetostop;
ROUND2;
StopPrice=$mystop;
SShare=$amount;
Share=$amount;
TogSShare;
ROUTE=LIMIT;
Price=$buyprice;
TIF=DAY+;
SELL=Send;
TriggerOrder=RT:STOP STOPTYPE:RANGEMKT LowPrice:$target HighPrice:$mystop ACT:BUY QTY:POS TIF:DAY+;
Long
CXL ALLSYMB;
$buyprice=Ask;
$risk=69;
$mystop=price;
$pricetostop=$buyprice-$mystop;
$target=3*$pricetostop+Ask;
$amount=$risk/$pricetostop;
StopPrice=$mystop;
StopPrice=ROUND2;
SShare=$amount;
Share=$amount;
TogSShare;
ROUTE=LIMIT;
Price=$buyprice;
Price=ROUND2;
TIF=DAY+;
BUY=Send;
TriggerOrder=RT:STOP STOPTYPE:RANGEMKT LowPrice:$mystop HighPrice:$target ACT:SELL QTY:POS TIF:DAY+;