franchissement changement couleur ligne

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

    Bonjour,

    j’aimerai dessiner sur un graphique 1 min la ligne Kijun 15min (de ichimoku).

    mais là où je bloque, c’est que cette ligne apparaisse verte, lorsque le prix 1min est au dessus, et rouge quand le prix 1min est en dessous de celle-ci.

    merci.

    #234996 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    en supposant que pendant une UT15 en cours on veuille la valeur de kijun en clôture, alors on peut faire comme ci-dessous. Et si on veut plutôt une valeur “dynamique” du 15mn qui se développe mn par mn, alors on supprime le “updateonclose”.

    TIMEFRAME(15 minutes, UPDATEONCLOSE )
    k15=KijunSen[9,26,52]
    
    TIMEFRAME(1 minute)
    rouge=0
    vert=0
    bleu=0
    if close>k15 THEN
    vert=255
    elsif close<k15 THEN
    rouge=255
    endif
    
    return k15 coloured(rouge,vert,bleu)
    Iván González thanked this post
    #234999 quote
    gbzhgbzh
    Participant
    Junior

    super, merci. c’était exactement ça.

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

franchissement changement couleur ligne


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
gbzh @gbzh Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/09/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...