Livelli su grafico weekly

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

    Gentili utenti chiedo un vostro aiuto ho provato in tutte le maniere ma non riesco a capire la gestione dei Timeframe

    Mi trovo su grafico Settimanale devo calcolare dei livelli di supporto/resistenza prendendo in considerazione i valori Open-close-High_Low

    della penultima barra Mensile e Annuale Un aiuto? Grazie

    #212966 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Usando il supporto MTF (Multiple Time Frames), puoi facilmente accedere ai dati che t’interessano, ecco lo schema:

    TimeFrame(1 Year,UpdateOnClose)
    Yopen  = open[1]
    Yhigh  = high[1]
    YLow   = low[1]
    Yclose = close[1]
    //
    TimeFrame(1 Month,UpdateOnClose)
    Mopen  = open[1]
    Mhigh  = high[1]
    MLow   = low[1]
    Mclose = close[1]

    dopodiché nel Timeframe settimanale puoi fare riferimento alle variabili Yopen, Yhigh, YLow, Yclose, Mopen, Mhigh, MLow e Mclose.

    #212969 quote
    TipotalpoTipotalpo
    Participant
    New

    Grazie per la risposta…ho inserito lo script di seguito ma mi dà errore

    appare un messaggio che dice che i timeframe devono essere multipli

    Mi trovo su grafico Settimanale

    DEFPARAM DrawOnLastBarOnly = true
    
    
    TimeFrame(1 Year,UpdateOnClose)
    BarAnnuale=barindex
    Yopen  = open[1]
    Yhigh  = high[1]
    YLow   = low[1]
    Yclose = close[1]
    //
    TimeFrame(1 Month,UpdateOnClose)
    BarMensile=barindex
    Mopen  = open[1]
    Mhigh  = high[1]
    MLow   = low[1]
    Mclose = close[1]
    
    DRAWSEGMENT(BarAnnuale,Yopen,BarIndex,Yopen) coloured(0,0,255,255)   //BLU     
    DRAWSEGMENT(BarMensile,Yopen,BarIndex,Yopen) coloured(0,0,255,255)   //BLU
    #213304 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    L’unica soluzione è usare 52 settimane per l’annuale e 4 per il mensile.

    Prova:

    DEFPARAM DrawOnLastBarOnly = true
    //
    TimeFrame(52 Weeks,UpdateOnClose)
    BarAnnuale=barindex
    Yopen  = open[1]
    Yhigh  = high[1]
    YLow   = low[1]
    Yclose = close[1]
    //
    TimeFrame(4 Weeks,UpdateOnClose)
    BarMensile=barindex
    Mopen  = open[1]
    Mhigh  = high[1]
    MLow   = low[1]
    Mclose = close[1]
    //
    Timeframe(default)
    DRAWSEGMENT(BarAnnuale,Yopen,BarIndex,Yopen) coloured(0,0,255,255)   //BLU
    DRAWSEGMENT(BarMensile,Mopen,BarIndex,Mopen) coloured(0,0,255,255)   //BLU
    return
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

Livelli su grafico weekly


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Tipotalpo @tipotalpo Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 04/06/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...