Errore definisci la variabile Advance, higtPoint

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #244027 quote
    Ciccarelli Franco
    Participant
    Junior

    Nel caricare lo scrinner che includo mi da l’errore in oggetto.

    Come risolvo

    Grazie

    #244055 quote
    robertogozzi
    Moderator
    Master

    Quale errore?

    #244066 quote
    Iván González
    Moderator
    Master

    Immagino che ciò sia dovuto al fatto che la variabile "Advance" non è definita. Per consentirci di aiutarti in modo efficace, è meglio se condividi il codice con il pulsante "Aggiungi codice PRT" e copi il codice nella finestra che si apre.

    #244070 quote
    Ciccarelli Franco
    Participant
    Junior

    REM Compute the power of the bearish  trend

    // Find the lowest quote on the last 8 bars
    LowPoint = HIGHEST[8](LOW)

    // Compute the variation of price from this point to now
    nowAdvance = OPEN- highPoint

    // Compute the usual volatility of the stock (median of True Range)
    Norm = SUMMATION[3](TR) – HIGHEST[3](TR) – LOWEST[3](TR)

    REM Stock picking : only the bearish engulfing

    Filter = OPEN[1] > CLOSE[1] AND CLOSE > OPEN[1] AND OPEN < CLOSE[1]

    REM We keep the most serious advances
    SCREENER [ Filter ] (Advance / Norm AS “Trend Power”)

    Eccolo

    #244088 quote
    Iván González
    Moderator
    Master

    Se esegui lo screener, vedrai un messaggio che indica qual è il problema. devi definire le variabili Advance e highPoint. Immagino che la variabile Advance (riga 15) faccia in realtà riferimento alla variabile nowAdvance (riga 5). Quindi devi solo modificare la riga 15. D'altra parte devi definire HighPoint.

    #244091 quote
    Ciccarelli Franco
    Participant
    Junior

    Non ho ben capito.

    Grazie

    #244121 quote
    robertogozzi
    Moderator
    Master

    Quando si usa una variabile, occorre che prima sia stata definita, cioè gli sia stato assegnato un valore.

    Nel tuo caso vengono usate le due variabili indicate nella foto di Iván, che però non sono state definite in precedenza. Devi definirle, oppure, se hai copiato il codice, l’hai copiato in modo non completo.

    Iván González thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Errore definisci la variabile Advance, higtPoint


Supporto ProScreener

New Reply
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by robertogozzi
11 months, 2 weeks ago.

Topic Details
Forum: Supporto ProScreener
Language: Italian
Started: 02/19/2025
Status: Active
Attachments: 3 files
Logo Logo
Loading...