Affichage flèches Drawarrowup Drawarrowdown

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #179771 quote
    Madrosat
    Participant
    Master

    Bonjour

    Je n’arrive pas à afficher les flèches de l’indicateur “Forex Entry Point indicator 103” (sur graphique prix , ni  même en bas de la fenêtre)

    est-ce parce que j’utilise la version 11 ???

    Comment alors l’adapter pour la version 11?

     

    Au plaisir de vous lire

    Madrosat

    #179783 quote
    JC_Bywan
    Moderator
    Master

    Bonjour,

    en principe il n’y a pas de souci de compatibilité avec la version 11 des flèches utilisées dans un code v10.3, il faudrait poster tout le code, si ça se trouve c’est une autre instruction qui empêche de déclencher l’affichage (comme par exemple si la flèche est dans un bloc if-endif dont la condition inclurait le mot-clé “today” qui a changé de comportement de v10.3 à v11)

    #179839 quote
    Madrosat
    Participant
    Master

    Bonjour JC Bywan

    Je viens de modifier la fin du code en ajoutant “signal ” pour m’en servir en stratégie

    c’est pareil rien ne s’affiche  Bizarre

    J’essaie de joindre le code

    Au plaisir de vous lire

    #179840 quote
    Madrosat
    Participant
    Master
    //Forex entry point indicator103
    Once periodk = 21
    Once periodD = 12
    Once Smoothing = 3
    Once HighZone = 70
    Once LowZone = 30
    
    stochk =Stochastic[periodK,Smoothing](close)
    StochD = SmoothedStochastic[PeriodD,smoothing](close)
    
    if StochK<StochD and StochK[1]>StochD[1] and StochK<LowZone and stochk[1]< LowZone then
    //DrawArrowUp(barindex, Low - Range/2) Coloured(0,255,0)
    signal = 1
    Elsif stochK<stochD AND stochK[1]<stochD[1] and stochK>highZone and StochK[1]>HighZone then
    //DrawArrowDown(barindex, High + Range/2) Coloured(255,0,0)
    signal = -1
    else
    signal = 0
    
    
    Endif
    return signal as"Forex Entry Point Indicator103"
    

    Voici le code

    #179907 quote
    Nicolas
    Keymaster
    Master

    Tu as utilisé un autre type de stochastic pour créer la ligne D, soit la ligne de signal, hors il s’agit d’une moyenne mobile simple, voici le code:

    //Forex entry point indicator103
    Once periodk = 21
    Once periodD = 12
    Once Smoothing = 3
    Once HighZone = 70
    Once LowZone = 30
    
    stochk =Stochastic[periodK,Smoothing](close)
    StochD = average[PeriodD](close)
    
    if StochK<StochD and StochK[1]>StochD[1] and StochK<LowZone and stochk[1]< LowZone then
    //DrawArrowUp(barindex, Low - Range/2) Coloured(0,255,0)
    signal = 1
    Elsif stochK<stochD AND stochK[1]<stochD[1] and stochK>highZone and StochK[1]>HighZone then
    //DrawArrowDown(barindex, High + Range/2) Coloured(255,0,0)
    signal = -1
    else
    signal = 0
    
    
    Endif
    return signal as"Forex Entry Point Indicator103"
    #179969 quote
    Madrosat
    Participant
    Master

    Bonjour Nicolas

    Le code que j’ai indiqué est le code que tu as traduit

    et curieusement il marche en stratégie.

    sur le site prorealcode  dans  Forex entry point indicator tu vas trouver  le même code

    Bizarre ????

    Bonne apm

    Madrosat

    Forex-entry-point-1Adam.itf
    #179999 quote
    Nicolas
    Keymaster
    Master

    Je ne suis pas l’auteur du code, mais je confirme qu’il a bien un problème en v11, dut au calcul de la smoothedStochastic qui se “bloque”.. je vais me renseigner.

    #180008 quote
    Nicolas
    Keymaster
    Master

    Bon le problème a été identifié et sera corrigé dans la prochaine mise à jour. En attendant, tu peux supprimer les ONCE et ça fonctionne:

    //Forex entry point indicator103
    periodk = 21
    periodD = 12
    Smoothing = 3
    HighZone = 70
    LowZone = 30
    
    stochk =Stochastic[periodK,Smoothing](close)
    StochD = SmoothedStochastic[PeriodD,smoothing](close)
    
    if StochK<StochD and StochK[1]>StochD[1] and StochK<LowZone and stochk[1]< LowZone then
    DrawArrowUp(barindex, Low - Range/2) Coloured(0,255,0)
    signal = 1
    Elsif stochK<stochD AND stochK[1]<stochD[1] and stochK>highZone and StochK[1]>HighZone then
    DrawArrowDown(barindex, High + Range/2) Coloured(255,0,0)
    signal = -1
    else
    signal = 0
    
    
    Endif
    return signal as"Forex Entry Point Indicator103"
    #180014 quote
    Madrosat
    Participant
    Master

    Merci Nicolas pour ta réactivité et ton dévouement à ce site

    Madrosat

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

Affichage flèches Drawarrowup Drawarrowdown


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Madrosat @madrosat Participant
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by Madrosat
4 years, 4 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/16/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...