Calcolo coefficienti su timeframe differenti

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #155354 quote
    ErmitageErmitage
    Participant
    Average

    Buongiorno a tutti

    ho creato un codice in cui calcolo due coefficienti F1 e F5 facendo riferimento al timeframe 1H, calcolando massimi e minimi degli ultimi 5 giorni e dell’ultimo giorno, rispettivamente 69 barre su H1 per massimi e minimi degli ultimi 5 giorni e 13 barre sempre su H1 per massimi e minimi dell’ultimo giorno.

    Vorrei però che tale indicatore rimanesse  il medesimo anche su altri timeframe, tuttavia passando a timeframe 15 M ottengo valori differenti, ho provato anche con updateonclose ma non sembra funzionare

    avete suggerimenti?

    REM F1 & F5
    
    Timeframe(1 hour)
    Lowest5= lowest[69](Low)
    Highest5= highest[69](High)
    
    F5 = (DClose(0)-Lowest5)/(Highest5-Lowest5)*100
    //F5 = (Close-Lowest5)/(Highest5-Lowest5)*100
    Lowest1= lowest[13](Low)
    Highest1= highest[13](High)
    
    F1 = (DClose(0)-Lowest1)/(Highest1-Lowest1)*100
    //F1 = (Close-Lowest1)/(Highest1-Lowest1)*100
    //AF1 = average[5](F1)
    
    RETURN F5 COLOURED(100, 149, 237) as "F5", F1 COLOURED(149, 100, 137)as "F1", 20 COLOURED (0,155,0)as "20", 85 COLOURED (255,0,0)as "85"
    #155356 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Prova a cambiare la riga 3 con:

    Timeframe(1 hour,UpdateOnClose)
Viewing 2 posts - 1 through 2 (of 2 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

Calcolo coefficienti su timeframe differenti


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Ermitage @ermitage Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 12/27/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...