massimo o minimo di n gg precedenti su TF m10

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #97946 quote
    Gabriele BattistaGabriele Battista
    Participant
    Senior

    E’ possibile su un time frame m10 (o cmq diverso dal daily) avere il valore del massimo (e minimo) di n gg precedenti?

    Grazie

    #97955 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    X = highest[10](Dhigh(0))    //Massimo
    y = lowest[10](Dlow(0))      //Minimo
    #97958 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Scusami, era errato, perché te li calcolava sulle 10 ultime barre ma del timeframe che usi, quindi sul 5 minuti ti da i valori di 50 minuti prima, che sono gli stessi di adesso.

    Se usi il 5 minuti ci sono 288 barre in un giorno, ecco quello corretto:

    P              = 10                   //10 giorni indietro
    Moltiplicatore = 288                  //288 barre ogni giorno (per il 5 minuti)
    X = highest[P * Moltiplicatore](high) //Massimo
    y = lowest[P * Moltiplicatore](low)   //Minimo

    Se usi un TF orario dovrai mettere 24 come Moltiplicatore, 1440 per 1 minuto, ecc…

    #97971 quote
    Gabriele BattistaGabriele Battista
    Participant
    Senior

    grazie mille lo provo.

    #97976 quote
    Gabriele BattistaGabriele Battista
    Participant
    Senior

    Le 288 barre valgono per un orario di apertura h24, in caso contrario basta riproporzionare?

    #97980 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Si, certo, devi solo riproporzionarlo.

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

massimo o minimo di n gg precedenti su TF m10


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 05/08/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...