problema con il comando highest[n](DHigh(0))

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165586 quote
    cito.almacito.alma
    Participant
    Junior

    Buongiorno ho un problema con il seguente codice:

    return hh=highest[4](DHigh(0))
    return hh

    Avrei bisogno di individuare il massimo degli ultimi 4 giorni.

    Il codice su postato funziona fintanto che sono su barre giornaliere, ma

    appena scendo di time frame ad esempio 4 ore, non funziona più, come indicato nella foto in allegato.

    Non calcola il massimo degli ultimi 4 giorni

    Qualcuno può aiutarmi a capire?

    Im1.png Im1.png
    #165591 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Certo, HIGHEST[] lavora sul time frame che stai usando, sul Daily sono 4 barre giornaliere, sul minuto sono 4 barre da 4 minuti.

    Devi usare il supporto MTF:

    Timeframe(Daily,UpDateOnClose)
    hh=highest[4](DHigh(0))    //invece di Dhigh(0) puoi anche usare High
    Timeframe(default)
    return hh
    #165594 quote
    cito.almacito.alma
    Participant
    Junior

    Grazie mille.

Viewing 3 posts - 1 through 3 (of 3 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

problema con il comando highest[n](DHigh(0))


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
cito.alma @cito-alma Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by cito.almacito.alma
5 years, 5 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/29/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...