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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47900 quote
    maximus78maximus78
    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #47903 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

    Roberto

    #47907 quote
    maximus78maximus78
    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.
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

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 maximus78maximus78
8 years, 11 months ago.

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