Combined 3-Bar Pattern + Price Oscillator Zero-Cross (Shading)These signals are provided for educational purposes only and do not constitute financial advice or a recommendation to buy or sell.
Göstergeler ve stratejiler
Universal Bot [AVATrade - PineConnector Ready]//@version=5
strategy("Universal Bot ", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// === INPUTS === //
emaLen = input.int(20, title="EMA Lengte")
rsiLen = input.int(14, title="RSI Lengte")
macdFast = input.int(12, title="MACD Fast")
macdSlow = input.int(26, title="MACD Slow")
macdSig = input.int(9, title="MACD Signaallijn")
atrLen = input.int(14, title="ATR Lengte")
riskUSD = input.float(5, title="Risico per trade ($)")
accountUSD = input.float(500, title="Accountgrootte ($)")
riskReward = input.float(2.0, title="Risk-Reward ratio")
trailingPercent = input.float(0.5, title="Trailing stop (%)")
// === INDICATOREN === //
ema = ta.ema(close, emaLen)
rsi = ta.rsi(close, rsiLen)
= ta.macd(close, macdFast, macdSlow, macdSig)
atr = ta.atr(atrLen)
// === SIGNALEN === //
longCond = ta.crossover(close, ema) and macdLine > signalLine and rsi > 55
shortCond = ta.crossunder(close, ema) and macdLine < signalLine and rsi < 45
// === POSITIEBEREKENING === //
entryPrice = close
stopLoss = atr
takeProfit = atr * riskReward
lotRaw = riskUSD / stopLoss
lotFinal = lotRaw / 100000 // omzetten naar standaard lot voor brokers
lotStr = str.tostring(lotFinal, "#.####")
slLong = entryPrice - stopLoss
tpLong = entryPrice + takeProfit
slShort = entryPrice + stopLoss
tpShort = entryPrice - takeProfit
// === TRAILING STOP === //
trailOffset = entryPrice * trailingPercent / 100
trailPips = trailOffset / syminfo.mintick
// === STRATEGIE EN ALERTS === //
if (longCond)
strategy.entry("LONG", strategy.long)
strategy.exit("TP/SL LONG", from_entry="LONG", limit=tpLong, stop=slLong, trail_points=trailPips, trail_offset=trailPips)
alert_message = '{ "action": "buy", "symbol": "' + syminfo.ticker + '", "lot": ' + lotStr + ', "sl": ' + str.tostring(slLong) + ', "tp": ' + str.tostring(tpLong) + ', "trail": ' + str.tostring(trailingPercent) + ' }'
alert(alert_message, alert.freq_once_per_bar)
if (shortCond)
strategy.entry("SHORT", strategy.short)
strategy.exit("TP/SL SHORT", from_entry="SHORT", limit=tpShort, stop=slShort, trail_points=trailPips, trail_offset=trailPips)
alert_message = '{ "action": "sell", "symbol": "' + syminfo.ticker + '", "lot": ' + lotStr + ', "sl": ' + str.tostring(slShort) + ', "tp": ' + str.tostring(tpShort) + ', "trail": ' + str.tostring(trailingPercent) + ' }'
alert(alert_message, alert.freq_once_per_bar)
// === VISUEEL === //
plot(ema, title="EMA", color=color.orange)
plotshape(longCond, title="BUY", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCond, title="SELL", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
Market Structure🏗️ Market Structure Indicator for TradingView (Pine Script v6)
Overview:
The Market Structure indicator is a robust tool for identifying swing highs and swing lows across multiple structural levels:
🟤 Short-Term Swings
🟠 Intermediate-Term Swings
🟢 Long-Term Swings
It helps traders visually interpret market structure by detecting confirmed pivot points and promoting them through a hierarchical system. This provides a clear picture of trend direction, breakouts, and reversals.
⚙️ Features and Functionality:
✅ Multi-level Swing Detection:
The indicator promotes confirmed swing points from short-term to intermediate and long-term levels using a structured algorithm.
✅ Full Customization:
Toggle visibility of each swing level independently.
Choose custom colors for short, intermediate, and long-term swings.
✅ Transparent and Commented Logic:
The code contains well-structured functions for identifying and confirming swing highs and lows.
Label arrays are used for precise control over swing detection and display.
✅ Detailed and Open Source Code:
Every function is thoroughly explained with inline comments.
Designed to be easy to understand, modify, and extend — perfect for learning or integrating into more advanced systems.
📜 Open and Documented Source Code
The script is entirely open-source, written in Pine Script v6, and includes full documentation inside the code itself. Key sections include:
🔧 Input settings and visual configuration
🧠 Swing detection and confirmation methods
🔁 Promotion logic between structure levels
📈 Real-time label drawing on each bar
Everything is fully accessible and explained — no obfuscation, no hidden logic.
ETH Scalper Version 1.0Ethereum Scalper across various timeframes. Uses ATR for TP and SL. Scalps based on volume.
MB Notes + Custom ATR + EMA✅ MB Notes Panel (Top-Right)
Manually input and display your personal market bias notes:
E-MB, V-MB, and C-MB represent different timeframe-based market biases.
Customizable labels and values let you align your plan across multiple sessions.
Table is visually padded lower on screen for better chart visibility.
✅ Custom ATR Monitor (Bottom-Right)
Track Average True Range (ATR) across two selectable timeframes:
Choose from presets like 5m, 30m, 1H, 4H, Daily, Weekly, etc.
Gives you an instant read on volatility trends from multiple perspectives.
✅ Dynamic Triple MA Overlay
Plot three flexible moving averages with full control:
Set custom length, source (close, high, low, etc.), and type (EMA or SMA) for each.
MA Crossover with Dots📘 Strategy Description – Moving Average Crossover with Dot Signals
This indicator is based on a Simple Moving Average (SMA) crossover strategy, which is a classic method to identify trend changes and potential buy/sell signals in the market.
📊 Core Logic:
It calculates two SMAs:
Fast SMA: 20-period moving average (short-term trend)
Slow SMA: 50-period moving average (longer-term trend)
✅ Buy Signal (Green Dot):
When the Fast SMA crosses above the Slow SMA, a Buy signal is generated.
This suggests bullish momentum or the start of an uptrend.
❌ Sell Signal (Red Dot):
When the Fast SMA crosses below the Slow SMA, a Sell signal is generated.
This suggests bearish momentum or the start of a downtrend.
📍 Visual Representation:
The Buy and Sell signals are plotted as colored dots at different levels:
Green dot = Buy
Red dot = Sell
The dots are plotted at fixed vertical positions in a separate panel below the chart for better clarity and to avoid overlap.
EMA + MACD 综合信号带止盈止损//@version=5
indicator("EMA + MACD 综合信号带止盈止损", overlay=true)
// 输入参数
fastEMA = input.int(12,"快速EMA")
slowEMA = input.int(26,"慢速EMA")
signalEMA = input.int(9,"MACD信号")
mainEMA = input.int(50,"趋势EMA")
rsiLen = input.int(14,"RSI周期")
rsiOverB = input.int(70,"RSI超买")
rsiOverS = input.int(30,"RSI超卖")
stopATR = input.float(1.5,"止损ATR倍数")
// 核心指标计算
emaTrend = ta.ema(close, mainEMA)
= ta.macd(close, fastEMA, slowEMA, signalEMA)
rsiVal = ta.rsi(close, rsiLen)
atrVal = ta.atr(14)
// 买卖条件
longCond = (close > emaTrend) and (macdLine > signalLine) and (rsiVal < rsiOverS)
shortCond = (close < emaTrend) and (macdLine < signalLine) and (rsiVal > rsiOverB)
// 画买入卖出点
plotshape(longCond, title="Buy", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCond, title="Sell", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// 止损线(举例为ATR止损)
longStop = close - stopATR * atrVal
shortStop = close + stopATR * atrVal
plot(longCond ? longStop : na, color=color.orange, style=plot.style_linebr, linewidth=2, title="多头止损")
plot(shortCond ? shortStop : na, color=color.purple, style=plot.style_linebr, linewidth=2, title="空头止损")
// 主要参考线
plot(emaTrend, title="趋势EMA", color=color.blue)
Time CyclesThese are ICT market time cycles based on the idea that London starts at 3:30am (EST) and continues until 7am. NYAM is then from 7am-11:30am. NYPM from 11:30-4pm. Each of these sessions is broken into 90minute cycles which are also broken into 30minute cycles.
ETH Scalper Version 1.0ETH Scalper Version 1.0 - Uses Volume pressure to gauge quick scalping entries. TP and SL based on ATR.
MB Notes + Custom ATR + EMA✅ Features
✅ MB Notes Panel (Top-Right Table):
Manually enter and display your personal market bias notes (E-MB, V-MB, C-MB) directly on the chart. Perfect for keeping directional context or tracking bias across multiple sessions.
✅ Custom ATR Display (Bottom-Right Table):
Displays two ATR values from different timeframes of your choice. Select from a dropdown menu (e.g., 30min, 1H, 4H, Daily) to assess volatility at multiple levels.
✅ Triple MA Overlay:
Includes three fully customizable moving averages:
Choose length, source (close, high, low, etc.), and type (EMA or SMA) for each.
Plots them directly on the price chart for fast trend tracking.
FG_Index v1.5.3 Pro (Multi-Asset Time4H) === FG_Index 4H Sentiment Indicator ===
// 多品种4小时情绪评分指标,适用于黄金、比特币、美股、原油等。
// 分数范围 0~100:
// - score > 70:贪婪,考虑减仓
// - score < 30:恐慌,关注低吸
// - score > 80:极度贪婪,注意风险
// - score < 20:极度恐慌,可能超卖
// 建议搭配趋势/结构指标一起使用
// 图表自动显示主因子解释,辅助判断情绪来源
//
// === English Usage ===
// FG_Index is a 4H sentiment score indicator for multi-assets (Gold, BTC, SPX, Oil, etc.).
// Score scale: 0–100
// - score > 70: Greed – consider reducing positions
// - score < 30: Fear – potential buy zone
// - score > 80: Extreme greed – risk warning
// - score < 20: Extreme fear – may be oversold
// Recommended to use with trend/structure filters
// Top factor contributions are displayed on chart
KutU @AnlATAbiliyormuyumThis indicator shows support and resistance zones for both long-term and short-term periods. The larger boxes represent zones determined by the long-term timeframe, while the smaller boxes correspond to zones defined by the short-term timeframe. Stay in peace and enjoy.
Momentum BandsMomentum Bands indicator-->technical tool that measures the rate of price change and surrounds this momentum with adaptive bands to highlight overbought and oversold zones. Unlike Bollinger Bands, which track price, these bands track momentum itself, offering a unique view of market strength and exhaustion points. At its core, it features a blue momentum line that calculates the rate of change over a set period, an upper red band marking dynamic resistance created by adding standard deviations to the momentum average, a lower green band marking dynamic support by subtracting standard deviations, and a gray middle line representing the average of momentum as a central anchor. When the momentum line touches or moves beyond the upper red band, it often signals that the market may be overbought and a pullback or reversal could follow; traders might lock in profits or watch for short setups. Conversely, when it drops below the lower green band, it can suggest an oversold market primed for a bounce, prompting traders to look for buying opportunities. If momentum remains between the bands, it typically indicates balanced conditions where waiting for stronger signals at the extremes is wise. The indicator can be used in contrarian strategies—buying near the lower band and selling near the upper—or in trend-following setups by waiting for momentum to return toward the centerline before entering trades. For stronger confirmation, traders often combine it with volume spikes, support and resistance analysis, or other trend tools, and it’s useful to check multiple timeframes to spot consistent patterns. Recommended settings vary: short-term traders might use a 7–10 period momentum with 14-period bands; medium-term traders might keep the default 14-period momentum and 20-period bands; while long-term analysis might use 21-period momentum and 50-period bands. Visually, background colors help spot extremes: red for strong overbought, green for strong oversold, and no color for normal markets, alongside reference lines at 70, 30, and 0 to guide traditional overbought, oversold, and neutral zones. Typical bullish signals include momentum rebounding from the lower band, crossing back above the middle after being oversold, or showing divergence where price makes new lows but momentum doesn’t. Bearish signals might appear when momentum hits the upper band and weakens, drops below the middle after being overbought, or price makes new highs while momentum fails to follow. The indicator tends to work best in mean-reverting or sideways markets rather than strong trends, where overbought and oversold conditions tend to repeat.
Zone Levels (Final 888)📌 Zone Levels Indicator – Buy & Sell Zones with Alerts
This script plots clearly defined buy and sell zones on the chart, with custom top/bottom price inputs for each zone. Ideal for traders who want to visually track high-probability reversal or entry areas.
✅ Key Features:
🔧 Fully customizable zones via settings
📏 Extends zones 240 bars to the left and 40 bars to the right
🏷️ Auto-labeled zones with proper price formatting (e.g. 3385–3390)
🔔 Built-in alerts when price enters any zone
🎯 Mid-zone line for key reference level
🟢 Buy Zones:
Buy Z1: 3415–3412
Buy Z2: 3405–3402
Buy Z3: 3400–3397
Buy Z4: 3390–3385
🔴 Sell Zones:
Sell Z1: 3430–3431
Sell Z2: 3434–3436
Sell Z3: 3439–3441
Sell Z4: 3445–3450
This indicator helps discretionary traders who rely on clean visual zones and precise price levels to act confidently without clutter.
Feel free to modify zone values in the settings to match your own strategy or market conditions.
Remark: This script created by AI
EMA/MA Unified with Pivot S/RTitle: Moving Average Combined with Pivot Point Support and Resistance Strategy
Description: This indicator combines two powerful trading concepts: 1. Moving Average Crossover; 2. Pivot Point Support and Resistance. It provides traders with a versatile tool.
Features:
Moving Average Crossover: Use moving average groups to identify trend trends. Contains multiple EMAs and one SMA to highlight short-term, medium-term and long-term market trends.
Detection of Golden Cross and Dead Cross: to predict market trends.
Support and Resistance: Dynamically identify key support and resistance levels based on pivot points. Configurable lookback period for left and right pivot points to suit different trading styles and time frames. Fast right pivot point option captures recent market volatility and optimizes support and resistance areas.
Customization:
Traders can adjust the length of the moving average according to their trading strategy. The support and resistance display can be toggled to get a clearer chart as needed.
Trend Analysis:
When EMA240S crosses EMA1440, a weak golden cross (X symbol) is drawn, suggesting that the main trend may turn to a bullish trend; when EMA720 crosses EMA1440, a strong golden cross (upward triangle) is drawn, suggesting that the main trend is likely to turn to a bullish trend.
When EMA240S crosses EMA1440, a weak death cross (X symbol) is drawn, suggesting that the main trend may turn to a bearish trend; when EMA720 crosses EMA1440, a strong death cross (downward triangle) is drawn, suggesting that the main trend is likely to turn to a bearish trend.
Visualization:
Moving averages are displayed in different color to depict the strength and direction of the trend.
Support and resistance levels are drawn in different color, enhancing the visual appeal and readability of key price levels.
This comprehensive indicator is designed for traders who seek to combine the accuracy of support and resistance analysis with the trend-following ability of moving average crossovers, providing a powerful basis for making informed trading decisions.
——————————————————————————————————————————————————————————
标题:
移动平均线结合轴枢点支阻位策略
描述:
该指标融合了两个强大的交易概念:1. 移动平均线交叉;2. 轴枢点支撑压力位。为交易者提供了一个多功能工具。
特点:
移动平均线交叉: 利用均线组识别趋势走势。包含多条EMA和一条SMA,以突出显示短期、中期和长期的市场趋势。
检测金叉和死叉:以预示市场趋势。
支撑位和阻力位: 基于枢轴点动态识别关键支撑位和阻力位。 可配置左右枢轴点的回溯期,以适应不同的交易风格和时间框架。 快速右轴点选项可捕捉近期市场波动并优化支撑位和阻力位区域。
自定义:
交易者可以根据自己的交易策略调整移动平均线的长度。 支撑位和阻力位显示可以切换,以便根据需要获得更清晰的图表。
趋势研判:
当EMA240S上穿EMA1440时,绘制弱金叉(X符号),暗示主趋势可能转为多头趋势;当EMA720上穿EMA1440时,绘制强金叉(向上三角),暗示主趋势大概率转为多头。
当EMA240S下穿EMA1440时,绘制弱死叉(X符号),暗示主趋势可能转为空头趋势;当EMA720下穿EMA1440时,绘制强死叉(向下三角),暗示主趋势大概率转为空头。
可视化:
移动平均线以不同的颜色显示,以描绘趋势的强度和方向。
支撑位和阻力位以不同的颜色绘制,增强了关键价格水平的视觉吸引力和可读性。
这款综合指标专为寻求将支撑位和阻力位分析的精准性与移动平均线交叉的趋势跟踪能力相结合的交易者而设计,为做出明智的交易决策提供了一个强大的判断依据。
Time Block with Current K-Line TimeTiltle:
Time Block and Current K-line Time
Core Functions:
1. This indicator provides traders with a powerful time analysis tool to help identify key time nodes and market structures. Generally speaking, the duration of a market trend is a time block
2. Multiple time zone support, supporting five major trading time zones: Shanghai, New York, London, Tokyo, and UTC, and adaptive time display in the selected time zone
3. Time block visualization: select the time block length according to the observation period, and draw a separator line at the time block boundary
4. Real-time time display: current K-line detailed time (year/month/day hour: minute week)
5. Future time prediction, the next time block starts at the future dividing line, and the countdown function displays the time to the next block, which is used to assist in judging the remaining duration of the current trend
Usage Scenarios:
Day trading: Identify trading day boundaries (1-day blocks)
Swing trading: Grasp the weekly/monthly time frame conversion (1-week/1-month blocks)
Long-term investment: Observe the annual market cycle (1-year blocks)
Cross-time zone trading: Seamlessly switch between major global trading time zones
——————————————————————————————————————————————————————————
标题:
时间区块与当前K线时间
核心功能:
1. 本指标为交易者提供强大的时间分析工具,帮助识别关键时间节点和市场结构,通常而言,一段行情持续的时间为一个时间区块
2. 多时区支持,支持上海、纽约、伦敦、东京、UTC五大交易时区,自适应所选时区的时间显示
3. 时间区块可视化:根据观测周期选择时间区块长度,在时间区块边界绘制分隔线
4. 实时时间显示:当前K线详细时间(年/月/日 时:分 星期)
5. 未来时间预测,下一个时间区块开始位置显示未来分割线,倒计时功能显示距离下个区块的时间,用于辅助判断当前趋势的剩余持续时间
使用场景:
日内交易:识别交易日边界(1日区块)
波段交易:把握周/月时间框架转换(1周/1月区块)
长期投资:观察年度市场周期(1年区块)
跨时区交易:无缝切换全球主要交易时区
Candele Heikin Ashi Calculate Heikin Ashi Body (HKAB) and SMA Delta and send to the Graph the Heikin Ashi Body value if SMA Delta and HKAB are positive
Bottom hunterBottom hunter Indicator is a technical analysis tool designed to identify potential low points (bottoms) in the market where price reversals may occur.it detects buy signals when momentum shifts upward from market lows. This helps traders spot high-probability entry points for bullish reversals. The indicator displays clear visual cues on the chart (e.g., green triangles) marking these bottoms, enabling better timing of trades. It is useful for recognizing early reversal zones and improving market entry decisions.
zSph x Larry Waves Wave Degree TimingElliott Waves are fractal structures governed by time. The categorization of time in relation to Elliott Wave is named ‘Wave Degree’.
All waves are characterized by relative size called degree. The degree of a wave is determined by its size and position relative to lesser waves (smaller time and size), corresponding waves (similar time and size) and encompassing waves (greater time and size).
Elliott named 9 degrees (Supercycle – Subminuette).
Elliott also stated the Subminuette degree is discernable on the HOURLY chart.
# Concept
BINANCE:BTCUSDT
Degree is governed by Time yet it is not based upon time lengths (or price lengths), rather it is based on form and structure – a function of both price and time.
The precise degree may not be identified in real time, yet the objective is to be within +/- 1 standard deviation of the expected degree to be aware of the overall market progression.
Understanding degree helps in the identification of when an impulse or a correction is nearing completion and to be aware of the major pivot in price action to occur as a result of the completion of a major expansion or major retracement and be aware of when major pivots in price relating to major expansions and major retracements by managing expectations from a time perspective.
*Important to understand* : If price is currently in a Wave Degree Extension or a Very Complex Correction, the wave degree timings will be distorted (extended in time).
Example: A Cycle typically lasts a few years - yet can last a decade(s) in an Extension.
It’s best to keep the analysis on the Minute/Minuette timeframe to manage timing expectations yet always refer back to the Higher Time Frame Structure.***
# Correct Usage
BEFORE PLACING THE ANCHOR TO DISPLAY ZONES:
Completion of prior wave structure should be completed and there needs to be confirmation the next wave structure is in progression, such as a change in market structure.
Anchor :
Best to anchor on the higher time frame to ensure you always have the anchor point defined when you scale down/move down in the timeframes.
Ensure the anchor point is placed at the termination of a structure/beginning of a new structure (Generally they will be price extremes – extreme highs and lows)
Zones :
Minimum Zones : The minimum amount of time of completion for a single wave structure to complete for a degree.
Average Zones : The average amount of time of completion for a single wave structure to complete for a degree.
Maximum Zones : The general maximum amount of time of completion for a single wave structure to complete for a degree.
Wave Degree Timeframe Analysis :
Higher-Level Degrees (Primary, Intermediate, Minor) - Utilize on H4+ timeframe
Lower-Level Degrees (Minute, Minuette, Subminuette) – Utilize on 15M to H4 timeframe
Micro-Level Degrees (Micro and Submicro) – Utilize on timeframes less than 15M
(There is a chart in the settings you can toggle on/off that reiterates this as well.)
# Settings
Y-Axis Offset :
It is a scale relative to the asset being viewed. Example:
- If using on Bitcoin, Bitcoin moves on average $1,000 of dollars up or down (on the Y-Axis), therefore it would be relevant to use values with 4 nominal values to offset it correctly to view easier on the chart as needed.
- If using on SP500, SP500 moves on average $50-100 of dollars up or down (on the Y-Axis), therefore it would be relevant to use values with 2 or 3 nominal values to offset it correctly to view easier on the chart as needed.
Extend :
This option allows to extend lines for the borders of the zones towards price action.
US Macro Indicators (CPI YoY, PPI YoY, Interest Rate)US Macro Indicators (CPI YoY, PPI YoY, Interest Rate)
This indicator overlays the most important US macroeconomic trends for professional traders and analysts:
CPI YoY (%): Tracks year-over-year change in the Consumer Price Index, the main measure of consumer inflation, and a core focus for Federal Reserve policy.
PPI YoY (%): Shows year-over-year change in the Producer Price Index, often a leading indicator for future consumer inflation and margin pressures.
Fed Funds Rate (%): Plots the US benchmark interest rate, reflecting the real-time stance of US monetary policy.
Additional Features:
Key policy thresholds highlighted:
2% (Fed’s formal inflation target)
1.5% (comfort floor)
3% and 4% (upper risk/watch zones for inflation)
Transparent background shading signals elevated inflation zones for quick visual risk assessment.
Works on all asset charts and timeframes (macro data is monthly).
Why use it?
This tool lets you instantly visualize inflation trends versus policy and spot key macro inflection points for equities, FX, and rates. Perfect for anyone applying macro fundamentals to tactical trading and investment decisions.
Candle Revers Indicator by MathbotThe Candle Reverse is a universal indicator designed to detect potential reversal candles as they form on the market. It analyzes candle structure, wicks, and body ratios to highlight key moments when price may be preparing to change direction.
🔁 Suitable for crypto, forex, indices, and commodities — works on any market and any timeframe.
✅ Great for spotting short-term turning points
✅ Can be used alone or as part of your trading system
✅ Clear visual alerts for fast and confident decisions
📺 Want to learn how to use it effectively?
We’ve created a full video guide on our YouTube channel.
🛠 If you're interested in developing your own bot or custom indicator, visit our official website — all the details are there:
🌐 www.mathbot-ea.pro