utilizzo variabile ARRAY

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

    Buongiorno,

    vorrei disegnare un linea sul grafico DAILY che verifica una certa condizione sul timeframe WEEKLY, ad esempio:

    se CLOSE weekly>HIGH settimana precedente, disegna retta parallela all’HIGH weekly sul grafico daily

    Riuscirei a farlo aggiornando ogni volta la barra di inizio della linea e cioè, ad esempio:

    ******************************************************************

    timeframe(weekly,updateonclose)

    IF CLOSE>HIGH[1] THEN

    WHIGH=HIGH[1]

    ENDIF

    timeframe(daily)

    BARRAINI=BARINDEX-5

    DRAWSEGMENT(BARRAINI,WHIGH,BARINDEX,WHIGH)

    return

    ****************************************************

    Non riesco invece a tracciare le linee sempre dalla barra originaria corretta, cioè senza ricalcolare BARRAINI man mano che si verifica la condizione via via nel tempo. Per farlo credo dovrei usare un ARRAY come variabile BARRAINI ma non ho mai usato gli array. Qualcuno mi può dare la cosidetta imbeccata?

    Grazie infinite

    #228587 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ho rilevato anch’io questo problema. Per il momento sostituisci timeframe(weekly,updateonclose) con:

    timeframe(5 days,updateonclose)

    e funzionerà.

    Ma cercherò d’indagare sul motivo e ti farò sapere appena possibile.

    zero thanked this post
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

utilizzo variabile ARRAY


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
zero @zero Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/22/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...