Minimo di candela che raggiunge valore massimo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228032 quote
    Cla
    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
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
1 year, 12 months ago.

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