indicateur heinkin ashi, supertrend et volume

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

    bonjour,

    je viens d’essayer de creer mon premier indicateur pour du scalping en m1 :

    Achat: bougie haussière heinkin ashi, supertrend qui croise à la baisse le prix et un filtre de volume

    vente: bougie baissière heinkin ashi, supertrend qui croise à la hausse le prix et un filtre de volume

    pensez vous qu’une valeur de >60 volume  permet d’éviter les ranges?

    peut etre faut il rajouter une deuxieme bougie haussiere ou baissiere heinkin ashi ?

    comment coder 2 bougies haussieres sans meches basses / et 2 baissières sans meches hautes?

    merci pour votre aide et vos avis.

     

    vol=volume
    st= supertrend[2,7]
    rge = averagetruerange[10](close)
    
    //heinkin ashi
    IF BarIndex = 0 THEN
    XClose = TotalPrice
    XOpen = (Open + Close) / 2
    ELSE
    XClose = TotalPrice
    XOpen = (XOpen[1] + Xclose[1]) / 2
    ENDIF
     
    //conditions
    if xclose>xopen and xclose crosses over st[2] and vol>60 then
    DRAWARROWUP(barindex[0],low[1]-rge/2)coloured(10,255,10)
    elsif xclose<xopen and xclose crosses under st[2] and vol>60 then
    DRAWARROWDOWN(barindex[0],high[1]+rge/2)coloured(255,10,10)
    endif
     
    RETURN
    #157276 quote
    Nicolas
    Keymaster
    Master

    J’ai modifié ton code pour ajouter les conditions suivantes:

    • 2 bougies consécutives de la même couleur
    • 2 bougies consécutives “cul plat”
    vol=volume
    st= supertrend[2,7]
    rge = averagetruerange[10](close)
    
    //heinkin ashi
    IF BarIndex = 0 THEN
    XClose = TotalPrice
    XOpen = (Open + Close) / 2
    xHigh = high
    xLow = low
    ELSE
    XClose = TotalPrice
    XOpen = (XOpen[1] + Xclose[1]) / 2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
     
    //conditions
    if summation[2](xclose>xopen)=2 and xclose crosses over st[2] and vol>60 and summation[2](xlow=xopen)=2 then
    DRAWARROWUP(barindex[0],low[1]-rge/2)coloured(10,255,10)
    elsif summation[2](xclose<xopen)=2 and xclose crosses under st[2] and vol>60 and summation[2](xhigh=xopen)=2 then
    DRAWARROWDOWN(barindex[0],high[1]+rge/2)coloured(255,10,10)
    endif
     
    RETURN
    indicateur-scalping-heikin-ashi-cul-plat.png indicateur-scalping-heikin-ashi-cul-plat.png
    #157425 quote
    carole
    Participant
    New

    bonsoir,

     

    merci nicolas!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

indicateur heinkin ashi, supertrend et volume


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
carole @carole Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/10/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...