Ecart Xbougies avec twist futur

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #188356 quote
    PRC_2021PRC_2021
    Participant
    Average

    Bonjour,

    Je souhaiterais avoir un indicateur qui m’indique lorsqu’il y a un twist dans le nuage future avec un écart de 40 bougies par exemple ( modifiable) entre le précédent twist. Si 2 twist dans le nuage futur (donc inf à 26 bougies), seul le 1ier devra être détecté.

    Voici mon ébauche de code mais je bloque.

    //timeframe (1 hours)
    //variables
    tenkan=(highest[9](high)+lowest[9](low))/2
    kijun=(highest[26](high)+lowest[26](low))/2
    SpanAfuture=(tenkan+kijun)/2
    SpanBfuture=(highest[52](high)+lowest[52](low))/2
    SpanAH1 = (tenkan[26]+kijun[26])/2
    SpanBH1 = (highest[52](high[26])+lowest[52](low[26]))/2
    
    //Twist nuage future
    twist1 = SpanAfuture crosses over SpanBfuture
    twist2 = SpanAfuture crosses under SpanBfuture
    
    twistH1 = (twist1 or twist2)
    
    // pas de twist dans XX bougie avant
    //c1 = summation[40] (SpanAH1 >= SpanBH1)>=40
    //c2 = summation[40] (SpanAH1 <= SpanBH1)>=40
    
    //cond = (c1 or c2)
    
    
    //condition = (twistH1 and cond)
    
    return(twistH1)coloured(154,205,50)STYLE(histogram,2)

     

    Merci de votre aide.

Viewing 1 post (of 1 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

Ecart Xbougies avec twist futur


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
PRC_2021 @manu35250 Participant
Summary

This topic contains 1 voice and has 0 replies.

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