Comment empecher le systéme de reprendre position après un stop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #60876 quote
    kamala
    Participant
    New

    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

    #62744 quote
    DAK
    Participant
    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comment empecher le systéme de reprendre position après un stop


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
kamala @kamala Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by DAK
8 years ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/29/2018
Status: Active
Attachments: No files
Logo Logo
Loading...