Signal à la clôture de la bougie

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

    Bonjour,

    Je bute sur un problème dont la solution doit me crever les yeux.

    Je demande à Probuider  de me donner un signal quand une condition est remplie.

    Par ex. la ligne de signal coupe la macd. Tout va bien, ça marche.

    if macdsignal crosses over macdline then

    signal = 1

    elsif macdsignal crosses under macdline then

    signal =-1

    else

    signal =0

    endif

    Sauf que le signal s’affiche et s’éteint tout au long de la durée de la bougie alors que je souhaite qu’il n’apparaisse qu’à la clôture de la bougie.

    Si vous avez une idée,

    cordialement,

    Luc

    #198430 quote
    NicolasNicolas
    Keymaster
    Legend

    Il donc tester une bougie en arrière avec un offset de [1] de tes séries de données, soit :

    if macdsignal[1] crosses over macdline[1] then
    
    signal = 1
    
    elsif macdsignal[1] crosses under macdline[1] then
    
    signal =-1
    
    else
    
    signal =0
    
    endif
    #198431 quote
    lucbissylucbissy
    Participant
    Junior

    Merci, merci, super réactif,

    C’était évident mais j’étais enfermé depuis plusieurs jours dans la recherche d’une instruction de probuilder.

    Merci de m’avoir ouvert les yeux.

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

Signal à la clôture de la bougie


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
lucbissy @lucbissy Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by lucbissylucbissy
4 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/03/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...