<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Joomla! - Open Source Content Management" -->
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<title type="text">Welcome to Gusgraph</title>
	<subtitle type="text">Gusgraph </subtitle>
	<link rel="alternate" type="text/html" href="https://gusgraph.com"/>
	<id>https://gusgraph.com/index.php</id>
	<updated>2026-05-22T23:16:43+00:00</updated>
	<author>
		<name>My Joomla</name>
	</author>
	<generator uri="https://www.joomla.org">Joomla! - Open Source Content Management</generator>
	<link rel="self" type="application/atom+xml" href="https://gusgraph.com//index.php?view=category&amp;id=8&amp;format=feed&amp;type=atom"/>
	<entry>
		<title>Market Gate GO/NO-GO (Long-Only) indicator</title>
		<link rel="alternate" type="text/html" href="https://gusgraph.com/index.php/home/digital-projects/market-gate-go-no-go-long-only-indicator"/>
		<published>2026-02-07T05:04:49+00:00</published>
		<updated>2026-02-07T05:04:49+00:00</updated>
		<id>https://gusgraph.com/index.php/home/digital-projects/market-gate-go-no-go-long-only-indicator</id>
		<author>
			<name>Administrator</name>
		</author>
		<summary type="html">&lt;div style=&quot;max-width: 920px; margin: 0 auto; padding: 24px; font-family: 'Georgia', 'Palatino', serif; color: #0f172a; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);&quot;&gt;
&lt;h2 style=&quot;margin: 0 0 12px; font-size: 26px; color: #0f172a;&quot;&gt;Market Gate GO/NO-GO (Long Only)&lt;/h2&gt;
&lt;p style=&quot;margin: 0 0 16px; font-size: 15px; line-height: 1.6;&quot;&gt;This indicator is for traders who want a quick, objective answer to one question before they take any long: &lt;strong data-start=&quot;108&quot; data-end=&quot;196&quot;&gt;“Is the overall market environment supportive right now, or am I fighting the tape?”&lt;/strong&gt; Most losses in long-only swing trading don’t come from picking the wrong stock — they come from buying good setups while the broader market is risk-off. This script is meant to solve that by acting as a &lt;strong data-start=&quot;400&quot; data-end=&quot;432&quot;&gt;top-level market regime gate&lt;/strong&gt; you keep on your chart (or in a separate window) and check first. It does not place trades, does not connect to any broker, and it does not predict. It simply prints a daily &lt;strong data-start=&quot;607&quot; data-end=&quot;621&quot;&gt;GO / NO-GO&lt;/strong&gt; state based on market conditions, and you use it as a &lt;strong data-start=&quot;676&quot; data-end=&quot;696&quot;&gt;permission layer&lt;/strong&gt; before taking any long setups on individual tickers (breakouts, pullbacks, SMA crosses, reclaim/hold, etc.).&lt;/p&gt;
&lt;p style=&quot;margin: 0 0 16px; font-size: 15px; line-height: 1.6;&quot;&gt;A simple indicator , mechanical risk filter designed to keep long entries aligned with broader market conditions. It does &lt;strong&gt;not&lt;/strong&gt; place trades and does &lt;strong&gt;not&lt;/strong&gt; connect to any broker. It prints a daily &lt;strong&gt;GO/NO-GO&lt;/strong&gt; state and is meant to be used as a “permission layer” before taking any long setups on individual tickers.&lt;/p&gt;
&lt;div style=&quot;display: grid; gap: 20px;&quot;&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Logic (Strict Market Gate)&lt;/h3&gt;
&lt;p style=&quot;margin: 0 0 10px;&quot;&gt;Market Gate is &lt;strong&gt;GO&lt;/strong&gt; only when all three conditions are true (daily data):&lt;/p&gt;
&lt;ul style=&quot;margin: 0 0 8px; padding-left: 20px;&quot;&gt;
&lt;li&gt;SPY is above its SMA(20)&lt;/li&gt;
&lt;li&gt;QQQ is above its SMA(20)&lt;/li&gt;
&lt;li&gt;VIX is below its SMA(10)&lt;/li&gt;
&lt;/ul&gt;
&lt;p style=&quot;margin: 0;&quot;&gt;If any condition fails, Market Gate is &lt;strong&gt;NO-GO&lt;/strong&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;How to use&lt;/h3&gt;
&lt;ul style=&quot;margin: 0; padding-left: 20px;&quot;&gt;
&lt;li&gt;&lt;strong&gt;GO&lt;/strong&gt; = you’re allowed to take long setups on your chart.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NO-GO&lt;/strong&gt; = stand down (avoid new longs, avoid “catching falling knives”).&lt;/li&gt;
&lt;li&gt;Combine with your own entry trigger (e.g., SMA10 crossing above SMA20, reclaim/hold, breakouts).&lt;/li&gt;
&lt;li&gt;Works on any chart timeframe, but the gate itself always uses daily SPY/QQQ/VIX.&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Signals / Visuals&lt;/h3&gt;
&lt;ul style=&quot;margin: 0; padding-left: 20px;&quot;&gt;
&lt;li&gt;GO/NO markers are printed once per day (first bar of the day on intraday charts) to avoid label spam.&lt;/li&gt;
&lt;li&gt;Optional SMA10/20 plots can be used for your local entry timing.&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Inputs&lt;/h3&gt;
&lt;ul style=&quot;margin: 0; padding-left: 20px;&quot;&gt;
&lt;li&gt;Symbols: SPY, QQQ, CBOE:VIX (editable)&lt;/li&gt;
&lt;li&gt;Lengths: SPY/QQQ SMA length (default 20), VIX SMA length (default 10)&lt;/li&gt;
&lt;li&gt;Optional: require both SPY &amp;amp; QQQ above SMA (strict) vs either (looser)&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Notes&lt;/h3&gt;
&lt;p style=&quot;margin: 0; line-height: 1.6;&quot;&gt;This is a market-regime filter, not a full strategy. It will intentionally stay NO-GO during downtrends and volatility expansions. Always test and adjust to your own risk tolerance and instruments.&lt;/p&gt;
&lt;/section&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 20px; padding: 12px 16px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 12px;&quot;&gt;
&lt;p style=&quot;margin: 0; font-size: 14px;&quot;&gt;Made by:&lt;a style=&quot;color: #4338ca; font-weight: 600; text-decoration: none;&quot; href=&quot;https://gusgraph&quot;&gt; Gus Kazem&lt;/a&gt;  •  Find on &lt;a style=&quot;color: #4338ca; font-weight: 600; text-decoration: none;&quot; href=&quot;https://www.tradingview.com/script/NIPvg21x-Market-Gate-GO-NO-GO-Long-Only-SPY-QQQ-Trend-VIX-Filter/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;TradingView&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;h3 style=&quot;margin: 24px 0 10px; font-size: 18px; color: #1e293b;&quot;&gt;&lt;strong&gt;Source Code:&lt;/strong&gt;&lt;/h3&gt;
&lt;pre style=&quot;margin: 0; padding: 16px; background: #0f172a; color: #e2e8f0; border-radius: 12px; overflow: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.6;&quot;&gt;&lt;code&gt;//@version=6
indicator(&quot;SMA10/20 Cross GO (Strict Market Gate) + Death Zone&quot;, overlay=true, max_labels_count=500)

