Vwap close del giorno precedente

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #119877 quote
    thatguythatguy
    Participant
    New

    Buongiorno, come posso tracciare una linea orizzontale dal valore di chiusura del vwap del giorno precedente?

    Ho provato con il codice ( vwapclose (1) ) , oppure ( Dvwapclose (1) ) , senza successo

    #119906 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Quale istruzione usi per riferirti al VWAP ?

    #119907 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Intendevo chiederti quale indicatore usi per il VWAP.

    #119928 quote
    NicolasNicolas
    Keymaster
    Legend

    Non ci sono istruzioni per VWAP. Devi usare codici personalizzati. In questo indicatore è disponibile il precedente VWAP giornaliero: VWAP intraday

    thatguy thanked this post
    #119936 quote
    thatguythatguy
    Participant
    New

     

    Uso questo semplice codice:

    d = max(1, intradaybarindex)
     
    VWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)
     
    RETURN VWAP

    Quel che vorrei capire è che sintassi e che comando utilizzare (drawhline ?) per tracciare una retta orizzontale dall’ultimo valore del VWAP del giorno precedente.

    Allego screenshot di esempio su tradingview che vorrei copiare: bianco è appunto vwap intraday, arancione chiusura precedente

     

    Grazie

    Cattura.png Cattura.png
    #119939 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo, colora te le linee dalle proprietà:

    If IntraDayBarIndex = 0 Then
       VwapPrec = VWAP
    Endif
    d = max(1, intradaybarindex)
     VWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)
    RETURN VWAP AS “Wvap oggi”, VWAPprec AS “Wvap ieri”
    thatguy thanked this post
    #119958 quote
    thatguythatguy
    Participant
    New

    Perfetto, grazie mille 🙂

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

Vwap close del giorno precedente


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
thatguy @thatguy Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by thatguythatguy
6 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/18/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...