I am looking for a TriggerOrder, i want this to be first order doubles my position and i got that to work now the follow up:
TriggerOrder=RT:STOP STOPTYPE:LIMIT PX:StopPrice-0.12 ACT:SELL STOPPRICE:AvgCost-25/Pos QTY:Pos TIF:DAY+;
I suspect i can't do AvgCost -25/Pos all in one math equation? I'm not proficient enough with the writing of TriggerOrders to reverse engineer my solution. Do I have to set a variable for my $25/Pos to then set another variable as average cost to then get to STOPPRICE: varible A - varible B?
Ultimately my goal is double my position and then set a new stoploss at a dollar risk below average cost, but also would like to know a little more of how the triggerorder scripts work/ written.