// ─────────────────────────────────────────────────────────────────────────────
// Inputs
// ─────────────────────────────────────────────────────────────────────────────
src0   = input.source(close, &quot;Source&quot;)
len10  = input.int(10, &quot;SMA 10&quot;, minval=1)
len20  = input.int(20, &quot;SMA 20&quot;, minval=1)

// Strict Market Gate (daily)
spySym0 = input.string(&quot;SPY&quot;,      &quot;SPY symbol&quot;)
qqqSym0 = input.string(&quot;QQQ&quot;,      &quot;QQQ symbol&quot;)
vixSym0 = input.string(&quot;CBOE:VIX&quot;, &quot;VIX symbol&quot;)

spyLen0 = input.int(20, &quot;SPY SMA length&quot;, minval=1)
qqqLen0 = input.int(20, &quot;QQQ SMA length&quot;, minval=1)
vixLen0 = input.int(10, &quot;VIX SMA length&quot;, minval=1)

// Death Cross settings (computed, not plotted)
dcFastLen0 = input.int(50,  &quot;Death Cross fast SMA (50)&quot;,  minval=1)
dcSlowLen0 = input.int(200, &quot;Death Cross slow SMA (200)&quot;, minval=1)

// ─────────────────────────────────────────────────────────────────────────────
// Plot SMA10 / SMA20 (current chart)
// ─────────────────────────────────────────────────────────────────────────────
s10_0 = ta.sma(src0, len10)
s20_0 = ta.sma(src0, len20)
plot(s10_0, linewidth=3, title=&quot;SMA 10&quot;)
plot(s20_0, linewidth=3, title=&quot;SMA 20&quot;)

