Indikator wird nicht ausgeführt (Wave Trend Oscillator)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #157688 quote
    willi
    Participant
    Master

    Guten Tag,

    ich bin gerade dabei, einen Indikator von https://www.tradingview.com/script/2KE8wTuF-Indicator-WaveTrend-Oscillator-WT/  nach PRT zu übersetzen. Bei der Ausführung bekomme ich die Fehlermeldung, dass ein positiver, ganzzahliger Parameter benötigt wird.

    Was ist nicht richtig?

    Hier das Programm:

    n1 = 10
    n2 = 21
    
    ap = TotalPrice
    esa = ExponentialAverage[n1](ap)
    d = ExponentialAverage[ap](abs(ap - esa))
    ci = ROUND((ap - esa) / (0.015 * d))
    //ci = FLOOR((ap - esa) / (0.015 * d))
    
    tci = ExponentialAverage[n2](ci)
     
    wt1 = tci
    wt2 = average[wt1](4)
    
    return wt1, wt2

    Danke willi

    #157689 quote
    robertogozzi
    Moderator
    Master

    Stellen Sie sicher, dass Zeile 7 mindestens 1 ist:

    ci = max(1,ROUND((ap - esa) / (0.015 * d)))
    willi thanked this post
    #157693 quote
    willi
    Participant
    Master

    Vielen Dank!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Indikator wird nicht ausgeführt (Wave Trend Oscillator)


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
willi @willi Participant
Summary

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

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 01/13/2021
Status: Active
Attachments: No files
Logo Logo
Loading...