Vwap close del giorno precedente

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #119877 quote
    thatguy
    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
    robertogozzi
    Moderator
    Master

    Quale istruzione usi per riferirti al VWAP ?

    #119907 quote
    robertogozzi
    Moderator
    Master

    Intendevo chiederti quale indicatore usi per il VWAP.

    #119928 quote
    Nicolas
    Keymaster
    Master

    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
    thatguy
    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
    robertogozzi
    Moderator
    Master

    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
    thatguy
    Participant
    New

    Perfetto, grazie mille 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

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 thatguy
6 years, 1 month ago.

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