// ─────────────────────────────────────────────────────────────────────────────
// Market Gate (STRICT): SPY &amp;gt; SMA20 AND QQQ &amp;gt; SMA20 AND VIX &amp;lt; SMA10
// Uses DAILY data regardless of chart timeframe.
// ─────────────────────────────────────────────────────────────────────────────
fD0(string sym, float expr) =&amp;gt;
    request.security(sym, &quot;D&quot;, expr, barmerge.gaps_off, barmerge.lookahead_off)

spyC0 = fD0(spySym0, close)
qqqC0 = fD0(qqqSym0, close)
vixC0 = fD0(vixSym0, close)

spySMA0 = ta.sma(spyC0, spyLen0)
qqqSMA0 = ta.sma(qqqC0, qqqLen0)
vixSMA0 = ta.sma(vixC0, vixLen0)

marketGO0 = (spyC0 &amp;gt; spySMA0) and (qqqC0 &amp;gt; qqqSMA0) and (vixC0 &amp;lt; vixSMA0)

// ─────────────────────────────────────────────────────────────────────────────
// GO / NO signals
// GO fires ONLY when SMA10 crosses ABOVE SMA20 AND Market Gate is GO (strict).
// NO fires when SMA10 crosses BELOW SMA20 (regardless of gate).
// ─────────────────────────────────────────────────────────────────────────────
goSignal0 = ta.crossover(s10_0, s20_0) and marketGO0
noSignal0 = ta.crossunder(s10_0, s20_0)

fStickyLabel(bool condition, float y, string labelText, color bgColor, color txtColor, style) =&amp;gt;
    if condition
        label.new(bar_index, y, labelText, xloc=xloc.bar_index, yloc=yloc.price, style=style, color=bgColor, textcolor=txtColor, size=size.tiny)

fStickyLabel(goSignal0, low, &quot;GO&quot;, color.lime, color.black, label.style_label_up)
fStickyLabel(noSignal0, high, &quot;NO&quot;, color.red, color.rgb(31, 13, 24), label.style_label_down)

// ─────────────────────────────────────────────────────────────────────────────
// Death Cross mark (orange): SMA50 crosses BELOW SMA200 (on chart symbol)
// ─────────────────────────────────────────────────────────────────────────────
dcFast0 = ta.sma(src0, dcFastLen0)
dcSlow0 = ta.sma(src0, dcSlowLen0)
deathCross0 = ta.crossunder(dcFast0, dcSlow0)

fStickyLabel(deathCross0, high, &quot;Death Zone&quot;, color.orange, color.black, label.style_label_down)&lt;/code&gt;
  &lt;/pre&gt;
&lt;/div&gt;</summary>
		<content type="html">&lt;div style=&quot;max-width: 920px; margin: 0 auto; padding: 24px; font-family: 'Georgia', 'Palatino', serif; color: #0f172a; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);&quot;&gt;
