Adaptive Ergodic Candlestick Oscillator Tradingview indicator to PRT

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #112920 quote
    baddavidabaddavida
    Participant
    New

    Hi all,

    I’m looking to use the Adaptive Ergodic Candlestick Oscillator from LazyBear in PRT, is a conversion possible please? Many thanks.

    https://www.tradingview.com/script/vWzBujcZ-Adaptive-Ergodic-Candlestick-Oscillator-LazyBear/

    //
    // @author LazyBear
    //
    // List of my public indicators: http://bit.ly/1LQaPK8
    // List of my app-store indicators: http://blog.tradingview.com/?p=970
    //
    study(“Adaptive Ergodic Candlestick Oscillator [LazyBear]”, shorttitle=”AECO_LB”)
    length=input(defval=14, title=”Stoch Scaling Length”), sl=input(defval=9, title=”Signal Length”)
    ep=input(defval=5, title=”Smooth Length”)
    vrb= abs( stoch(close, high, low, length)-50)/50
    mep=2/(ep+1), ce=cum(1)<=((length+ep)*2)
    came1=iff(ce,close-open,nz(came1[1])+mep*vrb*((close-open)-nz(came1[1])))
    came2=iff(ce,high-low,nz(came2[1])+mep*vrb*((high-low)-nz(came2[1])))
    came11=iff(ce,came1,nz(came11[1])+mep*vrb*(came1-nz(came11[1])))
    came22=iff(ce,came2,nz(came22[1])+mep*vrb*(came2-nz(came22[1])))
    eco=came11/came22*100.0
    se=ema(eco, sl)
    ebc=input(false, title=”Enable Bar colors”)
    bc_=eco>0 ? (eco>eco[1]?green:orange) : (eco<eco[1]?red:orange)
    bc_t=eco>0 ? (eco>se?lime:orange) : (eco<se?red:orange)
    bc=ebc? bc_t : na
    barcolor(bc)
    plot(0, title=”MidLine”)
    plot(eco, style=histogram, color=bc_,linewidth=2, title=”ECOHisto_1″)
    plot(eco, color=black, linewidth=2, title=”AECO”)

Viewing 1 post (of 1 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

Adaptive Ergodic Candlestick Oscillator Tradingview indicator to PRT


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
baddavida @baddavida Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/16/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...