DrawText Afficher les valeurs

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #196471 quote
    LurubuLurubu
    Participant
    Senior

    Bonjour,

    dans le programme ci-joint, (ligne 13) je ne comprends pas que les valeurs chiffrées ne s’affichent pas.

    J’obtiens #Close – Low[i]#

    Pourtant dans d’autres programmes, cela fonctionne bien.

    Où est mon erreur ?

    Merci

    Cond60 = Close[12] > Open[12]
    Cond30 = Close[6] > Open[6]
    Cond15 = Close[3] > Open[3]
    Cond5 = Close > Open
    CondHeure = Time = 080500 or Time = 090500 or Time = 100500 or Time = 110500 or Time = 120500 or Time = 130500 or Time = 140500 or Time = 150500 or Time = 160500 or Time = 120500 or Time = 180500
    
    If Cond60 and Cond30 and Cond15 and Cond5 and CondHeure then
    DRAWCANDLE(open, high, low, close)coloured(0,0,0)
    For i = 1 to 10 do
    If Low[1]> Low[i-1] and Low [i] < Low[i+1] then
    DRAWPOINT(barindex, Low[i],1)coloured(255,0,0)
    DrawPoint(BarIndex,2*close-Low[i],1)coloured(0,255,0)
    DrawText("#Close - Low[i]#",barindex,Low[i],Dialog,Bold,15)coloured(255,0,0)
    DrawPoint(barindex,(3*close-Low[i])/2,1)coloured(0,0,200)
    break
    endif
    next
    endif
    
    return
    #196478 quote
    NicolasNicolas
    Keymaster
    Legend

    #Close – Low[i]# n’est pas une valeur, mais un calcul, hors DRAWTEXT ne fait pas de calcul, il affiche simplement un texte issu de la valeur, donc il faut délocaliser ce calcul dans une variable au préalable:

    var = Close – Low[i]
    
    DrawText("#var#",barindex,Low[i],Dialog,Bold,15)coloured(255,0,0)
    #196481 quote
    LurubuLurubu
    Participant
    Senior

    Bien sur !

    Merci

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

DrawText Afficher les valeurs


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

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

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