Indicateur achat/vente en barres de couleur sous graphique

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #262122 quote
    SOBOUL
    Participant
    Junior

    Bonjour, serait il possible de créer un indicateur (backtest ci joint) qui serait sous le graphique par

    une barre verte (achat) et barre rouge (vente) et non pas flêche sur les prix. Par avance, merci.

    F00-AIR-LIQUIDE-nvgs.itf
    #262123 quote
    robertogozzi
    Moderator
    Master

    Voilà:

    // --- INDICATEURS ---
    rsi2 = RSI[2](close)
    // Moyenne mobile 100 sur bougie 2J (équivalent 200J)
    tendanceLongTerme = Average[50](close)
    // --- INITIALISATION DES VARIABLES ---
    once myOnMarket  = 0
    r = 0
    g = 0
    b = 0
    POSA = 0
    // --- ACHAT NIVEAU 1 ---
    IF Not myOnMarket AND rsi2 < 52 AND close > tendanceLongTerme THEN
    myPrice = close
    myOnMarket  = 1
    POSA = 1
    g = 255
    ELSIF myOnMarket AND close > (myPrice * 1.03) AND rsi2 > 70 THEN
    myOnMarket  = 0
    POSA = -1
    r = 255
    ENDIF
    RETURN POSA AS "Signal" style(Histogram,1) coloured(r,g,b)
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Indicateur achat/vente en barres de couleur sous graphique


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
SOBOUL @soboul Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 days, 9 hours ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/20/2026
Status: Active
Attachments: 1 files
Logo Logo
Loading...