Buongiorno,
Vorrei chiedere come si implementa un controllo sulle precedenti operazioni questo per cercare di limitare un po il drawdown.
Nello specifico vorrei avere un controllo del tipo
IF ULTIME UNA O DUE OPERAZIONI PRECEDENTI NEGATIVE THEN
SALTA LA PROSSIMA POSIZIONE
DOPO CHE E’ STATA SALTATA RIATTIVATI PER APRIRE NUOVE POSIZIONI
Come è possibile implementare questo controllo ?
Saluti
Così:
ONCE Negative = 0
ONCE Tradare = 1
IF StrategyProfit < StrategyProfit[1] THEN
Negative = Negative + 1
IF Negative = 2 THEN
Tradare = 0
Negative = 0
ENDIF
ELSIF StrategyProfit > StrategyProfit[1] THEN
Negative = 0
ENDIF
IF MieCondizioniLong THEN
IF Tradare THEN
BUY 1 Contract at Market
ELSE
Tradare = 1
ENDIF
ENDIF