Ezs Scalping by Hamidbox
Ezs Scalping by Hamidbox
0 at
https://mozilla.org/MPL/2.0/
// © HamidBox
// For Support:
// USDT (Trc20): TVgoTWEmB9j2AEAVp6PHgrwKwZTkEFCz1p
//@version=4
// ZLSMA
lengthz = input(title="Length", type=input.integer, defval=50, group = "◈◈◈◈◈◈ | Zero Lag
SMA | ◈◈◈◈◈◈")
offset = input(title="Offset", type=input.integer, defval=0, group = "◈◈◈◈◈◈ | Zero Lag SMA
| ◈◈◈◈◈◈")
width = input(title="Width ", type=input.integer, defval=2, minval=1, group =
"◈◈◈◈◈◈ | Zero Lag SMA | ◈◈◈◈◈◈", inline="colr")
zlmacol = input(color.new(#fcff40, 0), "", type=input.color, group = "◈◈◈◈◈◈ | Zero Lag
SMA | ◈◈◈◈◈◈", inline="colr")
src = input(close, title="Source", group = "◈◈◈◈◈◈ | Zero Lag SMA | ◈◈◈◈◈◈")
lsma = linreg(src, lengthz, offset)
lsma2 = linreg(lsma, lengthz, offset)
eq = lsma-lsma2
zlsma = lsma+eq
//==========================================//
// Super Trend
length = input(title="ATR Period", type=input.integer, defval=1, group = "◈◈◈◈◈◈ |
SuperTrend | ◈◈◈◈◈◈")
mult = input(title="ATR Multiplier", type=input.float, step=0.1, defval=2.0, group =
"◈◈◈◈◈◈ | SuperTrend | ◈◈◈◈◈◈")
showLabels = input(title="Show Long/Short Labels ? ", type=input.bool, defval=true,
group = "◈◈◈◈◈◈ | SuperTrend | ◈◈◈◈◈◈")
highlightState = input(title="Highlight State ?", type=input.bool, defval=false, group =
"◈◈◈◈◈◈ | SuperTrend | ◈◈◈◈◈◈", inline="inl")
useClose = input(title="Use Close Price for Extremums ?", type=input.bool, defval=false,
group = "◈◈◈◈◈◈ | SuperTrend | ◈◈◈◈◈◈")
// SIMPLE MA SECTION
smaType(source , length, type) =>
type == "SMA" ? sma(source , length) :
type == "EMA" ? ema(source , length) :
na
// // EXPONENTIAL MA SECTION
// elen1 = input(89, minval=0, title="EMA", group="◈◈◈◈◈◈ | MOVING AVERAGE section |
◈◈◈◈◈◈", inline="off")
// ema_src = input(close, title="Source", inline="off", group="◈◈◈◈◈◈ | MOVING AVERAGE
section | ◈◈◈◈◈◈")
// emacolr = input(color.new(#ffffff, 0), "", type=input.color, group="◈◈◈◈◈◈ | MOVING
AVERAGE section | ◈◈◈◈◈◈", inline="off")
// elen1bol = input(title="OFF", type=input.bool, defval=false, group="◈◈◈◈◈◈ | MOVING
AVERAGE section | ◈◈◈◈◈◈", inline="off")
// // SMA Value
// out1 = sma(sma_src, len1)
// // EMA Value
// eout1 = ema(ema_src, elen1)
///////////////////////////////////////////////////////////////////////////////////////////////
maType(source , length, type) =>
type == "SMA" ? sma(source , length) :
type == "EMA" ? ema(source , length) :
na