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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #212928 quote
    olivierolivier
    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_BywanJC_Bywan
    Moderator
    Master

    Bjr,

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

    #212936 quote
    olivierolivier
    Participant
    Junior

    tout simplement, 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

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 olivierolivier
3 years, 5 months ago.

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