Programmation VWAP Ancré en intraday

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226069 quote
    GARNIEPI
    Participant
    New

    Bonjour et je vous présente mes meilleurs voeux de santé et de bonheur pour cette nouvelle année 2024.

    J’essaye de programmer un indicateur VWAP en intraday en saisissant le moment (format HHMMSS). Il dessine bien la courbe quand je suis en 1 min en revanche, il la dessine mal quand je suis sur une unité de temps différente. Je me suis inspiré de l’anchored vwwap de Nicolas qui marche en jour, mais visiblement j’ai du mal à le transposer à de l’intraday. J’ai mis en PJ la représentation en 1 mn et la représentation en 5 mn en exemple. Si quelqu’un peut m’aider. Merci d’avance

    //VWAP Time anchored | indicator
    //060129024
    
    
    // --- settings
    //startTime=080000
    // --- end of settings
    
    AVWAP=undefined
    
    
    if opentime=startTime then
    startbar=barindex
    endif
    if opentime>=startTime then
    barcount=barindex-startbar
    
    d = max(1, barcount)
    
    AVWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)
    
    
    if avwap>avwap[1] then
    color = 1
    else
    color = -1
    endif
    endif
    
    RETURN AVWAP coloured by color as "AVWAP"
    
    #229470 quote
    Iván González
    Moderator
    Master

    Bonjour, l'avez-vous déjà résolu ? J'ai saisi votre code et je constate qu'il est calculé correctement, en reprenant le calcul à partir de 8h00.

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

Programmation VWAP Ancré en intraday


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
GARNIEPI @garniepi Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
1 year, 11 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/06/2024
Status: Active
Attachments: 3 files
Logo Logo
Loading...