HIGH & LOW FOR A TIME PERIOD

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #107878 quote
    Hans63Hans63
    Participant
    Average

    Ciao,

    è possibile avere un indicatore che plotti sul grafico il minimo e massimo di un periodo di tempo definito?

    Es. DAX dalle ore 08:00 alle ore 08:59

    Grazie

    #107879 quote
    Hans63Hans63
    Participant
    Average

    intendo una linea orizzontale continua (non un semplice punto), che definisca il minimo e il massimo, mano a mano che i prezzi si formano in quell’arco di tempo e che possa anche ( ma solo come ulteriore opzione) essere estesa a destra e visibile per tutta la giornata

    #107883 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo (se fai il copia & incolla togli i commenti dalle linee 2-4, se lo importi lasciali):

    DEFPARAM DrawOnLastBarOnly = true
    //DaOre   = 080000
    //AdOre   = 085900
    //Estendi = 0
    IF BarIndex = 0 THEN
       Minimo  = 0
       Massimo = 0
       Fine    = 0
       Inizio  = 0
    ENDIF
    IF OpenTime = DaOre THEN
       Minimo  = low
       Massimo = high
       Inizio  = barindex
       Fine    = barindex
    ENDIF
    IF OpenTime > DaOre AND OpenTime <= AdOre THEN
       Massimo = max(Massimo,high)
       Minimo  = min(Minimo,low)
       Fine    = barindex
    ELSE
       IF Estendi = 1 THEN
          Fine = barindex
       ENDIF
    ENDIF
    DRAWSEGMENT(Inizio,Massimo,Fine,Massimo)
    DRAWSEGMENT(Inizio,Minimo,Fine,Minimo)
    RETURN

    nella foto allegata puoi vedere come appare il grafico quando la casella ESTENDI delle proprietà è sia spuntata che non.

    Hans63 thanked this post
    x-8.jpg x-8.jpg Il-Mio-Indicatore51.itf
    #107917 quote
    Hans63Hans63
    Participant
    Average

    Grazie!

Viewing 4 posts - 1 through 4 (of 4 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

HIGH & LOW FOR A TIME PERIOD


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Hans63 @hans63 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Hans63Hans63
7 years ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 09/18/2019
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...