Indicateur MM kijun et tenkan proches

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #221237 quote
    LarenzuLarenzu
    Participant
    New

    Bonjour,

    J’ai codé un indicateur tout simple de cassure kijun ou tenkan sur du 1 minute avec comme condition la tendance de l’ut supérieure (15 minutes). Vous trouverez mon indicateur ci-dessous, par contre j’aimerai l’améliorer et rajouter une condition qui me semble importante, à savoir lorsque la mm50, la kijun et la tenkan sont très proches, mais j’ai beau essayé je n’y parviens pas. Si quelqu’un pouvait me venir en aide ?

    Merci beaucoup

    // Variables
    INDICATEUR = 0
    timeframe (default)
    Kijun = KijunSen[9,26,52]
    SSpanA = (tenkansen[26]+kijunsen[26])/2
    SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2
    Tenkan = TenkanSen[9,26,52]
    Chikou = close[26]
    Corps = abs(open-close)
    mms2001 = average[200]
    mms501 = average[50]
    
    Timeframe(1 hour)
    ppH1 = ((high+low+close)/3)
    Timeframe(15 minutes)
    mms200 = average[200]
    mms50 = average[50]
    
    
    
    timeframe (default)
    // ACHAT
    C1 = close > SSpanA and close > SSpanB
    C2 = close CROSSES OVER kijun or close crosses over tenkan
    C3 = close > Tenkan
    Timeframe (15 minutes)
    C7 =  close > mms200 and close > mms50
    timeframe (default)
    C8 = close > mms501 and close > mms2001
    C9 = hour > 8 and hour < 21
    
    
    IF C1 and C2 and C3 and C7 and c8 and c9 THEN
    INDICATEUR = 1
    
    endif
    
    //Achat meche sur kijun
    
    C1v = close < SSpanA and close < SSpanB
    C2v = close CROSSES under kijun or close crosses under tenkan
    C3v = close < Tenkan
    Timeframe (15 minutes)
    C7v =  close < mms200 and close < mms50
    timeframe (default)
    C8v = close < mms501 and close < mms2001
    C9v = hour > 8 and hour < 21
    
    
    IF C1v and C2v and C3v and C7v and c8v and c9v THEN
    INDICATEUR = -1
    
    endif
    return INDICATEUR as "1MIN le best"
    
    #221249 quote
    NicolasNicolas
    Keymaster
    Legend

    Le code ci-dessous de permet de visualiser le pourcentage d’écart du prix, entre la courbe la plus haute et la plus basse:

    // -------------
    
    kijun=KijunSen[9,26,52]
    tenkan = TenkanSen[9,26,52] 
    mm=average[50]
    ratio = max(mm,max(tenkan,kijun))/min(mm,min(tenkan,kijun))
    percent = abs(1-ratio)*100
    
    return percent

    Cela te permettra de visualiser cette valeur et d’incorporer un test dans ton code de screener par la suite, avec ce calcul.

    proximite-indicateurs.png proximite-indicateurs.png
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

Indicateur MM kijun et tenkan proches


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Larenzu @larenzu Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
3 years, 1 month ago.

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