S.O.S. Perfect Trend Line – trading automatique

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #85157 quote
    newbie
    Participant
    Average
    Chers Forum[istes],

    Je cherche l’avis d’un expert en programmation PRT sur deux questions:

    1.) Peut-on, par le moyen de la création simplifiée, transformer l’indicateur Perfect Trend Line en système de trading automatisé?

    2.) Quels autres indicateurs compléteraient judicieusement?

    Par avance merci pour toute suggestion.

    #85166 quote
    Nicolas
    Keymaster
    Master

    Bonjour,

    1. Je viens de retrouver dans le forum une stratégie de trading automatique basée sur le perfect trend line, ici: https://www.prorealcode.com/topic/perfect-trend-indicator/
    2. En général, pour le timing d’entrée dans une stratégie tendancielle, on utilise un oscillateur
    #85196 quote
    newbie
    Participant
    Average
    Merci infiniment, Nicolas, pour votre réponse par retour de courrier et l’envoi du système conçu par Eduardo SILVARIO.
    Je déduis de votre réponse qu’il est inutile d’essayer une programmation au moyen de la Création simplifiée. Est-ce juste?
    Voici encore deux questions:
    1. Disposez-vous d’un formulaire – questionnaire à remplir par le client, afin de fixer la base d’une nouvelle programmation par vos soins?
    2. Auriez-vous la gentillesse de corriger pour moi les erreurs de syntaxe du système SILVARIO, selon la capture d’écran que je vous par mail séparé?

    Par avance je vous en remercie.

    Avec mes meilleures salutations, Hansjorg Luthy

    IMG_0639.jpg IMG_0639.jpg
    #85265 quote
    Nicolas
    Keymaster
    Master
    1. Pour les demandes de programmation privée, il faut passer par le formulaire du service de programmation sur cette page: Service de programmation trading
    2. Il faut simplement supprimer la première ligne, c’est un texte de description, pas du code.
    #86009 quote
    Nicolas
    Keymaster
    Master

    Le système de trading automatique avec Perfect Trend Line de l’autre sujet est celui-ci:

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    defparam flatbefore = 080000
    defparam flatafter = 170000
    
    // --- settings
    SlowLength         = 7 // Slow length
    SlowPipDisplace    = 0 // Slow pip displace
    FastLength         = 3 // Fast length
    FastPipDisplace    = 0 // Fast pip displace
    MinDailyProfit=20 //Max daily loss allowed  (in points)
    // --- end of settings
    
    thigh1 = Highest[SlowLength](high)+ SlowPipDisplace*pointsize
    tlow1  = Lowest[SlowLength](low)- SlowPipDisplace*pointsize
    thigh2 = Highest[FastLength](high)+ FastPipDisplace*pointsize
    tlow2  = Lowest[FastLength](low)- FastPipDisplace*pointsize
    
    if barindex>2 then
    if Close>line1[1] then
    line1 = tlow1
    else
    line1 = thigh1
    endif
    if Close>line2[1] then
    line2 = tlow2
    else
    line2 = thigh2
    endif
    endif
    
    if (Close[0]<line1[0] and Close[0]<line2[0]) then
    trend =  1
    endif
    if (Close[0]>line1[0] and Close[0]>line2[0]) then
    trend = -1
    endif
    if (line1[0]>line2[0] or trend[0] =  1) then
    trena =  1
    endif
    if (line1[0]<line2[0] or trend[0] = -1) then
    trena = -1
    endif
    
    //----
    // first time we launch the code, the trading is allowed
    once TradeAllowed=1
    if intradaybarindex=0 then 
    count=0
    MyProfit=STRATEGYPROFIT
    TradeAllowed=1
    endif
    
    // test if the strategyprofit of the day is currently above the daily profit allowed 
    If StrategyProfit>=MyProfit+(MinDailyProfit*POINTVALUE) then
    TradeAllowed=0
    endif
     
    if TradeAllowed and trena<>trena[1] and trend=-1 and not onmarket and count<150 then
    buy 1 contract at market 
    endif
    if longonmarket and  trend=1 then 
    sell at market
    endif
    if longonmarket and tradeindex<>lastindex then 
    count=count+1
    lastindex=tradeindex
    endif
    
    SET STOP PLOSS 5
    SET TARGET PPROFIT 5

    Veillez à bien copier/coller le code dans votre plateforme.

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

S.O.S. Perfect Trend Line – trading automatique


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Nicolas
7 years, 3 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 11/18/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...