Un seul signal si condition remplie

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

    Bonjour,

    Voilà, sur le Nasdaq 2mn, je voudrais n’avoir qu’un seul signal quand la condition est remplie … et non un signal à chaque barre …

    J’espère que ce sujet n’est pas en double : si oui, mille excuses

    Merci de vos bons soins

    Bon week-end

    borne-mm-triangulaire-x3.itf
    #209950 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bjr, voici, en changeant la façon de gérer le signal=0

    born = average[1000,4](close)
    bornhaut = average[5](born) + 50
    bornbas = average[5](born) - 50
    
    distance = 0.75*averagetruerange[14]*pipsize
    xText = barindex
    yTextUp = high + 1*distance
    yTextDown = low - 1*distance
    Offset = 7 * pipsize
    
    monbornhaut= (12*bornhaut[10]+12*bornhaut[5]+12*bornhaut[1])/36
    if monbornhaut crosses over bornhaut then
    DRAWARROWUP(barindex, LOW - offset) COLOURED("turquoise")
    drawtext ("mom",xText, yTextDown-1.5*distance, Dialog, Bold, 12)coloured("turquoise")
    signal = 1
    else
    signal = 0
    ENDIF
    
    return bornhaut as "ho", bornbas as "ba"
Viewing 2 posts - 1 through 2 (of 2 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

Un seul signal si condition remplie


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
vanaerde @vanaerde Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JC_BywanJC_Bywan
3 years, 7 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 02/17/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...