Hi, I just wanted to share the Macro for the logarithmic trendchannel. The one I believe to be correct, because it's based on the law of diminishing returns and decreasing bitcoin volatility. I didn't write it myself, credits to Quantadelic aka Pinescript Pleb aka Stealer of Alpha & Destroyer of Discords who wrote the script.
//@version=4 // // An indicator by @quantadelic aka Pinescript Pleb aka Stealer of Alpha & Destroyer of Discords // // "I drink your milkshake! I drink it up." // // No rights reserved, copy, paste, do what you want. //
// CHECK IF LAST BAR & "Show Curve Projections" IS CHECKED, THEN DRAW CURVE EXTENZES if barstate.islast and ShowExtensions == "Y" for i = 0 to ForLoopMax-1 by ForLoopStep line.new(time + TimeDelta * i, ExtenZe(i, HighSlope, HighIntercept), time + TimeDelta * (i + ForLoopStep), ExtenZe(i + ForLoopStep, HighSlope, HighIntercept), xloc=xloc.bar_time, color=ColorScheme) line.new(time + TimeDelta * i, ExtenZe(i, LowSlope, LowIntercept), time + TimeDelta * (i + ForLoopStep), ExtenZe(i + ForLoopStep, LowSlope, LowIntercept), xloc=xloc.bar_time, color=ColorScheme) line.new(time + TimeDelta * i, ExtenZe(i, MidSlope, MidIntercept), time + TimeDelta * (i + ForLoopStep), ExtenZe(i + ForLoopStep, MidSlope, MidIntercept), xloc=xloc.bar_time, color=ColorScheme)
When it was copied the tabs didn't work. Save the Code, and where it does not compile, have a look at the error and tab out the code that is causing the error.
LaminarM
⋅
Can you publish this script please. I copied it and I'm getting errors so it doesn't work on my chart. Thanks for sharing!
Amir_Khan_15000
⋅
@LaminarM, It doesn't work for me either, please publish it
SebastianofMoon
⋅
@Amir_Khan_15000, Hello guys, ok that's weird, I will then publish it.