yeah I am correcting study as 1 hour and looking at 1 hour chart also. Maybe my indicator doesnt match with yours.
@AKYN -
Are you using this scan from YT:
input LookbackPeriod = 3;
input TimeFrame2 = "1 hour";
input TimeFrame3 = "1 hour";
input HideSwings = no;
input HideCurrentTF = no;
input HideTimeFrame2 = no;
input HideTimeFrame3 = no;
input length = 5;
input length21 = 40;
input length1 = 5;
def price = close;
input lengthmo = 8;
input lengthsqu = 4;#hint length: Length for average calculation
def price23 = (open + close)/2;
input SDmult = 2.5;
input ATRmult = 1.0;
def K = (Highest(high, lengthmo) + Lowest(low, lengthmo)) /
2 + ExpAverage(close, lengthmo);
def Momo = Inertia(price23 - K / 2, lengthmo);
def SD = StDev(close, lengthsqu);
def Avg = ExpAverage(close, lengthsqu);
def ATR = Average(TrueRange(high, close, low), lengthsqu);
def SDup = Avg + (SDmult * SD);
def ATRup = Avg + (ATRmult * ATR);
def Squeeze = SDup < ATRup;
def squeezechange = (squeeze[1]) and (squeeze is false);
def upper = (momo > 0) and (momo > momo[1]);
def lower = (momo < 0) and (momo < momo[1]);
def swtichtup = (upper) and (squeezechange or squeezechange[1]);
def swtichtdown = (lower) and (squeezechange or squeezechange[1]);
def fullthrustup = (momo[1] < 0) and (momo > 0);
def fullthrustdown = (momo[1] > 0) and (momo < 0);
def recentup = swtichtup[1] or swtichtup or fullthrustup or fullthrustup[1];
def recentdown = swtichtdown[1] or swtichtdown or fullthrustdown or fullthrustdown[1];
def SwingsLagBar = 1;
def BuyEntry = 3;
def SellEntry = 3;
def QB = Highest(high, BuyEntry);
def QS = Lowest(low, SellEntry);
def trueqb = QB[1];
def trueqs = QS[1];
def midline = (trueqb + trueqs)/2;
def length78 = 1;
def displace = 0;
def price2 = close;
def SMA = Average(price[-displace], length78);
def SMA2 = Average(price2[-displace], length78);
#--------------------------------------------------------------
def _highInPeriod1 = Highest(high, LookbackPeriod);
def _lowInPeriod1 = Lowest(low, LookbackPeriod);
#--------------------------------------------------------------
def marketLow1 = if _lowInPeriod1 < _lowInPeriod1[-LookbackPeriod] then _lowInPeriod1 else _lowInPeriod1[-LookbackPeriod];
def _markedLow1 = low == marketLow1;
rec _lastMarkedLow1 = CompoundValue(1, if IsNaN(_markedLow1) then _lastMarkedLow1[1] else if _markedLow1 then low else _lastMarkedLow1[1], low);
#--------------------------------------------------------------
def marketHigh1 = if _highInPeriod1 > _highInPeriod1[-LookbackPeriod] then _highInPeriod1 else _highInPeriod1[-LookbackPeriod];
def _markedHigh1 = high == marketHigh1;
rec _lastMarkedHigh1 = CompoundValue(1, if IsNaN(_markedHigh1) then _lastMarkedHigh1[1] else if _markedHigh1 then high else _lastMarkedHigh1[1], high);
#--------------------------------------------------------------
def Resistance1 = _lastMarkedHigh1;
def Support1 = _lastMarkedLow1;
#--------------------------------------------------------------
def LowSwingForw = Lowest(low, SwingsLagBar)[-SwingsLagBar];
def LowSwingBack = Lowest(low, LookbackPeriod)[1];
def SwingLow = if low < LowSwingForw and low <= LowSwingBack then 1 else 0;
def LowSwing = if SwingLow then low else Double.NaN;
#--------------------------------------------------------------
def HighSwingForw = Highest(high, SwingsLagBar)[-SwingsLagBar];
def HighSwingBack = Highest(high, LookbackPeriod)[1];
def SwingHigh = if high > HighSwingForw and high >= HighSwingBack then 1 else 0;
def HighSwing = if SwingHigh then high else Double.NaN;
#--------------------------------------------------------------
def _highInPeriod2 = Highest(high(period = TimeFrame2), LookbackPeriod);
def _lowInPeriod2 = Lowest(low(period = TimeFrame2), LookbackPeriod);
#--------------------------------------------------------------
def marketLow2 = if _lowInPeriod2 < _lowInPeriod2[-LookbackPeriod] then _lowInPeriod2 else _lowInPeriod2[-LookbackPeriod];
def _markedLow2 = low(period = TimeFrame2) == marketLow2;
rec _lastMarkedLow2 = CompoundValue(1, if IsNaN(_markedLow2) then _lastMarkedLow2[1] else if _markedLow2 then low(period = TimeFrame2) else _lastMarkedLow2[1], low(period = TimeFrame2));
#--------------------------------------------------------------
def marketHigh2 = if _highInPeriod2 > _highInPeriod2[-LookbackPeriod] then _highInPeriod2 else _highInPeriod2[-LookbackPeriod];
def _markedHigh2 = high(period = TimeFrame2) == marketHigh2;
rec _lastMarkedHigh2 = CompoundValue(1, if IsNaN(_markedHigh2) then _lastMarkedHigh2[1] else if _markedHigh2 then high(period = TimeFrame2) else _lastMarkedHigh2[1], high(period = TimeFrame2));
#--------------------------------------------------------------
def Resistance2 = _lastMarkedHigh2;
def Support2 = _lastMarkedLow2;
#--------------------------------------------------------------
def _highInPeriod3 = Highest(high(period = TimeFrame3), LookbackPeriod);
def _lowInPeriod3 = Lowest(low(period = TimeFrame3), LookbackPeriod);
#--------------------------------------------------------------
def marketLow3 = if _lowInPeriod3 < _lowInPeriod3[-LookbackPeriod] then _lowInPeriod3 else _lowInPeriod3[-LookbackPeriod];
def _markedLow3 = low(period = TimeFrame3) == marketLow3;
rec _lastMarkedLow3 = CompoundValue(1, if IsNaN(_markedLow3) then _lastMarkedLow3[1] else if _markedLow3 then low(period = TimeFrame3) else _lastMarkedLow3[1], low(period = TimeFrame3));
#--------------------------------------------------------------
def marketHigh3 = if _highInPeriod3 > _highInPeriod3[-LookbackPeriod] then _highInPeriod3 else _highInPeriod3[-LookbackPeriod];
def _markedHigh3 = high(period = TimeFrame3) == marketHigh3;
rec _lastMarkedHigh3 = CompoundValue(1, if IsNaN(_markedHigh3) then _lastMarkedHigh3[1] else if _markedHigh3 then high(period = TimeFrame3) else _lastMarkedHigh3[1], high(period = TimeFrame3));
#--------------------------------------------------------------
def Resistance3 = _lastMarkedHigh3;
def Support3 = _lastMarkedLow3;
def ff = (open * 2 + close * 3)/5;
def lower_close1 = (SMA2 crosses below Support1[1]);
def higher_close1 = (SMA2 crosses above Resistance1[1]);
def lower_close2 = (SMA2 crosses below Support2[1]);
def higher_close2 = (SMA2 crosses above Resistance2[1]);
def lower_close3 = (SMA2 crosses below Support2[1]);
def higher_close3 = (SMA2 crosses above Resistance2[1]);
def higher_close12 = (ff > Resistance1[1]);
def higher_close22 = (ff > Resistance2[1]);
def higher_close32 = (ff > Resistance2[1]);
def x = (close > trueqb);
def c = (close[1] < trueqb[1]);
def v = (close[2] < trueqb[2]);
def b = x and (c or v);
def y = (close > trueqs);
def w = (close[1] < trueqs[1]);
def e = (close[2] < trueqs[2]);
def r = y and (w or e);
def allbreakdown = lower_close1 or lower_close2 or lower_close3;
def allbreakup = (higher_close1 or higher_close2 or higher_close3);
def allbreakup2 = (higher_close12 or higher_close22 or higher_close32);
def anyres = support1 or support2 or support3;
def ansup = support1 or support2 or support3;
input BuyEntry2 = 40;
input SellEntry2 = 40;
def QB2 = Highest(high, BuyEntry2);
def QS2 = Lowest(low, SellEntry2);
def trueqb2 = QB2[1];
def trueqs2 = QS2[1];
def midline2 = (trueqb2 + trueqs2)/2;
def fg = (high - close) < ((close - open) * 2);
def fgbear = (close-low) < ((open - close) * 2);
def goodcandle = ((high - close) < (hl2 - low)) or (open > high[1]);
def goodsellcandle = (close - low) < (high - hl2);
def goodcandle2 = ((close - open)/(high - low)) > .82;
def allbreaku = (allbreakup2 and goodcandle2);
def openhigh = open > close[1];
def goldenbuy = (allbreakup or allbreaku or allbreakup[1]);
def goldenshort = (allbreakdown);
plot goldenbuytesting = (goldenbuy or goldenbuy[1]) and recentup and (goodcandle) and (fg) and (squeeze is false);
#plot goldenshorttesting = (goldenshort) and recentdown and (squeeze is false) and fgbear;