Errore indicatore con donchianchannelup

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #137839 quote
    sagittario75
    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
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
5 years, 6 months ago.

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