ETH TrendLine

You can follow trendline to buy sell eth anytime anywhere !

Here is the open-source indicator code
if you want to trade on trendline. ,


//version=4
study(title="1 Hour-Hull-Strategy", shorttitle="modcrypto 1 Hour", overlay=true)

//Source
src = input(close, title="Source")

//Hull Lengths
length1 = 14 //input(14, minval=1, title="Hull-14")
length2 = 50 //input(50, minval=1, title="Hull-50")
length3 = 100//input(100, minval=1, title="Hull-100")

//StdDev Multiplier
mult = input(0.5, minval=0.001, maxval=50, title="StdDev Multiplier")

//Hullma14 - 50 - 100
hullma14 = wma(2*wma(src, length1/2)-wma(src, length1), round(sqrt(length1)))
hullma50 = wma(2*wma(src, length2/2)-wma(src, length2), round(sqrt(length2)))
hullma100 = wma(2*wma(src, length3/2)-wma(src, length3), round(sqrt(length3)))

//stddev
dev = mult * stdev(src, 50)
//hullma50 upper
upper = hullma50 + dev
//hullma50 lower
lower = hullma50 - dev

//HULLMA PLOTS
/////////////////////////////////////////////////////////////////
plot(hullma14, color=color.lime, linewidth=2, title="Hullma-14")
plot(hullma50, color=#b71c1c, linewidth=2, title="Hullma-50")
plot(hullma100, color=color.orange, linewidth=2, title="Hullma-100")
p1 = plot(upper, color=color.blue, title="Hullma50 Upper")
p2 = plot(lower, color=color.blue, title="Hullma50 Lower")
/////////////////////////////////////////////////////////////////

showLabels = input(true, title="Hide/Show Labels")

//Volume Based Colored Bars
/////////////////////////////////////////////////////////////////
length= input(21, "Length", minval=1)
avrg=sma(volume,length)

vold1 = volume > avrg*1.5 and close<open
vold2 = volume >= avrg*0.5 and volume<=avrg*1.5 and close<open
vold3 = volume < avrg *0.5 and close<open

volu1 = volume > avrg*1.5 and close>open
volu2 = volume >= avrg*0.5 and volume<=avrg*1.5 and close>open
volu3 = volume< avrg*0.5 and close>open

cold1=#800000
cold2=#FF0000
cold3=color.orange

colu1=#006400
colu2=color.lime
colu3=#7FFFD4

VolColor = vold1 ? cold1 : vold2 ? cold2 : vold3 ? cold3 : volu1 ? colu1 : volu2 ? colu2 : volu3 ? colu3 : na
barcolor(VolColor, title="Volume Based Bars")
/////////////////////////////////////////////////////////////////

//Hull Conditions and Labels
/////////////////////////////////////////////////////////////////
//Price > Hullma14 - Price < Hullma14
price_14_buy = cross(hullma14, src) and hullma14 <= src
price_14_sell = cross(hullma14, src) and src <= hullma14
plotshape(showLabels ? price_14_buy : na, style=shape.triangleup, location=location.belowbar, color=color.lime, title="Price > Hullma14", size=size.tiny)
plotshape(showLabels ? price_14_sell : na, style=shape.triangledown, location=location.abovebar, color=color.red, title="Hullma14 > Price", size=size.tiny)

//hullma14 > Lower - hullma14 > Upper
ready = cross(hullma14, lower) and lower <= hullma14
careful = cross(hullma14, upper) and hullma14 <= upper
plotshape(showLabels ? careful : na, style=shape.labeldown, location=location.abovebar, color=#ef9a9a, size=size.tiny, title="Careful Label", text="C", textcolor=color.white)
plotshape(showLabels ? ready : na, style=shape.labelup, location=location.belowbar, color=color.orange, size=size.tiny, title="Ready Label", text="R", textcolor=color.white)

buy1 = hullma50 >= hullma100 and crossover(hullma14, hullma100) //and (src > hullma14 or src[2] > hullma14)
buy2 = hullma100 >= hullma50 and crossover(hullma14, hullma50) //and (src > hullma14 or src[2] > hullma14)
plotshape(showLabels and buy1 ? hullma14 : na, style=shape.labelup, location=location.absolute, color=color.lime, size=size.tiny, title="Buy Label-1", text="B", textcolor=color.white)
plotshape(showLabels and buy2 ? hullma14 : na, style=shape.labelup, location=location.absolute, color=color.lime, size=size.tiny, title="Buy Label-2", text="B", textcolor=color.white)

//hullma14 > hullma50 - hullma100
add1 = hullma50 >= hullma100 and crossover(hullma14, hullma50) //and (src > hullma14 or src[2] > hullma14)
add2 = hullma100 >= hullma50 and crossover(hullma14, hullma100) //and (src > hullma14 or src[2] > hullma14)
plotshape(showLabels and add1 ? hullma14 : na, style=shape.labelup, location=location.absolute, color=color.green, size=size.tiny, title="Add Label-1", text="A", textcolor=color.white)
plotshape(showLabels and add2 ? hullma14 : na, style=shape.labelup, location=location.absolute, color=color.green, size=size.tiny, title="Add Label-2", text="A", textcolor=color.white)

//hullma14 < hullma50 - hullma100
dec1 = hullma50 >= hullma100 and crossunder(hullma14, hullma50)// and low < hullma14
dec2 = hullma100 >= hullma50 and crossunder(hullma14, hullma100)// and low < hullma14
plotshape(showLabels and dec1 ? hullma14 : na, style=shape.labeldown, location=location.absolute, color=color.red, size=size.tiny, title="Decrease Label-1", text="D", textcolor=color.white)
plotshape(showLabels and dec2 ? hullma14 : na, style=shape.labeldown, location=location.absolute, color=color.red, size=size.tiny, title="Decrease Label-2", text="D", textcolor=color.white)

//hullma14 < hullma50 - hullma100
sell1 = hullma50 >= hullma100 and crossunder(hullma14, hullma100)// and low < hullma14
sell2 = hullma100 >= hullma50 and crossunder(hullma14, hullma50)// and low < hullma14
plotshape(showLabels and sell1 ? hullma14 : na, style=shape.labeldown, location=location.absolute, color=color.black, size=size.tiny, title="Sell Label-1", text="S", textcolor=color.white)
plotshape(showLabels and sell2 ? hullma14 : na, style=shape.labeldown, location=location.absolute, color=color.black, size=size.tiny, title="Sell Label-2", text="S", textcolor=color.white)
/////////////////////////////////////////////////////////////////

//Pivot Settings
/////////////////////////////////////////////////////////////////
ShowPivots = input(true, title="Show Pivot Points")
ShowHHLL = input(true, title="Show HH/LL Labels")
left = input(5, minval=1, title="Left Pivot Length")
right = input(5, minval=1, title="Right Pivot Length")
ShowSRLevels = input(true, title="Show SR Levels")
maxLvlLen = input(0, minval=0, title="Maximum S/R Level Extension Length (0 = Max)")
ShowChannel = input(false, title="Show Fractal Chaos Channel")
ShowFB = input(false, title="Show Fractal Breakouts")

// Determine pivots
///////////////////////////////////////////////////////////////
pvtLenL = left
pvtLenR = right

// Get High and Low Pivot Points
///////////////////////////////////////////////////////////////
pvthi_ = pivothigh(high, pvtLenL, pvtLenR)
pvtlo_ = pivotlow(low, pvtLenL, pvtLenR)

// Force Pivot completion before plotting.
///////////////////////////////////////////////////////////////
pvthi = pvthi_
pvtlo = pvtlo_

//Higher Highs, Lower Highs, Higher Lows, Lower Lows
///////////////////////////////////////////////////////////////
valuewhen_1 = valuewhen(pvthi, high[pvtLenR], 1)
valuewhen_2 = valuewhen(pvthi, high[pvtLenR], 0)
higherhigh = na(pvthi) ? na : valuewhen_1 < valuewhen_2 ? pvthi : na
valuewhen_3 = valuewhen(pvthi, high[pvtLenR], 1)
valuewhen_4 = valuewhen(pvthi, high[pvtLenR], 0)
lowerhigh = na(pvthi) ? na : valuewhen_3 > valuewhen_4 ? pvthi : na
valuewhen_5 = valuewhen(pvtlo, low[pvtLenR], 1)
valuewhen_6 = valuewhen(pvtlo, low[pvtLenR ], 0)
higherlow = na(pvtlo) ? na : valuewhen_5 < valuewhen_6 ? pvtlo : na
valuewhen_7 = valuewhen(pvtlo, low[pvtLenR], 1)
valuewhen_8 = valuewhen(pvtlo, low[pvtLenR ], 0)
lowerlow = na(pvtlo) ? na : valuewhen_7 > valuewhen_8 ? pvtlo : na

// If selected Display the HH/LL above/below candle.
///////////////////////////////////////////////////////////////
plotshape(ShowHHLL ? higherhigh : na, title='Higher High', style=shape.triangledown, location=location.abovebar, color=color.new(color.red,25), text="HH", offset=-pvtLenR)
plotshape(ShowHHLL ? higherlow : na, title='Higher Low', style=shape.triangleup, location=location.belowbar, color=color.new(color.green,25), text="HL", offset=-pvtLenR)
plotshape(ShowHHLL ? lowerhigh : na, title='Lower High', style=shape.triangledown, location=location.abovebar, color=color.new(color.red,25), text="LH", offset=-pvtLenR)
plotshape(ShowHHLL ? lowerlow : na, title='Lower Low', style=shape.triangleup, location=location.belowbar, color=color.new(color.green,25), text="LL", offset=-pvtLenR)

plot(ShowPivots and not ShowHHLL ? pvthi : na, title='Pivot Top', style=plot.style_circles, join=false, color=color.green, offset=-pvtLenR, linewidth=3)
plot(ShowPivots and not ShowHHLL ? pvtlo : na, title='Pivot Bottom', style=plot.style_circles, join=false, color=color.red, offset=-pvtLenR, linewidth=3)

//Count How many candles for current Pivot Level, If new reset.
///////////////////////////////////////////////////////////////
counthi = 0
countlo = 0
counthi := na(pvthi) ? nz(counthi[1]) + 1 : 0
countlo := na(pvtlo) ? nz(countlo[1]) + 1 : 0

pvthis = 0.0
pvtlos = 0.0
pvthis := na(pvthi) ? pvthis[1] : high[pvtLenR]
pvtlos := na(pvtlo) ? pvtlos[1] : low[pvtLenR]

hipc = pvthis != pvthis[1] ? na : color.new(color.red, 50)
lopc = pvtlos != pvtlos[1] ? na : color.new(color.green, 50)

// Show Levels if Selected
///////////////////////////////////////////////////////////////
plot(ShowSRLevels and (maxLvlLen == 0 or counthi < maxLvlLen) ? pvthis : na, color=hipc, linewidth=2, offset=-pvtLenR, title="High Levels", style=plot.style_line) // not ShowChannel and
plot(ShowSRLevels and (maxLvlLen == 0 or countlo < maxLvlLen) ? pvtlos : na, color=lopc, linewidth=2, offset=-pvtLenR, title="Low Levels", style=plot.style_line) // not ShowChannel and

// Show Levels as a Fractal Chaos Channel
///////////////////////////////////////////////////////////////
plot(ShowSRLevels and ShowChannel ? pvthis : na, color=color.green, linewidth=1, style=plot.style_stepline, offset=0, title="Fractal Channel High Levels", trackprice=false)
plot(ShowSRLevels and ShowChannel ? pvtlos : na, color=color.red, linewidth=1, style=plot.style_stepline, offset=0, title="Fraktal Channel Low Levels", trackprice=false)

//Add Optional Fractal Break Alerts
///////////////////////////////////////////////////////////////
Pivotbuy = false
Pivotsell = false
Pivotbuy := close>pvthis and open<pvthis //open<=pvthis
Pivotsell := close<pvtlos and open>pvtlos //open>=pvtlos

// Alerts
///////////////////////////////////////////////////////////////
plotshape(ShowFB and Pivotbuy?1:na, title="Pivot Buy", color=color.green, style=shape.triangleup, location =location.belowbar, size=size.small)
plotshape(ShowFB and Pivotsell?-1:na, title="Pivot Sell", color=color.red, style=shape.triangledown, location =location.abovebar, size=size.small)

//Fractal Alarms
///////////////////////////////////////////////////////////////
alertcondition(Pivotbuy or Pivotsell, title="Fractal Breakout", message="Fractal Breakout")
alertcondition(Pivotbuy,title="Fractal Brekout BUY", message="Fractal Brekout BUY")
alertcondition(Pivotsell,title="Fractal Brekout SELL", message="Fractal Brekout SELL")
////////////////////////////////////////

//Other Alarms
alertcondition(price_14_buy, "Price > Hullma14", "Price > Hullma14")
alertcondition(price_14_sell, "Hullma14 > Price", "Hullma14 > Price")
alertcondition(ready, "Be Ready", "Be Ready")
alertcondition(careful, "Be Careful", "Be Careful")
alertcondition(buy1, "Buy-1", "Buy-1")
alertcondition(buy2, "Buy-2", "Buy-2")
alertcondition(add1, "Add-1", "Add-1")
alertcondition(add2, "Add-2", "Add-2")
alertcondition(dec1, "Decrease-1", "Decrease-1")
alertcondition(dec2, "Decrease-2", "Decrease-2")
alertcondition(sell1, "Sell-1", "Sell-1")
alertcondition(sell2, "Sell-2", "Sell-2")


enjoy!
Ethereum (Cryptocurrency)Technical IndicatorsTrend AnalysisTrend Lines

Disclaimer