Mio Price oscillator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #236155 quote
    andrea trevisanandrea trevisan
    Participant
    Average

    Vorrei creare un Price oscillator personalizzato in cui troviamo la media mobile data dalla differenza di due medie mobili e fin qui tutto facile

    Però vorrei inserire questa media mobile in una scala % come RSI da 0 a 100 questo mi permette di capire la forza impulsiva dell’onda in atto.

    Quindi ipotizziamo classica media mobile 35  lenta e 5 veloce

    MMlong = Average[35](close)
    MMshort = Average[5](close)

    Myprice = = MMshort – MMlong

    Devo inserire il risultato in ona scala da 0 a 100 e non ho idea come fare

    se potete aiutarmi

    Grazie.

    #236157 quote
    JSJS
    Participant
    Master

    Ciao,

    Prova questo…

    SlowPeriod=35
    FastPeriod=5
    LookBackPeriod=SlowPeriod*FastPeriod
    
    AvgSlow=Average[SlowPeriod](close)
    AvgFast=Average[FastPeriod](close)
    
    Diff=Abs(AvgSlow-AvgFast)
    
    MinDiff=Lowest[LookBackPeriod](Diff)
    MaxDiff=Highest[LookBackPeriod](Diff)
    NormDiff=((Diff-MinDiff)/(MaxDiff-MinDiff))*100
    
    
    Return NormDiff
    robertogozzi and Iván González thanked this post
    Scherm­afbeelding-2024-08-06-om-12.22.05.png Scherm­afbeelding-2024-08-06-om-12.22.05.png
    #236331 quote
    andrea trevisanandrea trevisan
    Participant
    Average
    Grazie mille
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

Mio Price oscillator


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by andrea trevisanandrea trevisan
2 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 08/06/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...