Chiarimento funzione Summation

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #120862 quote
    GianlucaGianluca
    Participant
    Master

    Ciao a tutti potreste chiarirmi una cosa sulla funzione Summation?

    é possibile usarla per dire ad indicatore le ultime tot barre devono essere rialziste? ad esempio così

    condizione= summation[3](close>close[1])

    Io ho visto nel manuale che summation indica la somma

    [attachment file=”120863″]
    come dice qui

     

    Pero’ in alcuni codici ho visto che è stato usato anche per lo stocastico con questa funzione,

    sto=stochastic[8,3]
    c4 = summation[3](sto<20)>0

    Cosa significa così?

    SUMMATION.jpg SUMMATION.jpg
    #120865 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Se scrivi
    [scode]
    condizione= (summation[3](close>close[1]) = 3)
    [/scode]
    condizione sarà vera se le ultime 3 barre sono rialziste.

    #120866 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La riga 2 dello Stocastico verifica che nelle ultime 3 barre sia stato almeno una volta < 20.

    #120894 quote
    GianlucaGianluca
    Participant
    Master

    La riga 2 dello Stocastico verifica che nelle ultime 3 barre sia stato almeno una volta < 20.

    e quel >0 invece a cosa serve?

    #120895 quote
    GianlucaGianluca
    Participant
    Master

    Se scrivi

    condizione sarà vera se le ultime 3 barre sono rialziste.

    quindi per variare e magari scegliere 2 barre si deve fare

    condizione= (summation[2](close>close[1]) = 2)

    ?

     

     

    Grazie sempre per la disponibilità

    #120898 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Esatto, per desiderare che tutte le barre abbiano quella condizione devi mettere il numero finale uguale al numero di periodi di summation.

    #121294 quote
    GianlucaGianluca
    Participant
    Master

    Sempre grazie!

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

Chiarimento funzione Summation


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Gianluca @altares Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by GianlucaGianluca
6 years, 6 months ago.

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