Indicateur Belkhayate MBFX timing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33172 quote
    Plscap
    Participant
    Veteran

    Bonjour à tous,

    Ayant trouvé cet indicateur (Belkhayate) sur une plateforme beaucoup moins attractive que PRT,

    je me demandais s’il était possible de retranscrire le code de l’indicateur pour PRT?

    Merci pour votre aide

    
    study("Belkhayate Timing [LazyBear]", shorttitle="BT_LB", overlay=false)
    showHLC=input(true, title="Smooth Osc?"), showHisto=input(false, title="Show Histogram?")
    Range1=input(4), Range2=input(8), ebc=input(false, title="Enable Barcolors")
    middle = (((high + low) / 2) + ((high[1] + low[1]) / 2) + ((high[2] + low[2]) / 2) + ((high[3] + low[3]) / 2) + ((high[4] + low[4]) / 2)) / 5
    scale = (((high - low) + (high[1] - low[1]) + (high[2] - low[2]) + (high[3] - low[3]) + (high[4] - low[4])) / 5) * 0.2
    h = (high - middle) / scale
    l = (low - middle) / scale 
    o = (open - middle) / scale
    c = (close - middle) / scale
    ht=showHLC?avg(h, l, c):c
    plot(0, title="ZeroLine", color=gray)
    l1=plot(Range1, title="SellLine1", color=gray)
    l2=plot(Range2, title="SellLine2", color=gray)
    l3=plot(-Range1, title="BuyLine1", color=gray)
    l4=plot(-Range2, title="BuyLine2", color=gray)
    fill(l1,l2,red, title="OBZone"), fill(l3,l4, lime, title="OSZone")
    plot(showHisto?ht:na, style=histogram, title="BTOscHistogram", linewidth=1, color=ht>0?green:red) 
    plot(ht, style=line, title="BTOsc", linewidth=3, color=gray) 
    bc=ht>0?(ht>=Range2?blue:(ht>=Range1?green:lime)):(ht<=-Range2?blue:(ht<=-Range1?maroon:red))
    barcolor(ebc?bc:na)
    plot(ht, style=linebr, title="BTOsc", linewidth=3, color=gray) 
    #33350 quote
    Nicolas
    Keymaster
    Master

    Pour faire suite à ta demande, j’ai convertit l’indicateur pour prorealtime. Tu le trouveras disponible au téléchargement directement dans la bibliothèque d’indicateurs prorealtime: MBFX Timing prorealtime

    Je n’ai par contre pas ajouté la possibilité d’afficher des histogrammes à la place de la ligne de l’oscillateur comme dans cette version de code Pinescript, cela ne m’a pas semblé très utile finalement 🙂

    #33447 quote
    Plscap
    Participant
    Veteran

    Bonjour Nicolas,

    Un grand merci pour ton indicateur.
    quel boulot .

     

    Je te remercie beaucoup

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

Indicateur Belkhayate MBFX timing


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Plscap @flodefacebook Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/24/2017
Status: Active
Attachments: No files
Logo Logo
Loading...