privilégier l’affiche d’un indicateur sur un autre

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #212928 quote
    olivier
    Participant
    Junior

    Bonjour,

    mon problème est que la ligne macd et la ligne signal s’affichent en dessous des histogrammes ce qui me gêne pour la lecture.

    comment afficher ces deux indicateurs au dessus ?

    meci d’avance

    REM Cet exemple calcule le MACD
    
    MMrapide = EXPONENTIALAVERAGE[mmr](CLOSE)
    MMlente = EXPONENTIALAVERAGE[mml](CLOSE)
    
    e = MMrapide - MMlente// ligne macd
    f = EXPONENTIALAVERAGE[signal](e)// ligne signal
    
    g=e-f // différence macd signal en hystogramme
    gr=g<0 and g[1]>g
    gv=g>0 and g[1]<g
    gbr=g<0 and g[1]<g
    gbv=g>0 and g[1]>g
    
    if gr then
    gr=e-f
    elsif gv then
    gv=e-f
    elsif gbr then
    gbr=e-f
    elsif gbv then
    gbv=e-f
    endif
    
    
    return e AS "MACD",f AS "signal",gr coloured(255,0,0)as"gr",gbr coloured(100,149,237) as "gbr",gv coloured(0,153,0) as"gv",gbv coloured(100,149,237)as"gbv",g as "diff macd",0
    #212933 quote
    JC_Bywan
    Moderator
    Master

    Bjr,

    simplement en mettant e et f non pas en premier mais en dernier dans la ligne “return”

    #212936 quote
    olivier
    Participant
    Junior

    tout simplement, MERCI

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

privilégier l’affiche d’un indicateur sur un autre


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
olivier @olivier Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/06/2023
Status: Active
Attachments: No files
Logo Logo
Loading...