Probleme avec la fonction CALL

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #195398 quote
    netskissnetskiss
    Participant
    Average

    Bonjour,

    Je viens vers vous car j’ai un problème avec la fonction CALL

    j’ai créé un script comme ceci

    Res2 = CALL "CALL_PointsPivots"(Close)
    return Res2

    et mon script CALL_PointsPivots est le suivant :

    //POINTS PIVOTS JOURNALIERS
    if OpenDayOfWeek = 1 THEN
    PP = (DHigh(2) + DLow(2) + DClose(2)) / 3
    Res1 = 2 * PP - DLow(2)
    Res2 = PP + DHigh(2) - DLow(2)
    Res3 = DHigh(2) + 2 * (PP - DLow(2))
    Sup1 = 2 * PP - DHigh(2)
    Sup2 = PP - DHigh(2) + DLow(2)
    Sup3 = DLow(2) - 2 * (DHigh(2) - PP)
    ELSE
    PP = (DHigh(1) + DLow(1) + DClose(1)) / 3
    Res1 = 2 * PP - DLow(1)
    Res2 = PP + DHigh(1) - DLow(1)
    Res3 = DHigh(1) + 2 * (PP - DLow(1))
    Sup1 = 2 * PP - DHigh(1)
    Sup2 = PP - DHigh(1) + DLow(1)
    Sup3 = DLow(1) - 2 * (DHigh(1) - PP)
    
    ENDIF
    mR1 = (PP + Res1) / 2
    mR2 = (Res1 + Res2) / 2
    mR3 = (Res2 + Res3) / 2
    mS1 = (PP + Sup1) / 2
    mS2 = (Sup1 + Sup2) / 2
    mS3 = (Sup2 + Sup3) / 2
    
    
    return Res2

    Mais lorsque j’affiche les deux indicateur séparément je ne récupère pas la même valeur :

    pour le 1er script j’ai 13605,86667 et pour le 2è : 13826

    Je suis sur le Dax en 100 ticks

    Je ne comprends pas du tout pourquoi cela ne fonctionne pas..

    Merci beaucoup,

    Très bonne journée.

Viewing 1 post (of 1 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

Probleme avec la fonction CALL


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
netskiss @netskiss Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/16/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...