N° minimo di 1 condizione avvenute in un periodo di tempo.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47900 quote
    maximus78
    Participant
    Senior

    Buongiorno a tutti,

    mi servirebbe un comando che conti quante volte una condizione si è verificata in un dato periodo di tempo, per esempio:

    Voglio che segnali che il massimo a 20 periodi nelle ultime 50 barre sia stato raggiunto almeno 10 volte?

    utilizzando il seguente comando (dal donchian channel):

    High>highest[50](high)[1]……

    ma nelle ultime 50 barre, e per 10 volte almeno.

    Grazie mille

    Massimo

    #47902 quote
    robertogozzi
    Moderator
    Master

    if summation[50](high >= highest[20](high)) >= 10 then…

    #47903 quote
    robertogozzi
    Moderator
    Master

    Scusami per il formato solo testo, ma dall’iPhone non riesco ad inserire il codice in formato PRT.

    Roberto

    #47907 quote
    maximus78
    Participant
    Senior

    Ciao Roberto, grazie mille!

    don’t worry, l’ho scritto come indicatore e funziona.

    Buona domenica,

    Massimo

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

N° minimo di 1 condizione avvenute in un periodo di tempo.


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
maximus78 @maximus78 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by maximus78
8 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 09/30/2017
Status: Active
Attachments: No files
Logo Logo
Loading...