Bonjour,
Je souhaiterais savoir Comment empecher le systéme de reprendre position dans la même journée après un stop?
Merci d’avance
DAKParticipant
Average
Essaye ça :
MaxDailyProfit = 1000 // in USD
MaxDailyLoss = 1000 // in USD
once TradeAllowed=1
If intradaybarindex=0 then
MyProfit=STRATEGYPROFIT
TradeAllowed=1
endif
If StrategyProfit>=MyProfit+MaxDailyProfit or Strategyprofit<=MyProfit-MaxDailyLoss then
TradeAllowed=0
endif
// Trade entry
IF TradeAllowed=1 AND yourconditions THEN
BUY 1 CONTRACTS AT MARKET
ENDIF
IF TradeAllowed=1 AND yourconditions THEN
SELL 1 CONTRACTS AT MARKET
ENDIF
Il te suffit d’inscrire le montant du stop en monnaie et le système ne reprendra pas position pour la journée mais recommencera à trader le lendemain.