SweetSweetLucia: OnceADay
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © privatepizza111
// a psychological sentiment indicator
// Digital Signal Processing 
// For Crypto: Change the Precision in the gui menu
//@version=5

indicator("SweetSweetLucia: 3.0", overlay = false, format=format.price, precision=2)

//open transform
float open_transform_exponential_stream_one = ta.ema(ta.rma(ta.wma(open[1], length= 5), length= 2), length = 7)
float open_transform_exponential_stream_three = ta.ema(ta.rma(ta.wma(open[1], length= 5), length= 2), length = 7)
float open_transform_exponential_stream_four = ta.ema(ta.rma(ta.wma(open[1], length= 5), length= 2), length = 7)

//close transform
float close_transform_exponential_stream_one = ta.ema(ta.rma(ta.wma(close[1], length = 5), length = 2), length = 7) 
float close_transform_exponential_stream_two = ta.ema(ta.rma(ta.wma(close[1], length = 5), length = 2), length = 7) 
float close_transform_exponential_stream_three = ta.ema(ta.rma(ta.wma(close[1], length = 5), length = 2), length = 7) 
float close_transform_exponential_stream_four = ta.ema(ta.rma(ta.wma(close[1], length = 5), length = 2), length = 7) 
float close_transform_exponential_stream_five = ta.ema(ta.rma(ta.wma(close[1], length = 5), length = 2), length = 7) 

//typical price transform
float typical_price_transform_exponential_stream_two = ta.ema(ta.rma(ta.wma(hlc3[4], length = 7), length = 2), length = 9) 
float typical_price_transform_exponential_stream_three = ta.ema(ta.rma(ta.wma(hlc3[4], length = 7), length = 2), length = 9) 
float typical_price_transform_exponential_stream_four = ta.ema(ta.rma(ta.wma(hlc3[4], length = 7), length = 2), length = 9) 
float typical_price_transform_exponential_stream_five = ta.ema(ta.rma(ta.wma(hlc3[4], length = 7), length = 2), length = 9) 
float typical_price_transform_exponential_stream_six = ta.ema(ta.rma(ta.wma(hlc3[4], length = 7), length = 2), length = 9) 

//instananeous trendline is smooth only
float wave_instant_stream_one = ta.sma(ta.rma(ta.wma(hl2[1], length = 5), length = 2), length = 21)
float wave_instant_stream_two = ta.sma(ta.rma(ta.wma(hl2[1], length = 5), length = 2), length = 21)
float wave_instant_stream_three = ta.sma(ta.rma(ta.wma(hl2[1], length = 5), length = 2), length = 21)

//plot the indicator to a new window, with titles  
plot(series=open_transform_exponential_stream_one, color = color.green, title="Open Transform")
plot(series=typical_price_transform_exponential_stream_two, color = color.red, title="Typical Price Transform")
plotshape(series = ta.crossover(open_transform_exponential_stream_three, typical_price_transform_exponential_stream_three), title = "Bullish Opening", color= color.green, style=shape.cross, location = location.abovebar)
plotshape(series = ta.crossunder(open_transform_exponential_stream_four, typical_price_transform_exponential_stream_four), title = "Bearish Opening", color = color.red, style = shape.cross, location = location.abovebar)
plotshape(series = ta.crossover(close_transform_exponential_stream_one, typical_price_transform_exponential_stream_five), title = "Bullish Pivot", color = color.olive, style = shape.square, location = location.belowbar)
plotshape(series = ta.crossunder(close_transform_exponential_stream_two, typical_price_transform_exponential_stream_six), title = "Bearish Pivot", color = color.maroon, style = shape.square, location = location.belowbar)
plot(series = wave_instant_stream_one, title= "Instant Trend Line", color = color.orange)
plotshape(series = ta.crossover(close_transform_exponential_stream_three, wave_instant_stream_two), title = "Close Transform Crossing Trend Upward", color = color.lime, style = shape.circle, location = location.bottom)
plotshape(series = ta.crossunder(close_transform_exponential_stream_four, wave_instant_stream_three), title = " Close Transform Crossing Trend Downward", color = color.fuchsia, style = shape.circle, location = location.top)
plot(close, title = "Line Graph", color = color.aqua)
plot(series = close_transform_exponential_stream_five, color = color.purple, title =  "Close Transform")
