Cari dalam skrip untuk "北证50+指数成分股"
EMA Crossover Strategy (15m)50 and 200 ema crossing when leaving anchor. when 50 and 200 crosses will give you direction of where market is going. wait for a pull back and take trade. sl on highest or lowest point of apex tp open . when you see multiple equal ( low or High) get put of trade.
The Lazy Trader - Index (ETF) Trend Following Robot50/150 moving average, index (ETF) trend following robot. Coded for people who cannot psychologically handle dollar-cost-averaging through bear markets and extreme drawdowns (although DCA can produce better results eventually), this robot helps you to avoid bear markets. Be a fair-weathered friend of Mr Market, and only take up his offer when the sun is shining! Designed for the lazy trader who really doesn't care...
Recommended Chart Settings:
Asset Class: ETF
Time Frame: Daily
Necessary ETF Macro Conditions:
a) Country must have healthy demographics, good ratio of young > old
b) Country population must be increasing
c) Country must be experiencing price-inflation
Default Robot Settings:
Slow Moving Average: 50 (integer) //adjust to suit your underlying index
Fast Moving Average: 150 (integer) //adjust to suit your underlying index
Bullish Slope Angle: 5 (degrees) //up angle of moving averages
Bearish Slope Angle: -5 (degrees) //down angle of moving averages
Average True Range: 14 (integer) //input for slope-angle formula
Risk: 100 (%) //100% risk means using all equity per trade
ETF Test Results (Default Settings):
SPY (1993 to 2020, 27 years), 332% profit, 20 trades, 6.4 profit factor, 7% drawdown
EWG (1996 to 2020, 24 years), 310% profit, 18 trades, 3.7 profit factor, 10% drawdown
EWH (1996 to 2020, 24 years), 4% loss, 26 trades, 0.9 profit factor, 36% drawdown
QQQ (1999 to 2020, 21 years), 232% profit, 17 trades, 3.6 profit factor, 2% drawdown
EEM (2003 to 2020, 17 years), 73% profit, 17 trades, 1.1 profit factor, 3% drawdown
GXC (2007 to 2020, 13 years), 18% profit, 14 trades, 1.3 profit factor, 26% drawdown
BKF (2009 to 2020, 11 years), 11% profit, 13 trades, 1.2 profit factor, 33% drawdown
A longer time in the markets is better, with the exception of EWH. 6 out of 7 tested ETFs were profitable, feel free to test on your favourite ETF (default settings) and comment below.
Risk Warning:
Not tested on commodities nor other financial products like currencies (code will not work), feel free to leave comments below.
Moving Average Slope Angle Formula:
Reproduced and modified from source:
50-Minute Opening Range BreakoutThis is a test of the opening range with Bearish/Bullish confirmation
50-Line Oscillator // (\_/)
// ( •.•)
// (")_(")
25-Line Oscillator
Description:
The 25-Line Oscillator is a sophisticated technical analysis tool designed to visualize market trends through the use of multiple Simple Moving Averages (SMAs). This indicator computes a series of 26 SMAs, incrementally increasing the base length, providing traders with a comprehensive view of price dynamics.
Features:
Customizable Base Length: Adjust the base length of the SMAs according to trading preferences, enhancing versatility for different market conditions.
Rainbow Effect: The indicator employs a visually appealing rainbow color scheme to differentiate between the various trend lines, making it easy to identify crossovers and momentum shifts.
Crossovers Detection: The script includes logic to detect crossover events between consecutive trend lines, which can serve as signals for potential entry or exit points in trading.
Clear Visualization: Suitable for both novice and seasoned traders, the plots enable quick interpretation of trends and market behavior.
How to Use:
Add the indicator to your chart and customize the base length as desired.
Observe the rainbow-colored lines for trend direction.
Look for crossover events between the SMAs as potential trading signals.
Application: This indicator is particularly useful for swing traders and trend followers who aim to capitalize on market momentum and identify reversals. By monitoring the behavior of multiple SMAs, traders can gain insights into the strength and direction of price movements over various time frames.
AK Simple Moving Average 50 days Simple Moving average suitable for Intraday on 1Hr,30Min.15Min Time frames
1. When candle crossing above SMA Line - Go for Long Entries
2. When candle crossing below SMA Line - Go for short Entries
50 SMA / 200 EMA / 128EMA Moving Average CrossFound success using 50SMA vs 200EMA.
128 EMA also charted for it's BTC relevance.
50/100/200 Moving Averages (Pine Script For Copy)by fresca
SCRIPT LANGUAGE
Copy script below and adjust based on your preferences.
-function (change function from "sma" to "ema", "wma" and more)
-length (25 Day, 150 Day or add more averages to the three in this script.)
-color, (red, yellow, etc. or use color hex codes i.e. #FEDA15, #FFAD8F, etc.)
-transparency (set to desired level 1-100)
Or add more options.
RESOURCES
Color hex codes site: www.canva.com
Trading View Pine Script Editor Reference Guide: www.tradingview.com
Taint's Multi Time Frame MA50-100-200 SMA with two 200 EMA's all with the ability choose a time frame for each.
BAY Technical Indicators//@version=5
indicator("BAY Technical Indicators", overlay=true)
// Price source
price = close
// VWAP
vwap = ta.vwap
plot(vwap, title="VWAP", color=color.blue, linewidth=2)
// SMMA (RMA) 20 and 50
smma20 = ta.rma(price, 20)
smma50 = ta.rma(price, 50)
plot(smma20, title="SMMA 20", color=color.lime)
plot(smma50, title="SMMA 50", color=color.purple)
// EMA 9 and 21
ema9 = ta.ema(price, 9)
ema21 = ta.ema(price, 21)
plot(ema9, title="EMA 9", color=color.white)
plot(ema21, title="EMA 21", color=color.red)
// MA 200
ma200 = ta.sma(price, 200)
plot(ma200, title="MA 200", color=color.orange, linewidth=2)
// SMA 325 (Dark Green)
sma325 = ta.sma(price, 325)
plot(sma325, title="SMA 325", color=color.new(color.green, 0)) // Dark green
// Volume SMA 9 (plotted in data window only)
volume_sma9 = ta.sma(volume, 9)
plot(volume_sma9, title="Volume SMA 9", color=color.fuchsia, linewidth=1, display=display.data_window)
Delta Money Flow IndexThe Delta Money Flow Index is a modified version of the traditional Money Flow Index that uses directional volume instead of total volume to measure buying and selling pressure in a different way.
It helps traders identify overbought/oversold conditions based on actual buy/sell pressure rather than just total volume. It's designed for traders who want to see if price movements are backed by genuine buying or selling activity.
How to use it:
- Values above 80 indicate overbought conditions
- Values below 20 indicate oversold conditions
- The 50 level acts as a neutral zone. Above suggests buyers are in control, below suggests sellers are in control.
- Traders can check for divergences for potential reversal signals
- Works best on intraday timeframes where delta volume is most meaningful
What makes it different:
Unlike the standard MFI which uses total volume, the Delta MFI calculates an approximation of volume delta by assigning positive volume to up-closing candles and negative volume to down-closing candles.
This means:
- It focuses on directional pressure, not just activity
- Filters out low-conviction volume that doesn't move price
- Provides clearer signals when actual buying/selling dominates
The indicator includes visual aids like background colors for overbought/oversold and a fill showing whether the Delta MFI is above or below the 50 midpoint for quick interpretation.
Miggy Oscillator — NeoWave v7.2 + Fib + TP🌀 Miggy Oscillator — NeoWave v7.2 + Fibonacci + TP
Miggy Oscillator v7.2 is an advanced multi-layer momentum indicator that fuses WaveTrend, RSI, MFI, and adaptive Fibonacci dynamics into one powerful visual system.
It automatically adjusts its scale and sensitivity to any timeframe and includes built-in Take Profit (TP1 / TP2) levels, divergence detection with diagonal trendlines, and a clean color-coded HUD for quick market reads.
🔹 Core Features
• Adaptive WaveTrend normalization (auto-scales by timeframe)
• Multi-confirmations: VWAP + EMA(50/200) filters
• Dynamic Fibonacci trend line (61.8 %) to identify bias: Bullish, Bearish, or Neutral
• Multiple trading modes: Scalping, Intraday, Swing 1H–4H, Only Short/Long, and dedicated Short-Scalping or Long-Scalping modes
• Smart divergence detection — plots small diagonal lines directly on the oscillator
• Built-in Take Profit logic (TP1 & TP2) based on mode sensitivity
• Neon visual design with a simplified information box (mode, trend, fib level)
🔹 Signals & Alerts
• Bullish / Bearish signals (Strong & Early)
• TP1 / TP2 hits for both Long and Short positions
• Bullish / Bearish divergences
🎯 Usage
Use the Trend color and label as your momentum compass:
🟢 Bullish → momentum dominated by buyers
🔴 Bearish → sellers in control
🟣 Lateral → wait for confirmation
⸻
Designed for traders who want precision, speed, and clarity in one adaptive oscillator.
Version 7.2 — Miggy NeoWave Series
Adaptive Entry: RSI & SMA With DebounceShort description
Adaptive long-entry timing using RSI on a higher timeframe and an SMA ±band price filter, with optional no-repaint confirmation and debounce.
Long description
What it does
This study helps time long entries by combining:
RSI on a selected higher-timeframe (HTF), and
A price filter relative to an SMA ± band on the same HTF,
plus a debounce so you don’t get rapid-fire signals. It includes an optional “confirm on HTF close” mode to avoid repainting.
Core logic (long bias only)
Compute HTF RSI and HTF SMA for the chart symbol (no external market filter).
Build an upper/lower band around the SMA using a user-defined fraction (e.g., 0.05 = ±5%).
Entry state = true when:
RSI(HTF) is below the threshold (oversold/weak),
Price (HTF) is inside the band (or within your chosen price-vs-band rule),
(Optional) the signal is confirmed on HTF bar close (no-repaint).
Cross event is the first bar where the state turns true and at least N bars have passed since the previous signal (debounce).
Why it doesn’t repaint (when enabled)
All HTF values are requested with lookahead_off.
With Confirm on HTF bar close checked, a signal is only accepted after the HTF candle closes.
Inputs
Signal timeframe (HTF) – default 1D.
RSI length / RSI threshold – e.g., 14 / 45.
SMA length – default 50.
SMA ± band (fraction) – e.g., 0.05 → ±5% around SMA.
Confirm on HTF bar close – toggles no-repaint behavior.
Debounce: min bars between signals – e.g., 3.
Price filter vs band – choose one:
Inside band only (strict)
Inside or below LB (lenient / value)
Re-entering band from below (pullback into strength)
Show SMA ± band fill / Show debug label – visuals.
Visuals
HTF SMA with shaded ±band.
A small ▲ below bars on Cross events (debounced first-true signals).
Optional compact debug label (HTF, RSI, distance to SMA, debounce setting).
Alerts
BUY (State) – stays true while conditions are met (can remain on across multiple bars).
Use when you want continuous awareness that the setup is live.
BUY (Cross event) – fires once on the first bar the state turns true and debounce is satisfied.
Use when you want a single, actionable “go” ping.
Best practices
HTF = 1D on intraday charts works well for swing entries.
Tune RSI threshold: lower values = deeper pullbacks, fewer signals.
Tune band fraction: 0.03–0.08 often balances sensitivity vs. whipsaw.
If you trade ETFs that only alert in regular hours, consider running alerts on a 24/5 proxy (e.g., ES1!/SPCFD) and executing on your ETF.
Limitations
Long-only logic by design.
Signals depend on HTF selection and data availability for your symbol/feed.
Extended-hours alerting depends on the instrument (ETFs are often RTH-only on TV).
Suggested default settings
HTF: 1 day
RSI: 14, Threshold 45
SMA: 50
Band fraction: 0.05
Confirm on HTF close: ON
Debounce: 3 bars
Price filter: Inside or below LB
Show band fill & debug label: ON
How to use (quick start)
Add to chart and pick your HTF.
Set RSI threshold (start with 45).
Choose your band fraction (start with 0.05).
Keep Confirm on HTF close ON if you want no-repaint signals.
Create an alert:
BUY (Cross event) for one-shot actionable alerts, or
BUY (State) for persistent “setup is active” monitoring.
Tags / categories
Category: Indicators → Trend / Momentum
Tags: RSI, SMA, Pullback, Mean Reversion, Swing, Higher Timeframe, Debounce, No-Repaint






















