incohérence de codage sur macd

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #219090 quote
    bobobobo
    Participant
    Average

    Bonjour à tous ,bonjour Nicolas,

    Voici ma capture d’écran, PNR en hebdo avec les valeurs que me retourne le macd le 7/08/2023 et 14/08/2023.

    D’autre part voici le code de mon indicateur signal el30 hebdo(1)

    a=MACD[12,26,9](close)
    c1=a>a[1]
    if(c1) then
    result=1
    else
    result=0
    endif
    return result

    Je ne comprends pas pourquoi mon indicateur me retourne la valeur 0 au lieu de 1,  le 14/08/2023 , alors que la valeur du macd du 14/08 est supérieure à celle du 7/08/2023.

    Merci par avance pour vos explications.

    PNR.png PNR.png
    #219093 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    sur ton graphe macd(ligne) du 14/08 est bien > au 07/08, mais macd(ligne-signal) (ou histogramme) ne l’est pas, et parmi les 3 mots-clés dans probuilder pour macd: macd(ligne), macd(signal), macd(ligne-signal), tu n’as pas utilisé celui pour macd(ligne) mais celui pour (ligne-signal).

    MACDLine

    MACDsignal

    MACD

     

    Si tu voulais coder la composante macd(ligne), alors tu peux définir ton “a” ainsi:

    a=MACDline[12,26,9](close)

    #219096 quote
    bobobobo
    Participant
    Average

    Merci beaucoup pour la réponse.

    Cordialement.

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

incohérence de codage sur macd


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
bobo @bobo Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by bobobobo
3 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/15/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...