2 Pole Oscillator by Big Beluga

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #243406 quote
    adeelq79adeelq79
    Participant
    Senior

    Good evening all,

    Please can you help to convert this indicator on Trading View – https://www.tradingview.com/script/2Ssn4yDZ-Two-Pole-Oscillator-BigBeluga/

     

    Many thanks.

    #243407 quote
    LucasBestLucasBest
    Participant
    Senior

    Good evening,
    Have you tried it ?
    If not, here what you can expect…

    Capture-decran-2025-02-03-205645.jpg Capture-decran-2025-02-03-205645.jpg
    #243410 quote
    adeelq79adeelq79
    Participant
    Senior

    Thanks, yes I have tried it and I think it works well identifying oversold or overbought areas.

    #243679 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Hi. here it is:

     

    //---------------------------------------------//
    //PRC_Two Pole oscillator
    //version = 0
    //10.02.2025
    //Iván González @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //---------------------------------------------//
    // inputs
    //---------------------------------------------//
    length=20 // filter length
    dispLevels= 1 // display levels?
    prd=25 // moving average periods
    //---------------------------------------------//
    // source calculation
    //---------------------------------------------//
    sma1=average[prd](close)
    smaN1=((close-sma1)-average[prd](close-sma1))/std[prd](close-sma1)
    area=average[100](high-low)
    //---------------------------------------------//
    // Oscillator
    //---------------------------------------------//
    source=smaN1
     
    alpha=2/(length+1)
     
    if barindex<max(prd*2,length) then
    smooth1=source
    smooth2=smooth1
    else
    smooth1=(1-alpha)*smooth1+alpha*source
    smooth2=(1-alpha)*smooth2+alpha*smooth1
    endif
    
    twoP=smooth2
    twoPP=twoP[4]
    //---------------------------------------------//
    // Colors
    //---------------------------------------------//
    if twoP>twoPP then
    r=85
    g=255
    b=218
    else
    r=140
    g=91
    b=255
    endif
    //---------------------------------------------//
    // Signals
    //---------------------------------------------//
    buySignal=twoP crosses over twoPP and twoP<0
    sellSignal=twoP crosses under twoPP and twoP>0
    
    if buysignal then
    drawpoint(barindex[1],twoP[1],2)coloured(r,g,b)
    drawpoint(barindex[1],twoP[1],5)coloured(r,g,b,100)
    elsif sellSignal then
    drawpoint(barindex[1],twoP[1],2)coloured(r,g,b)
    drawpoint(barindex[1],twoP[1],5)coloured(r,g,b,100)
    endif
    //---------------------------------------------//
    return twoP coloured(r,g,b)style(line,2), 1 coloured("grey",100), 0.5 coloured("grey",100), 0 coloured("black")style(dottedline3), -1 coloured("grey",100), -0.5 coloured("grey",100)
    Msport71 thanked this post
    #243710 quote
    adeelq79adeelq79
    Participant
    Senior

    Thanks Ivan. Thats great.

    Patrick K Templar thanked this post
    #264672 quote
    cris617cris617
    Participant
    New

    can this be installed on mt5?

    #264673 quote
    Iván GonzálezIván González
    Moderator
    Legend

    To install the indicator in MT5 you need to translate it into that language.

    #264698 quote
    cris617cris617
    Participant
    New

    zero idea on how to do that any recommendations??


    #264702 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    To convert and install it on MT5 you have to resort to a forum devoted to that trading platform, this one is only dedicated to ProRealTime.

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

2 Pole Oscillator by Big Beluga


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
adeelq79 @adeelq79 Participant
Summary

This topic contains 8 replies,
has 5 voices, and was last updated by robertogozzirobertogozzi
3 weeks, 3 days ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/03/2025
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...