indicateur baisse d’histogramme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222790 quote
    teshmi9zteshmi9z
    Participant
    New

    bonjour, je souhaite détecter sur mon histogramme une baisse/hausse consécutive de 5 barres pour créer un flèche, j’ai essayé plein de chose mais impossible de faire marcher ma boucle je désespère

    jai essayé ceci mais ca ne marche pas

    baisse = slope1<slope1[1]

    result=0
    for i= 0 to 7 DO
    count=count+baisse
    if result>= 5 then
    break
    endif
    next

    //enrengistrement du signal baissier
    if result>= 5 and result [1]=0 then
    signalbar=barindex
    else
    signalbar =0
    endif

    if signalbar then
    DRAWARROWDOWN(barindex, close)
    endif

    #222793 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    Je suppose que ton slope1 est la valeur de l’histogramme, pas un intermédiaire de calcul dérivé de l’histogramme?

    Si tel est le cas, tu gardes:

    baisse= slope1<slope1[1]

    et pour savoir si ça a eu lieu 5 fois de suite, tu passes par summation avec:

    result= summation[5](baisse)=5

    Summation

    result est un booléen (vaut 0 ou 1), que tu peux tester ainsi pour obtenir le signal recherché:

    if result and not result[1] then

    #222863 quote
    teshmi9zteshmi9z
    Participant
    New

    merci c’est ce que je cherchais, inutile de faire une boucle du coup

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

indicateur baisse d’histogramme


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
teshmi9z @teshmi9z Participant
Summary

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

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