Intraday volume avg

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #151893 quote
    bonghinibonghini
    Participant
    New

    buongiorno,

    ho provato ad usare un indicatore trovato qui sul forum ma viene evidenziato un errore (definisci la variabile p)

     

    somma=0
    //computation of average
    delta=round(highest[144](intradaybarindex)+1)
    for i=1 to p
     somma=somma+volume[i*delta]
    next
    fin=somma/p
    //computation of standard deviation
    sc=0
    for i=1 to p
     sc=sc+sqr(volume[i*delta]-fin)
    next
    scar=sqrt(sc/p)
     
    return fin,fin+scar coloured (0,150,255), max(0,fin-scar) coloured (0,150,255)

     

    Come è possibile risolvere?

     

    Molte grazie

    #151898 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Solitamente se c’è un file ITF allegato dovrebbe contenere tutte le definizioni.

    Ad ogni modo P si usa di solito per indicare i PERIODI (di un indicatore), quindi prova a mettere:

    p = 30

    prima, o dopo, la riga 1 (con il valore che preferisci).

    #151899 quote
    bonghinibonghini
    Participant
    New

    Grazie,

    ho provato ma ora dà questo errore:

    “un parametro di tipo intero positivo è atteso con * “

    #151917 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Prova ad aggiungere questa riga dopo la 3:

    delta = delta * 1

    purtroppo quando come indice viene usato un numero che proviene da calcoli succede questo perché lo interpreta come decimale, anche se ROUND() ha tolto i decimali.

    #152464 quote
    bonghinibonghini
    Participant
    New

    grazie,

    purtroppo continua a darmi lo stesso errore

    #152465 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Quale indicatore è?

    Puoi postare un link?

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

Intraday volume avg


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
bonghini @bonghini Participant
Summary

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

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