Rendre une ligne d’indicateur invisible

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #243575 quote
    Lurubu
    Participant
    Senior

    Bonjour,

    express CanalOuverture
    
    vars
    
    input	$Debut(0,2400,830),$Fin(0,2400,900);
    series PH,PB;
    
    calculation
    
    if (timetonumeric(timeopen)<=$Debut) then
    begin
    PH=(high+low)/2;
    PB=(high+low)/2;
    end
    
    if (timetonumeric(timeopen)>=$Debut) then
    begin
    PH=max(PH[1],high);
    PB=min(PB[1],low);
    end
    if (timetonumeric(timeopen)>$fin) then
    begin
    PH=PH[1];
    PB=PB[1];
    end
    
    if (timetonumeric(timeopen)>2000) then
    begin
    PH=(high+low)/2;
    PB=(high+low)/2;
    end
    
    
    interpretation
    begin
    end
    
    plot(PH,"Blue",2);
    plot(PB,"Red",2);
    

     

    à titre d’exemple voici un code simple de canal d’ouverture.

    Je voudrais que les lignes n’apparaissent pas en dehors de heures d’ouverture du canal.

    Comment peut-on faire ?

    Merci d’avance.

    #243584 quote
    fifi743
    Participant
    Master

    c’est pas un code PRT

    #243585 quote
    Lurubu
    Participant
    Senior

    Désolé, je me suis trompé de site.

    Bonne journée.

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

Rendre une ligne d’indicateur invisible


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Lurubu
12 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 02/07/2025
Status: Active
Attachments: No files
Logo Logo
Loading...