Hello Coding,
To avoid two long positions back to back
MarketPosition=-1 or (MarketPosition=0 and MarketPosition(1)<>1);
To avoid two short positions back to back
MarketPosition=1 or (MarketPosition=0 and MarketPosition(1)<>-1);
best regards
foolsgold
|