int Lots = 1;
int LotMult = 1;
int LotsUsed = Lots * LotMult;
if (SMA(10)[0] < Position.AvgPrice - 70 * TickSize)
{
LotMult = LotsUsed * 2;
ExitLong();
}
if (SMA(10)[0] > Position.AvgPrice + 70 * TickSize)
{
LotMult = 1;
ExitLong();
}
When I run the strategy, it always buys just one lot, no matter if the last position closed up or down.

Question:
How do I get LotMult to actually equal the proper value (LotsUsed * 2) when the trade went short ?

Comment