Blue Signal Premium by Leo
Blue Signal Premium by Leo
// Parámetros de entrada
keyValue = input(3, title="Key Value. 'This changes the sensitivity'")
atrPeriod = input(14, title="Value Signals Period")
useHeikinAshi = input(true, title="Activate Signals 90%")
plotSignals = input(true, title="Show Buy/Sell Signals")
// INPUT
src = input(close, title='Source')
modeSwitch = input.string('Hma', title='Hull Variation', options=['Hma', 'Thma',
'Ehma'])
length = input(55, title='Length (180-200 for floating S/R, 55 for swing entry)')
lengthMult = input(1.0, title='Length multiplier (Used to view higher timeframes
with straight band)')
useHtf = input(true, title='Show Hull MA from X timeframe? (Good for scalping)')
htf = input.timeframe('1D', title='Higher Timeframe')
switchColor = input(true, 'Color Hull according to trend?')
candleCol = input(false, title='Color candles based on Hull\'s Trend?')
visualSwitch = input(true, title='Show as a Band?')
thicknesSwitch = input(1, title='Line Thickness')
transpSwitch = input.int(40, title='Band Transparency', step=5)
// FUNCIONES
HMA(_src, _length) =>
ta.wma(2 * ta.wma(_src, _length / 2) - ta.wma(_src, _length),
math.round(math.sqrt(_length)))
// Plot
Fi1 = plot(MHULL, title='MHULL', color=hullColor, linewidth=thicknesSwitch,
transp=50)
Fi2 = plot(visualSwitch ? SHULL : na, title='SHULL', color=hullColor,
linewidth=thicknesSwitch, transp=50)
fill(Fi1, Fi2, title='Band Filler', color=hullColor, transp=transpSwitch)
// Bar color
barcolor(color=candleCol ? switchColor ? hullColor : na : na)
if (buyCondition)
tp1Level := close * (1 + tp1Distance)
tp2Level := close * (1 + tp2Distance)
tp3Level := close * (1 + tp3Distance)
if (sellCondition)
tp1Level := close * (1 - tp1Distance)
tp2Level := close * (1 - tp2Distance)
tp3Level := close * (1 - tp3Distance)