&lt;h2 style=&quot;margin: 0 0 12px; font-size: 26px; color: #0f172a;&quot;&gt;Market Gate GO/NO-GO (Long Only)&lt;/h2&gt;
&lt;p style=&quot;margin: 0 0 16px; font-size: 15px; line-height: 1.6;&quot;&gt;This indicator is for traders who want a quick, objective answer to one question before they take any long: &lt;strong data-start=&quot;108&quot; data-end=&quot;196&quot;&gt;“Is the overall market environment supportive right now, or am I fighting the tape?”&lt;/strong&gt; Most losses in long-only swing trading don’t come from picking the wrong stock — they come from buying good setups while the broader market is risk-off. This script is meant to solve that by acting as a &lt;strong data-start=&quot;400&quot; data-end=&quot;432&quot;&gt;top-level market regime gate&lt;/strong&gt; you keep on your chart (or in a separate window) and check first. It does not place trades, does not connect to any broker, and it does not predict. It simply prints a daily &lt;strong data-start=&quot;607&quot; data-end=&quot;621&quot;&gt;GO / NO-GO&lt;/strong&gt; state based on market conditions, and you use it as a &lt;strong data-start=&quot;676&quot; data-end=&quot;696&quot;&gt;permission layer&lt;/strong&gt; before taking any long setups on individual tickers (breakouts, pullbacks, SMA crosses, reclaim/hold, etc.).&lt;/p&gt;
&lt;p style=&quot;margin: 0 0 16px; font-size: 15px; line-height: 1.6;&quot;&gt;A simple indicator , mechanical risk filter designed to keep long entries aligned with broader market conditions. It does &lt;strong&gt;not&lt;/strong&gt; place trades and does &lt;strong&gt;not&lt;/strong&gt; connect to any broker. It prints a daily &lt;strong&gt;GO/NO-GO&lt;/strong&gt; state and is meant to be used as a “permission layer” before taking any long setups on individual tickers.&lt;/p&gt;
&lt;div style=&quot;display: grid; gap: 20px;&quot;&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Logic (Strict Market Gate)&lt;/h3&gt;
&lt;p style=&quot;margin: 0 0 10px;&quot;&gt;Market Gate is &lt;strong&gt;GO&lt;/strong&gt; only when all three conditions are true (daily data):&lt;/p&gt;
&lt;ul style=&quot;margin: 0 0 8px; padding-left: 20px;&quot;&gt;
&lt;li&gt;SPY is above its SMA(20)&lt;/li&gt;
&lt;li&gt;QQQ is above its SMA(20)&lt;/li&gt;
&lt;li&gt;VIX is below its SMA(10)&lt;/li&gt;
&lt;/ul&gt;
&lt;p style=&quot;margin: 0;&quot;&gt;If any condition fails, Market Gate is &lt;strong&gt;NO-GO&lt;/strong&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;How to use&lt;/h3&gt;
&lt;ul style=&quot;margin: 0; padding-left: 20px;&quot;&gt;
&lt;li&gt;&lt;strong&gt;GO&lt;/strong&gt; = you’re allowed to take long setups on your chart.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NO-GO&lt;/strong&gt; = stand down (avoid new longs, avoid “catching falling knives”).&lt;/li&gt;
&lt;li&gt;Combine with your own entry trigger (e.g., SMA10 crossing above SMA20, reclaim/hold, breakouts).&lt;/li&gt;
&lt;li&gt;Works on any chart timeframe, but the gate itself always uses daily SPY/QQQ/VIX.&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Signals / Visuals&lt;/h3&gt;
&lt;ul style=&quot;margin: 0; padding-left: 20px;&quot;&gt;
&lt;li&gt;GO/NO markers are printed once per day (first bar of the day on intraday charts) to avoid label spam.&lt;/li&gt;
&lt;li&gt;Optional SMA10/20 plots can be used for your local entry timing.&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Inputs&lt;/h3&gt;
&lt;ul style=&quot;margin: 0; padding-left: 20px;&quot;&gt;
&lt;li&gt;Symbols: SPY, QQQ, CBOE:VIX (editable)&lt;/li&gt;
&lt;li&gt;Lengths: SPY/QQQ SMA length (default 20), VIX SMA length (default 10)&lt;/li&gt;
&lt;li&gt;Optional: require both SPY &amp;amp; QQQ above SMA (strict) vs either (looser)&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section style=&quot;background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;&quot;&gt;
&lt;h3 style=&quot;margin: 0 0 8px; font-size: 18px; color: #1e293b;&quot;&gt;Notes&lt;/h3&gt;
&lt;p style=&quot;margin: 0; line-height: 1.6;&quot;&gt;This is a market-regime filter, not a full strategy. It will intentionally stay NO-GO during downtrends and volatility expansions. Always test and adjust to your own risk tolerance and instruments.&lt;/p&gt;
&lt;/section&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-top: 20px; padding: 12px 16px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 12px;&quot;&gt;
&lt;p style=&quot;margin: 0; font-size: 14px;&quot;&gt;Made by:&lt;a style=&quot;color: #4338ca; font-weight: 600; text-decoration: none;&quot; href=&quot;https://gusgraph&quot;&gt; Gus Kazem&lt;/a&gt;  •  Find on &lt;a style=&quot;color: #4338ca; font-weight: 600; text-decoration: none;&quot; href=&quot;https://www.tradingview.com/script/NIPvg21x-Market-Gate-GO-NO-GO-Long-Only-SPY-QQQ-Trend-VIX-Filter/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;TradingView&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;h3 style=&quot;margin: 24px 0 10px; font-size: 18px; color: #1e293b;&quot;&gt;&lt;strong&gt;Source Code:&lt;/strong&gt;&lt;/h3&gt;
&lt;pre style=&quot;margin: 0; padding: 16px; background: #0f172a; color: #e2e8f0; border-radius: 12px; overflow: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.6;&quot;&gt;&lt;code&gt;//@version=6
indicator(&quot;SMA10/20 Cross GO (Strict Market Gate) + Death Zone&quot;, overlay=true, max_labels_count=500)

