在腳本中搜尋"美元指数跌破100大关"
50, 100, 200 EMAsA simple script that displays the 50, 100, and 200-period exponential moving averages. Reduce clutter by combining them into one indicator!
50, 100, 200 SMAsA simple script that displays the 50, 100, and 200-period simple moving averages. Reduce clutter by combining them into one indicator!
50,100,200 MA by CryptoLife71(FIXED)Updated the code by CryptoLife71 so that the 200ma shows correctly.
EMA 20/50/100/200Plots exponential moving average on four timeframes at once for rapid indication of momentum shift as well as slower-moving confirmations.
Displays EMA 20, 50, 100, and 200... default colors are hotter for faster timeframes, cooler for slower ones
DECL: 3 X Moving Average (50, 100 and 200 day)Basic Moving Average with 3 different intervals. Default: 50 day (blue), 100 day (red) and 200 day (purple)
BB 100 with Barcolors6/19/15 I added confirmation highlight bars to the code. In other words, if a candle bounced off the lower Bollinger band, it needed one more close above the previous candle to confirm a higher probability that a change in investor sentiment has reversed. Same is true for upper Bollinger band bounces. I also added confirmation highlight bars to the 100 sma (the basis). The idea is that lower and upper bands are potential points of support and resistance. The same is true of the basis if a trend is to continue. 6/28/15 I added a plotshape to identify closes above/below TLine. One thing this system points out is it operates best in a trend reversal. Consolidations will whipsaw the indicator too much. I have found that when this happens, if using daily candles, switch to hourly, 30 min, etc., to catch a better signal. Nothing moves in a straight line. As with any indicator, it is a tool to be used in conjunction with the art AND science of trading. As always, try the indicator for a time so that you are comfortable enough to use real money. This is designed to be used with "BB 25 with Barcolors".
BB 100 with Barcolors6/19/15 I added confirmation highlight bars to the code. In other words, if a candle bounced off the lower Bollinger band, it needed one more close above the previous candle to confirm a higher probability that a change in investor sentiment has reversed. Same is true for upper Bollinger band bounces. I also added confirmation highlight bars to the 100 sma (the basis). The idea is that lower and upper bands are potential points of support and resistance. The same is true of the basis if a trend is to continue. Nothing moves in a straight line. As with any indicator, it is a tool to be used in conjunction with the art AND science of trading. As always, try the indicator for a time so that you are comfortable enough to use real money. This is designed to be used with "BB 25 with Barcolors".
BB 100 with BarcolorsI cleaned up the highlight barcolor to reflect red or lime depending if it closed > or < the open.
The description is in the code. you want to catch bounces off the 25 (upper or lower) and 100 (upper or lower).
Works well on the hourly and 30 min charts. Haven't tested it beyond that. Haven't tested Forex, just equities.
EMA Keltner Channel 1D100/200 EMAs, along with Keltner Bands based off them. Colors correspond to actions you should be ready to take in the area. Use to set macro mindset.
Uses the security function to display only the 1D values.
Red= Bad
Orange = Not as Bad, but still Bad.
Yellow = Warning, might also be Bad.
Purple = Dip a toe in.
Blue = Give it a shot but have a little caution.
Green = It's second mortgage time.
Weather Score1000,100Modules 10 Families × 10 VariantsWeather Score 1000 — 100 Modules (10×10)
A plug-n-play market “weather station” that compresses 100 popular signals into one composite grade. Ten indicator families × ten variants each → a 0–100% readiness score (with GO / NO-GO alerts), plus a mini dashboard table and a draggable badge.
What it measures
10 families (each scored 0–100):
Trend: 10 EMA fast/slow pairs (price > fast/slow, stack & slope bonus)
RSI: 10 lengths, mapped by sweet-spot normalization (40–60)
Stochastic: 10 %K lengths, normalized to 20–80
MACD Z: manual MACD (no tuple quirks) with per-set histogram z-score
BB %B: price location inside the band (10 band lengths)
BB Width: band width percentile vs lookback (10 lookbacks)
ADX: Wilder’s ADX across 10 lengths (15–35 “power zone”)
Volume Pulse: volume vs SMA as a ratio (ATR fallback if no volume)
ATR %: ATR vs its own min/max percentile (10 len/lookback pairs)
MFI: custom MFI using running sums (robust to missing volume; neutral=50)
All families are normalized, then summed. Toggle families on/off; each on contributes up to 100 points toward the composite.
Why it’s robust
No ta.sum pitfalls: MFI uses rolling sums; stable across all assets.
Manual MACD: avoids tuple re-declarations and version quirks.
ATR fallback for volume: works on symbols with missing volume.
Percentile & sweet-spot scoring: adapts to regime shifts and scale.
How to read it
Composite: 0–100% readiness.
GO alert: composite ≥ your threshold (default 80%).
NO-GO alert: composite ≤ your threshold (default 20%).
Badge: quick readout of each family’s score + totals.
Mini table: per-family color heat, short notes, and the grand total.
Signals & visuals
GO / NO-GO alerts once per bar close.
Optional painted bars (soft lime for GO, soft red for NO-GO).
Draggable badge shows current breakdown.
Customization tips
Use the family toggles to fit your style (e.g., disable BB on crypto scalps).
Tighten GO for trend-following; loosen for mean-reversion.
Lower NO-GO if you want earlier exits.
Works across timeframes; many users like 15m–4h for entries and 1D for bias.
Best practices
Treat GO as context & timing, not a blind entry. Pair with SR/structure.
Look for confluence: price above fast/slow EMAs + MACD z > 0 + ADX in 15–35 zone + BBW rising.
On illiquid assets, lean more on ATR/Trend and less on Volume/MFI.
Limitations
Needs some history to warm up long lookbacks (e.g., 300–500 bars).
On gaps or tiny sessions, width/ATR percentiles can momentarily jump.
Mongoose Compass v2 — Regime & Position SizingWhat it does
Mongoose Compass v2 is a regime‐detection dashboard and optional price-chart ribbon. It combines four market “pillars” into a 0–4 score and a suggested equity beta/position size. It is scale-independent and works on any host symbol.
Pillars (green = expansion supportive):
RS IWM/SPY – small-cap relative strength vs large caps
Credit HYG/LQD – high-yield vs investment-grade credit
Growth Cu/Au – copper vs gold (cyclical demand vs safety)
Participation – uses the first available of:
Breadth (% > 200-DMA) if you provide a symbol, else
Cboe S&P 500 Dispersion (DSPX), else
RSP/SPY equal-weight proxy
Score (0–4):
≥ 3 = Expansion
2 = Neutral
≤ 1 = Contraction
A panel shows each pillar’s normalized value (0–100), bias, total score, and a suggested size (default mapping: 0/30/60/90/100% for scores 0–4). The companion “Ribbon” script paints the price chart background by regime and displays the suggested size.
How to use
Timeframes
Weekly for regime calls (recommended anchor).
Daily for execution within the active regime (adds, trims, hedges).
Playbook
Expansion (score ≥ 3): increase risk/beta; favor cyclicals, small caps, EM; reduce hedges.
Neutral (score = 2): keep moderate beta; use relative value (e.g., quality/mega vs small caps) until RS or Cu/Au turns.
Contraction (score ≤ 1): de-risk; rotate to defensives/quality, gold/long duration; add hedges.
Alerts (included):
Expansion Regime (score ≥ 3) – risk-on trigger
Contraction Regime (score ≤ 1) – risk-off trigger
Methodology
Prices are pulled with request.security on the chosen timeframe.
Pillars are built from ratios then smoothed with an SMA (Smoothing Length, default 20).
For display/comparison, series are normalized to 0–100 within a rolling window (Normalization Length, default 60).
Bias rules:
RS / Credit / Growth: fast SMA( len ) vs slow SMA( len*2 ) of each ratio
Breadth: normalized value > 60
DSPX: normalized value < 40 (lower dispersion supports index coherence)
RSP/SPY proxy: fast > slow trend test
Score is the count of green pillars (0–4).
Suggested size is a deterministic mapping from score (editable in settings).
Notes:
Host chart scaling (log vs linear) does not affect calculations.
If a breadth series is unavailable, the script automatically falls back to DSPX, then to RSP/SPY.
Settings
Sources
Default inputs use liquid ETFs (BATS/AMEX). You may switch Copper/Gold to futures (e.g., COMEX_DL:HG1!, COMEX_DL:GC1!) if your data plan supports them.
Optional Breadth: paste a percent-above-MA series if you have one.
DSPX: uses CBOE:DSPX when breadth is blank.
If neither breadth nor DSPX resolve, the script uses RSP/SPY as a participation proxy.
Calculation
Smoothing Length (20) – higher = steadier regime, fewer flips; lower = faster reaction.
Normalization Length (60) – window for the 0–100 scaling; increase to reduce pinning at extremes.
Regime Timeframe (Ribbon only) – lock the ribbon to Weekly while viewing Daily charts.
Visual
Show/hide dashboard table, choose table position, dark/light theme, ribbon opacity.
Recommended usage
Anchor decisions on Weekly Compass; use Daily for timing.
For small-cap rotation, apply on IWM/RTY; for broad beta, use SPY/ES. Output is identical regardless of host symbol because inputs are fetched internally.
Limitations & disclaimer
This is a systematic information tool, not investment advice.
Signals can whipsaw in fast markets; confirm with your risk framework.
Data availability varies by plan (especially futures and DSPX). When a source is unavailable the scripted fallbacks apply automatically.
Chart Commando Premium V10// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © chartcommandos
//@version=5
indicator('Sentiment Combo Oscillator', shorttitle='SENTIMENT IN')
info = input(true,title="Chartcommando.com/contact-us👨+918208247170")
BB = input(title='Commando BB', defval=false)
rsiPeriod = input.int(13, minval=1, title='RSI Period')
bandLength = input.int(34, minval=1, title='MBL Line')
lengthtrades = input.int(7, minval=1, title='Signal Line')
lengthrsi = input.int(2, minval=0, title='Sentiment Line')
src = close
r = ta.rsi(src, rsiPeriod)
ma = ta.sma(r, bandLength)
offs = 1.6185 * ta.stdev(r, bandLength)
up = ma + offs
dn = ma - offs
mid = (up + dn) / 2
fast = ta.sma(r, lengthtrades)
tdi = ta.sma(r, lengthrsi)
osc = tdi
Level1 = hline(80, title="Strong Bull Zone", color=#787B86, linestyle=hline.style_dotted)
Level2 = hline(60, title="Strong Bull Zone", color=#787B86, linestyle=hline.style_dotted)
Level3 = hline(40, title="Strong Bear Zone", color=#F23645, linestyle=hline.style_dotted)
Level4 = hline(20, title="strong Bear Zone", color=#F23645, linestyle=hline.style_dotted)
fill(Level1, Level4, title="RSI Shadow", color=color.rgb(33, 150, 243, 90))
midl = plot(mid, title="MBL Line", color=color.new(#FFee58, 50), linewidth=3)
plot(fast, title="Signal Line", color=color.new(#f23645, 0), linewidth=2)
plot(tdi, title="RSI Line", color=color.new(#2962ff, 0), linewidth=2)
p1 = plot(BB ? up : na, 'BB Upper Line ', color=color.new(#2196FF, 100))
p2 = plot(BB ? dn : na, 'BB Lower Line', color=color.new(#2196FF, 100))
fill(p1, p2, title = "BB Shadow", color=color.rgb(33, 150, 243, 85))
Div = input(true,title="The Below Section Is The Divergence")
lbR = input(title="Div Back Right", defval=5)
lbL = input(title="Div Back Left", defval=5)
rangeUpper = input(title="Div Max Back Range", defval=60)
rangeLower = input(title="Div Min Back Range", defval=5)
plotBull = input(title="Bull & Bear Divergence", defval=true)
plotHiddenBull = input(title="Hidden Bull & Bear Divergence", defval=false)
bearColor = color.red
bullColor = color.green
hiddenBullColor = color.new(color.green, 80)
hiddenBearColor = color.new(color.red, 80)
textColor = color.white
noneColor = color.new(color.white, 100)
plFound = na(ta.pivotlow(osc, lbL, lbR)) ? false : true
phFound = na(ta.pivothigh(osc, lbL, lbR)) ? false : true
_inRange(cond) =>
bars = ta.barssince(cond == true)
rangeLower <= bars and bars <= rangeUpper
oscHL = osc > ta.valuewhen(plFound, osc , 1) and _inRange(plFound )
priceLL = low < ta.valuewhen(plFound, low , 1)
bullCond = plotBull and priceLL and oscHL and plFound
plot(
plFound ? osc : na,
offset=-lbR,
title="Regular Bullish",
linewidth=2,
color=(bullCond ? bullColor : noneColor)
)
plotshape(
bullCond ? osc : na,
offset=-lbR,
title="Regular Bullish",
text=" Bull ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
oscLL = osc < ta.valuewhen(plFound, osc , 1) and _inRange(plFound )
priceHL = low > ta.valuewhen(plFound, low , 1)
hiddenBullCond = plotHiddenBull and priceHL and oscLL and plFound
plot(
plFound ? osc : na,
offset=-lbR,
title="Hidden Bullish",
linewidth=2,
color=(hiddenBullCond ? hiddenBullColor : noneColor)
)
plotshape(
hiddenBullCond ? osc : na,
offset=-lbR,
title="Hidden Bullish",
text=" H Bull ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
oscLH = osc < ta.valuewhen(phFound, osc , 1) and _inRange(phFound )
priceHH = high > ta.valuewhen(phFound, high , 1)
bearCond = plotBull and priceHH and oscLH and phFound
plot(
phFound ? osc : na,
offset=-lbR,
title="Regular Bearish",
linewidth=2,
color=(bearCond ? bearColor : noneColor)
)
plotshape(
bearCond ? osc : na,
offset=-lbR,
title="Regular Bearish",
text=" Bear ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
oscHH = osc > ta.valuewhen(phFound, osc , 1) and _inRange(phFound )
priceLH = high < ta.valuewhen(phFound, high , 1)
hiddenBearCond = plotHiddenBull and priceLH and oscHH and phFound
plot(
phFound ? osc : na,
offset=-lbR,
title="Hidden Bearish",
linewidth=2,
color=(hiddenBearCond ? hiddenBearColor : noneColor)
)
plotshape(
hiddenBearCond ? osc : na,
offset=-lbR,
title="Hidden Bearish",
text=" H Bear ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)