Sentiment meter con Volumi

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #235632 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Vorrei costruire un indice che assomigli al Vortex dal punto di vista estetico ma che misuri il sentiment cioè quante operazioni short ho sul mercato e quante long.

    La prima domanda è:  il dato del numero di operazioni short e long a mercato è disponibile ?

    Se no, potrei arrangiarmi con i volumi ma non ho ben capito come tirare fuori i volumi negativi e quelli positivi contemporaneamente per poterli mettere su un grafico.

    Mi aiutate ?

    Grazie

    #235633 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Ho fatto questo…funza abbastanza bene ma se ci fossero i dati sul numero di transazioni sarebbe meglio. Che ne dite ?

    Si può migliorare ? Come ?

    // Sentiment meter
    // Copyright Alessandro Furlani - alex.furlani@gmail.com
    //
    AvgClose = Average[period](Close)
    if AvgClose > AvgClose[1] then
    SentLong=volume
    SentShort=-volume
    elsif AvgClose < AvgClose[1] then
    SentShort=volume
    SentLong=-volume
    elsif AvgClose=AvgClose[1] and SentLong[1]>0 then
    SentLong=volume
    SentShort=-volume
    elsif AvgClose=AvgClose[1] and SentShort[1]>0 then
    SentLong=-volume
    SentShort=volume
    endif
    Zero=0
    
    return SentLong, SentShort, Zero

    Che appare cosi:

    Immagine-2024-07-22-170550.png Immagine-2024-07-22-170550.png
    #235636 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Ciao, potresti utilizzare l'indicatore Cumulative volume delta (vedi screenshot). Un'altra opzione potrebbe anche essere quella di utilizzare l' positive volume index e l' negative volume index .

    TSLA-Daily.png TSLA-Daily.png
    #235640 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Grazie, li provo tutti i poi vedo quello che risponde meglio

    #235655 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Scusa Ivan ma dove li trovo quegli indicatori ?

    #235656 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Trovati grazie.

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

Sentiment meter con Volumi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Alessandro FurlaniAlessandro Furlani
2 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 07/22/2024
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...