Errore indicatore con donchianchannelup

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #137839 quote
    sagittario75sagittario75
    Participant
    Junior
    indicator1 = donchianchannelup [60]
    c1 = (Close > indicator1)
    
    if c1 then
    drawarrowup(barindex,Low - 1.3 * std[14]) coloured(145,210,80 )
    endif
    
    return

    ciao a tutti, ho creato questo semplice indicatore da applicare ai grafici.

    se lo applico al prezzo e lo convalido va bene. Quando scelgo un altro titolo mi da un messaggio di errore che potete vedere nell’immagine allegata. Qualcuno mi può aiutare? grazie in anticipo

    Annotazione-2020-07-01-084417.jpg Annotazione-2020-07-01-084417.jpg
    #145195 quote
    NicolasNicolas
    Keymaster
    Legend

    Grazie per averci informato di questo problema che posso replicare. Proviene dall'istruzione DONCHIANCHANNELUP, avviserò PRT di risolvere il problema. Puoi sostituirlo con questo codice e dovrebbe funzionare correttamente:

    indicator1 = highest[60](high)[1]
    c1 = (Close > indicator1)
    
    if c1 then
     drawarrowup(barindex,Low - 1.3 * std[14]) coloured(145,210,80 )
    endif
    
    return

    Tuttavia, tieni presente che il Close (prezzo effettivo) non può mai essere superiore al massimo più alto! quindi dobbiamo controllare se è più alto del precedente massimo solo [1].

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

Errore indicatore con donchianchannelup


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 07/01/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...