Buscar en scripts para "富时中国50期指"
UO_30-50-70Ultimate Oscillator with bands present at the 30, 50, and 70 pt levels.
Personally use this every time, created a script to hard code these lines so I wouldn't need to redraw them all the time.
Enjoy
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.
ATR Trend & Chop Dashboard (Overlay)# ATR Trend & Chop Dashboard (Overlay)
**Version:** 3
**Script Type:** Overlay (Dashboard)
**Pine Script Version:** v6
---
## SUMMARY
The ATR Trend & Chop Dashboard identifies volatility regimes and directional bias directly on the active chart. It combines ATR expansion and contraction behavior with EMA slope detection to help traders determine whether the market is trending, neutral, or choppy.
This version is designed for clarity and precision, with background colors disabled by default for clean chart visibility. A live dashboard displays the current state, ATR values, and ratio data in real time.
---
## FUNCTION
The indicator measures volatility and direction using two main components:
1. **ATR Regime Detection**
Calculates the ratio between the current ATR and its smoothed average (SMA of ATR).
- When the ATR expands beyond the upper threshold, volatility is considered trending.
- When it contracts below the lower threshold, the market is entering compression or chop.
2. **Directional Filter (EMA Slope)**
Measures the slope of a 50-period EMA across a short lookback window to confirm meaningful directional bias.
The ATR regime is validated only when the EMA slope supports trend direction.
3. **Classification**
- **TREND:** ATR expanded and EMA showing directional slope.
- **CHOP:** ATR suppressed and EMA showing minimal slope.
- **NEUTRAL:** Conditions between those thresholds.
---
## LOGIC
| Condition | Description |
|------------|-------------|
| TREND | Volatility expanded and direction confirmed by EMA slope. |
| CHOP | Volatility compressed with no strong directional structure. |
| NEUTRAL | Transitional condition near baseline ratio. |
The script dynamically adapts across instruments and timeframes.
---
## INPUTS
**Core Settings**
- ATR timeframe (default: 5-minute, adjustable to any timeframe).
- ATR length and smoothing period (SMA length).
- Trend threshold (ratio above/below 1.0).
**Directional Filter**
- EMA length (default: 50).
- Slope lookback (default: 3 bars).
- Minimum EMA slope as a fraction of ATR (default: 0.05).
**Visual Options**
- Show background colors (off by default).
- Dashboard position (Top Left, Top Right, Bottom Left, Bottom Right).
- Show status label (optional on-chart tag with current ATR timeframe and state).
---
## HOW TO USE
1. Apply the indicator to the timeframe where you plan to analyze entries and exits.
The default ATR timeframe is **5-minute**, but it can be changed in settings to match your preferred analysis timeframe.
2. Use the dashboard and background color states as environmental filters:
- TREND = Favor continuation or breakout strategies.
- CHOP = Favor mean reversion or avoid overtrading.
- NEUTRAL = Transition zone; remain patient or reduce size.
3. Combine the dashboard signals with VWAP, EMA crossovers, or ORB range tools for confirmation and higher confluence.
---
## ALERTS
The following alerts are available for automation or visual triggers:
- ATR TREND Regime
- ATR CHOP Regime
- ATR NEUTRAL Regime
Each alert provides clear notification when volatility or structure changes.
---
## COMPLIANCE NOTES
- Background colors are disabled by default to maintain chart readability.
- Default ATR timeframe is **5-minute**, but this value can be modified in the inputs menu.
- The script’s logic is original and built specifically to merge ATR-driven volatility structure with directional slope context in a single overlay.
- Description provided here meets TradingView’s publication rules for clarity, purpose, originality, and instructional detail.
---
Мой скрипт//@version=5
indicator("Fibonacci Yearly Levels – Pro (by Pablo)", overlay=true)
// 1) Фиксация закрытия прошлого года
var float year_close = na
isNewYear = ta.change(year(time)) // true на первом баре нового года
if isNewYear
year_close := close // закрытие последнего бара прошлого года
year_close := nz(year_close, close) // первичная инициализация на истории
// 2) Уровни вверх (базовые + расширения)
up5 = year_close * 1.05
up8 = year_close * 1.08
up13 = year_close * 1.13
up21 = year_close * 1.21
up34 = year_close * 1.34
up54 = year_close * 1.54
up89 = year_close * 1.89 // расширение
up144 = year_close * 2.44 // расширение
up233 = year_close * 3.33 // расширение
// 3) Уровни вниз (симметрично и только позитивные цены)
dn5 = year_close * 0.95
dn8 = year_close * 0.92
dn13 = year_close * 0.87
dn21 = year_close * 0.79
dn34 = year_close * 0.66
dn54 = year_close * 0.46
dn89 = year_close * 0.11 // 1 - 0.89 = 0.11 (ниже -144% и -233% не рисуем — это < 0)
// 4) Плоты уровней (title — константы)
plot(year_close, color=color.yellow, linewidth=2, title="Year Close")
// вверх
plot(up5, color=color.new(color.green, 70), title="+5%")
plot(up8, color=color.new(color.green, 60), title="+8%")
plot(up13, color=color.new(color.green, 50), title="+13%")
plot(up21, color=color.new(color.green, 40), title="+21%")
plot(up34, color=color.new(color.green, 30), title="+34%")
plot(up54, color=color.new(color.green, 20), title="+54%")
plot(up89, color=color.new(color.green, 10), title="+89%")
plot(up144, color=color.new(color.green, 0), title="+144%")
plot(up233, color=color.new(color.green, 0), linewidth=2, style=plot.style_circles, title="+233%")
// вниз
plot(dn5, color=color.new(color.red, 70), title="-5%")
plot(dn8, color=color.new(color.red, 60), title="-8%")
plot(dn13, color=color.new(color.red, 50), title="-13%")
plot(dn21, color=color.new(color.red, 40), title="-21%")
plot(dn34, color=color.new(color.red, 30), title="-34%")
plot(dn54, color=color.new(color.red, 20), title="-54%")
plot(dn89, color=color.new(color.red, 10), title="-89%")
// -144% и -233% не отрисовываем — это отрицательные цены
// 5) Сигналы входов по методике (пробой ±8% с подтверждением)
longEntry = ta.crossover(close, up8) // LONG при пробое +8% снизу вверх
shortEntry = ta.crossunder(close, dn8) // SHORT при пробое -8% сверху вниз
plotshape(longEntry, title="Long Entry", style=shape.triangleup, color=color.lime,
size=size.small, location=location.belowbar, text="LONG")
plotshape(shortEntry, title="Short Entry", style=shape.triangledown, color=color.red,
size=size.small, location=location.abovebar, text="SHORT")
// (опционально — включи алерты)
alertcondition(longEntry, title="LONG entry (+8%)", message="LONG: price crossed above +8% yearly level")
alertcondition(shortEntry, title="SHORT entry (-8%)", message="SHORT: price crossed below -8% yearly level")






















