echelle réduit en ligne

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #217445 quote
    PRC_2021PRC_2021
    Participant
    Average

    Bonsoir,

    J’ai un indicateur perso avec des flèches, mais quand je change d’actif, tout se réduit sur une ligne – voir pj.

    Help me please.

    Voici le return où je crois qu’il faut modifier mais je ne vois pas…

    if achat then
    DRAWARROWUP(barindex,low-4)coloured(10,255,10)
    elsif vente then
    DRAWARROWDOWN(barindex,high+4)coloured(255,10,10)
    endif
    
     
    RETURN (achat),(vente)
    Sans-titre.png Sans-titre.png
    #217447 quote
    JSJS
    Participant
    Master

    Bonjour,

    Probablement les variables « Achat » et « Vente » ont des valeurs de zéro (0) ou un (1) de sorte qu’elles « tirent vers le bas » l’échelle verticale…
    Supprimez donc « Achat » et « Vente » après le « Return »…
    Il est également préférable d’utiliser « PipSize » pour que la distance relative reste la même dans chaque graphique…

    if achat then
    DRAWARROWUP(barindex,low-4*PipSize)coloured(10,255,10)
    elsif vente then
    DRAWARROWDOWN(barindex,high+4*PipSize)coloured(255,10,10)
    endif
    
     
    RETURN
    PRC_2021 thanked this post
    #217458 quote
    PRC_2021PRC_2021
    Participant
    Average

    Cela fonctionne parfaitement avec votre code.

    Merci beaucoup.

    JS thanked this post
    #218006 quote
    PRC_2021PRC_2021
    Participant
    Average

    Bonjour @js,

    J’ai le même problème avec le code ci dessous du pivot hebodmadaire.

    Quand je change le nombre d’unités afficher cela me réduit tout.

    // POINT PIVOT HEBDOMADAIRE
    IF dayofweek < dayofweek[1] THEN
    weekhigh = prevweekhigh
    weeklow = prevweeklow
    weekclose = prevweekclose
    prevweekhigh = high
    prevweeklow = low
    ENDIF
     
    prevweekhigh = max(prevweekhigh, high)
    prevweeklow = min(prevweeklow, low)
    prevweekclose = close
    //Pointpivot Hebdomadaire
    PPHEBDO = (weekhigh + weeklow + weekclose) / 3
    
    return PPHEBDO
    

    Merci pour ton aide

    #218008 quote
    fifi743fifi743
    Participant
    Master

    si la variable PPHEBDO est a zéro c’est que vous n’avez pas assez unité pour afficher

    donc CA tasse l’affichage

    #218010 quote
    PRC_2021PRC_2021
    Participant
    Average

    humm bizarre car j’en ai 2K d’unités en H4

Viewing 6 posts - 1 through 6 (of 6 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

echelle réduit en ligne


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
PRC_2021 @manu35250 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by PRC_2021PRC_2021
3 years, 2 months ago.

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