OPR 15 minutes sur graphe 100 ticks

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #214595 quote
    clem50
    Participant
    New

    Bonjour,
    Est-il possible de tracer un rectangle permettant d’avoir le plus haut et le plus bas des bougies 100 ticks entre 09H00 et 09h15

    Merci beaucoup

    Très bonne journée

    #214601 quote
    Nicolas
    Keymaster
    Master

    Avec le code ci-dessous on détecte les plus hauts et plus bas entre ces horaires sur un graphique en ticks et on les affiche:

    defparam drawonlastbaronly=true
    
    start = 090000
    end = 091500
    
    tc = time>=start and time<end
    
    if tc and not tc[1] then
    i=i+1
    $x1[i]=barindex
    $y1[i]=low
    $y2[i]=high
    hh=high
    ll=low
    endif
    
    if tc then
    $x2[i]=barindex
    ll=min(ll,low)
    hh=max(hh,high)
    $y1[i]=ll
    $y2[i]=hh
    endif
    
    if islastbarupdate and isset($x1[2]) then
    for y = 1 to i do
    drawrectangle($x1[y],$y1[y],$x2[y],$y2[y]) //plot in history
    next
    endif
    
    return //hh,ll
    clem50 thanked this post
    #215580 quote
    clem50
    Participant
    New

    Bonjour,

    Merci beaucoup.

    Très bonne journée

    #215648 quote
    clem50
    Participant
    New

    Bonjour,

    Est ce qu’il serait possible de pouvoir tracer le rectangle sur toute la journée, mais en concevant le plus haut et plus bas de la page horaire 09:00 – 09:15 ?

    Merci beaucoup

    Très bonne journée.

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

OPR 15 minutes sur graphe 100 ticks


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
clem50 @clem50 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by clem50
2 years, 9 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/12/2023
Status: Active
Attachments: No files
Logo Logo
Loading...