// ─────────────────────────────────────────────────────────────────────────────
// Inputs
// ─────────────────────────────────────────────────────────────────────────────
src0   = input.source(close, &quot;Source&quot;)
len10  = input.int(10, &quot;SMA 10&quot;, minval=1)
len20  = input.int(20, &quot;SMA 20&quot;, minval=1)

// Strict Market Gate (daily)
spySym0 = input.string(&quot;SPY&quot;,      &quot;SPY symbol&quot;)
qqqSym0 = input.string(&quot;QQQ&quot;,      &quot;QQQ symbol&quot;)
vixSym0 = input.string(&quot;CBOE:VIX&quot;, &quot;VIX symbol&quot;)

spyLen0 = input.int(20, &quot;SPY SMA length&quot;, minval=1)
qqqLen0 = input.int(20, &quot;QQQ SMA length&quot;, minval=1)
vixLen0 = input.int(10, &quot;VIX SMA length&quot;, minval=1)

// Death Cross settings (computed, not plotted)
dcFastLen0 = input.int(50,  &quot;Death Cross fast SMA (50)&quot;,  minval=1)
dcSlowLen0 = input.int(200, &quot;Death Cross slow SMA (200)&quot;, minval=1)

// ─────────────────────────────────────────────────────────────────────────────
// Plot SMA10 / SMA20 (current chart)
// ─────────────────────────────────────────────────────────────────────────────
s10_0 = ta.sma(src0, len10)
s20_0 = ta.sma(src0, len20)
plot(s10_0, linewidth=3, title=&quot;SMA 10&quot;)
plot(s20_0, linewidth=3, title=&quot;SMA 20&quot;)

// ─────────────────────────────────────────────────────────────────────────────
// Market Gate (STRICT): SPY &amp;gt; SMA20 AND QQQ &amp;gt; SMA20 AND VIX &amp;lt; SMA10
// Uses DAILY data regardless of chart timeframe.
// ─────────────────────────────────────────────────────────────────────────────
fD0(string sym, float expr) =&amp;gt;
    request.security(sym, &quot;D&quot;, expr, barmerge.gaps_off, barmerge.lookahead_off)

spyC0 = fD0(spySym0, close)
qqqC0 = fD0(qqqSym0, close)
vixC0 = fD0(vixSym0, close)

spySMA0 = ta.sma(spyC0, spyLen0)
qqqSMA0 = ta.sma(qqqC0, qqqLen0)
vixSMA0 = ta.sma(vixC0, vixLen0)

marketGO0 = (spyC0 &amp;gt; spySMA0) and (qqqC0 &amp;gt; qqqSMA0) and (vixC0 &amp;lt; vixSMA0)

// ─────────────────────────────────────────────────────────────────────────────
// GO / NO signals
// GO fires ONLY when SMA10 crosses ABOVE SMA20 AND Market Gate is GO (strict).
// NO fires when SMA10 crosses BELOW SMA20 (regardless of gate).
// ─────────────────────────────────────────────────────────────────────────────
goSignal0 = ta.crossover(s10_0, s20_0) and marketGO0
noSignal0 = ta.crossunder(s10_0, s20_0)

fStickyLabel(bool condition, float y, string labelText, color bgColor, color txtColor, style) =&amp;gt;
    if condition
        label.new(bar_index, y, labelText, xloc=xloc.bar_index, yloc=yloc.price, style=style, color=bgColor, textcolor=txtColor, size=size.tiny)

fStickyLabel(goSignal0, low, &quot;GO&quot;, color.lime, color.black, label.style_label_up)
fStickyLabel(noSignal0, high, &quot;NO&quot;, color.red, color.rgb(31, 13, 24), label.style_label_down)

// ─────────────────────────────────────────────────────────────────────────────
// Death Cross mark (orange): SMA50 crosses BELOW SMA200 (on chart symbol)
// ─────────────────────────────────────────────────────────────────────────────
dcFast0 = ta.sma(src0, dcFastLen0)
dcSlow0 = ta.sma(src0, dcSlowLen0)
deathCross0 = ta.crossunder(dcFast0, dcSlow0)

fStickyLabel(deathCross0, high, &quot;Death Zone&quot;, color.orange, color.black, label.style_label_down)&lt;/code&gt;
  &lt;/pre&gt;
&lt;/div&gt;</content>
		<category term="Digital Projects" />
	</entry>
</feed>
