WaveTrend (Lazybear) to cAlgo

Created at 09 Mar 2023, 20:45
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JA

jacopotrono

Joined 17.06.2022

WaveTrend (Lazybear) to cAlgo
09 Mar 2023, 20:45


Hi guys, how would you code this pine code into calgo?

It's from the legend LazyBear

//
// @author LazyBear
//
// If you use this code in its original/modified form, do drop me a note. 
//
study(title="WaveTrend [LazyBear]", shorttitle="WT_LB")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
 
ap = hlc3 
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)
 
wt1 = tci
wt2 = sma(wt1,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red, style=3)
plot(osLevel2, color=green, style=3)

plot(wt1, color=green)
plot(wt2, color=red, style=3)
plot(wt1-wt2, color=blue, style=area, transp=80)

 


@jacopotrono
Replies

firemyst
12 Mar 2023, 12:24

It's not very complex.

Doing a Google search, there's a similar one:

 

Perhaps you could contact that author to see if they'd be willing to do it for you.

If not, you should contact @PanagiotisChar

It would also help if you updated your post with the link to the original indicator on TradingView (assuming that's where you got it from since LazyBear is very active there)


@firemyst

jacopotrono
12 Mar 2023, 15:01 ( Updated at: 27 Mar 2024, 23:42 )

RE:

firemyst said:

It's not very complex.

Doing a Google search, there's a similar one:

 

 

Perhaps you could contact that author to see if they'd be willing to do it for you.

If not, you should contact @PanagiotisChar

It would also help if you updated your post with the link to the original indicator on TradingView (assuming that's where you got it from since LazyBear is very active there)

Thanks for your reply firemyst,

i tried to write to the authos but He seems he is not so active recently


@jacopotrono