codage indicator CenterOfGravityTiming

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #201487 quote
    ARLEQUIN49
    Participant
    Veteran

    Bonjour à tous,

    J’aurais besoin d’aide pour coder cet indicateur qui est un bon complément des autres indicateurs connus de M. BELKHAYATE. Il s’agit du Center of Gravity timing sous une autre forme que celui de Nicolas. Voici une image ainsi que le code d’une autre plate forme.

    indicator CenterOfGravityTiming;
    input period = 5, level1 = 4, level2 = 8;
    draw o(“Open”, dot_line, gray),
    h(“High”, dot_line, red),
    l(“Low”, dot_line, red),
    c(“Close”, solid_line, white),
    ul1(“Upper level 1”, dash_line, magenta),
    ul2(“Upper level 2”, dash_line, magenta),
    ll1(“Lower level 1”, dash_line, magenta),
    ll2(“Lower level 2”, dash_line, magenta);
    vars i(number), j(number), am(number), ar(number);
    begin
    if period < 1 then
    return;

    for i := front(close)+period-1 to back(close) do begin
    ul1[i] := level1;
    ul2[i] := level2;
    ll1[i] := -level1;
    ll2[i] := -level2;
    am := 0;
    ar := 0;
    for j := i-period+1 to i do begin
    am := am + (high[j]+low[j])/2;
    ar := ar + (high[j]-low[j])/5;
    end;
    am := am / period;
    ar := ar / period;
    if ar <> 0 then begin
    o[i] := (open[i]-am)/ar;
    h[i] := (high[i]-am)/ar;
    l[i] := (low[i]-am)/ar;
    c[i] := (close[i]-am)/ar;
    end else begin
    o[i] := 0;
    h[i] := 0;
    l[i] := 0;
    c[i] := 0;
    end;

     

     

    Merci d’avance

    #201586 quote
    Nicolas
    Keymaster
    Master

    Je ne vois pas d’image attaché ?

    #201590 quote
    ARLEQUIN49
    Participant
    Veteran

    Bonjour Nicolas,

    j’avoue ne pas trop savoir comment faire pour joindre une image.

    J’essai à nouveau

    Graphique.png Graphique.png
    #201592 quote
    ARLEQUIN49
    Participant
    Veteran

    j’en joins un nouveau où l’on voit nettement mieux l’indicateur en question qui est tout en dessous.

    Merci d’avance

    Graphique-2.jpg Graphique-2.jpg
    #201625 quote
    Nicolas
    Keymaster
    Master

    Le code que tu as transmit ne correspond à aucune des images 🙂

    Ci-joint l’image du code restitué sous ProRealTime.

    center-of-gravity-timing.png center-of-gravity-timing.png
    #201635 quote
    Nicolas
    Keymaster
    Master

    Je viens d’ajouter cet indicateur à la bibliothèque de scripts pour ProRealTime ici: Center Of Gravity Timing

    #201642 quote
    JC_Bywan
    Moderator
    Master

    Sujet déplacé du forum “Bienvenue aux nouveaux membres” au forum “ProBuilder”

    #201671 quote
    ARLEQUIN49
    Participant
    Veteran

    Merci Nicolas.

    Le graphique que j’avais joins venais de la plateforme Prostation à l’époque qui malheureusement n’existe plus depuis 2016  et qui était associé au broker WHSELFINVEST.

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

codage indicator CenterOfGravityTiming


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
ARLEQUIN49 @arlequin49 Participant
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by ARLEQUIN49
3 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/27/2022
Status: Active
Attachments: 3 files
Logo Logo
Loading...