WPO – Wave Period Oscillator

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #109126 quote
    pratupratu
    Participant
    Senior

    Buongiorno a tutti, avrei bisogno di un aiuto. Con la nuova piattaforma 11.1 l’indicatore WPO – Wave Period Oscillator (presente nella libreria del sito) non si visualizza corretamnte.

    Avete qualche suggerimento?

    Grazie.

    #109638 quote
    pratupratu
    Participant
    Senior

    Roberto riesci ad aiutarmi?

    Grazie.

    #109660 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non ho ancora utilizzato, né conosco i dettagli delle funzionalità della nuova versione, per cui non so darti alcun aiuto. La utilizzerò quando IG la supporterà.

    Mi spiace.

    #109679 quote
    NicolasNicolas
    Keymaster
    Legend

    Penso che il problema sia dovuto a un piccolo errore nel codice pubblicato nella libreria, ecco il codice risolto:

    DEFPARAM CalculateOnLastBars = 1000
    //EmaPeriod = 14                                          //Number of Periods of the EMA
    EmaPeriods = max(2,min(999,EmaPeriods))                   //range 2-999
    //
    EmaPeriods = 14
    
    Cy         = close[1]
    A          = high
    sinwt      = close / A
    sinsq      = sinwt * sinwt
    cossq      = 1 - sinsq
    coswt      = sqrt(cossq)
    Angle      = atan(sinwt / coswt)
    Rad        = 3.14 * Angle / 180
    Tt         = 6.28 / Rad
    if close>Cy then 
    Ti=Tt 
    else
    Ti=-Tt
    endif
    //Ti         = ((close > Cy) * Tt) OR (((close <= Cy) * Tt) * -1)
    WPO        = average[EmaPeriods,1](Ti)
    
    
    RETURN WPO AS "Wpo",0 AS "0",2.7 AS "ExtremeOB",2.0 AS "Ob",-2.0 AS "Os",-2.7 AS "ExtremeOS"

    L'oscillatore ora funziona come previsto (uno nella parte inferiore della tabella).

    wave-period-oscillator-indicator.png wave-period-oscillator-indicator.png
    #109708 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Questo problema era già noto ed indicato nei post della libreria.

    Il problema era stato risolto nella versione 10.3, ma evidentemente nella v11 non l’hanno fatto.

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

WPO – Wave Period Oscillator


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
pratu @pratu Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
6 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/02/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...