Minimo di candela che raggiunge valore massimo

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

    Salve,

    Vorrei sapere come richiamare in un codice il valore minimo della stessa candela che, tra le 20 candele precedenti, aveva raggiunto il massimo. Provo a spiegarmi meglio.

    Con la condizione  – Higest (20) high – calcolo il massimo dei massimi delle 20 barre precedenti.

    Come faccio a trovare il minimo della STESSA candela che ha raggiunto il valore massimo?

    Ringrazio in anticipo chi vorrà supportarmi.

    #228035 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Devi cercare su quale barra si è verificato il MASSIMO, con l’istruzione BARSSINCE():

    barra = max(1,BarsSince(high = Massimo))  //l'uso di MAX è per evitare un errore sulle prime barre

    dopodiché prendi il minimo di quella barra:

    Minimo = low[barra]
Viewing 2 posts - 1 through 2 (of 2 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

Minimo di candela che raggiunge valore massimo


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Cla @cla Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
2 years, 8 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 02/13/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...