Indikator wird nicht ausgeführt (Wave Trend Oscillator)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #157688 quote
    williwilli
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    Stellen Sie sicher, dass Zeile 7 mindestens 1 ist:

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

    Vielen Dank!!

Viewing 3 posts - 1 through 3 (of 3 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

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 williwilli
5 years, 8 months ago.

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