Penunjuk dan strategi
EMA 9EMA 9 is an exponential moving average you can use in any time frame on any market or symbol. It's a 9 period average
Price‑EMA Z‑ScoreThis indicator calculates the delta between price and an ema and then goes to calculate zscore of this
EMA + cRSI + Multi-TF FilterDescription:
This strategy uses a combination of EMA (Exponential Moving Average) trend confirmation logic with visual trade markers to aid manual trading decisions. It compares the EMA(10), EMA(20), and EMA(59) values to determine trend direction and only enters a new position if no other position is currently open.
A LONG entry is signaled when EMA(10) and EMA(20) are both above EMA(59) and rising.
A SHORT entry is signaled when EMA(10) and EMA(20) are both below EMA(59) and falling.
Positions are marked with "LONG" or "SHORT" labels on the chart at the time of entry.
"EXIT" is displayed when the current trade is closed.
Trades are closed based on a predefined maximum loss value (maxLoss).
Only one trade can be active at a time, preventing overlapping positions.
This script is built for manual confirmation and enhanced visual clarity, making it ideal for discretionary traders looking to follow structured entry/exit rules.
QuickPipsOne [Fully Locked]Improved function syntax
Better type support
Compatibility with newer features
SH Vertical LinesSH Vertical Lines for specific of the day which is 2am, 6am, 10am, 2pm, 6pm, and 10pm
Koin AlgoThis strategy looks at previous daily high and low to see if there is a closure above or below and will take a trade according to that. You input the max risk you want to take per trade and it goes for a 1:1 RR each time.
Cross-Exchange BTC Volume[nakano]## Cross-Exchange BTC Volume
### Overview 📊
This indicator aggregates Bitcoin (BTC) volume from multiple major cryptocurrency exchanges in real-time and displays it as a stacked column chart. Additionally, it shows a label on the right side of the chart detailing the latest volume from each exchange and its percentage сьогодніs total market volume, helping to visually grasp market liquidity and trading concentration.
### Main Features ✨
* **Multi-Exchange Volume Aggregation**: Sums up the volume from major BTC/USD and BTC/USDT pairs on Binance, Coinbase, Bybit, Kraken, Bitstamp, Bitfinex, Gemini, HTX (formerly Huobi), and KuCoin, as well as BTC/JPY pairs on Bitflyer, Binance, Kraken, and Bitfinex.
* **Stacked Volume Chart**: Displays the volume from each exchange as a color-coded stacked column chart, allowing for an at-a-glance understanding of the overall volume composition.
* **Detailed Volume Label**: Shows a text label on the right side of the chart with the **latest volume** from each exchange (rounded to one decimal place, formatted as "0.x" if less than 1, or with thousand separators if 1 or greater) and its percentage of the current total volume. This label can be toggled on/off in the settings.
* **Dynamic Updates**: Volume data updates according to the chart's timeframe.
### What it Displays 📈
* **Stacked Volume Chart (Lower Pane)**:
* Volume from each exchange is displayed in a color-coded stacked format. The chart legend indicates which color corresponds to which exchange group (e.g., "Cumulative: Sum below BINANCEUSDT"). Volumes are stacked from the bottom, with the top border representing the total volume.
* **Detailed Volume Label (Right Side of Chart)**:
* A single text label is displayed on the right side of the chart, showing the volume figures and market share percentages for each exchange (or group).
* This label is updated when calculations are performed on the right edge of the chart (where the latest bars appear). The volume and percentage figures displayed are based on the **latest data** at that point.
* The displayed content is as follows:
* `BINANCE(US)`: Total volume and percentage for Binance USD(T/C) pairs.
* `COINBASE(US)`: Total volume and percentage for Coinbase USD(C) pairs.
* `BYBIT(US)`: Volume and percentage for Bybit USDT pair.
* `KRAKEN(US)`: Total volume and percentage for Kraken USD(T) pairs.
* `BITSTAMP`: Volume and percentage for Bitstamp USD pair.
* `BITFINEX(US)`: Volume and percentage for Bitfinex USD pair.
* `BITFLYER(JP)`: Volume and percentage for Bitflyer JPY pair.
* `BINANCE(JP)`: Volume and percentage for Binance JPY pair.
* `KRAKEN(JP)`: Volume and percentage for Kraken JPY pair.
* `BITFINEX(JP)`: Volume and percentage for Bitfinex JPY pair.
* `OTHER (incl. HTX)`: Total volume and percentage for Gemini (USD), HTX (USDT), and KuCoin (USDT).
### Inputs ⚙️
* **Show Labels**: `true` (checked) to display the detailed volume label, `false` (unchecked) to hide it. Default is `true`.
### How to Use / Use Cases 💡
* Understand which exchanges are experiencing active BTC trading.
* Check which exchange's volume reacts алкоголь (significantly) to specific news or events.
* Observe changes in volume share among exchanges across different time zones (e.g., Asia, Europe, US sessions).
* Analyze increases/decreases in overall market volume and the contribution of each exchange.
### Notes 📝
* This indicator is written in `//@version=6`.
* Volume data is sourced from symbols provided by TradingView for each exchange. Data may become unavailable due to changes in exchange APIs, symbol names, etc.
* A single detailed volume label is displayed, updating to reflect the latest situation as the chart updates. Its content is triggered to update based on the **latest volume data** when bars in the most recent part of the chart are calculated.
* The source code is subject to the terms of the Mozilla Public License 2.0.
---
**© nakano**
Asia Opening Range [fjk]Draws a box based on a timeframe and highs/lows for that timeframe with a few other options available to customise the box itself.
MPA AI v4 Adaptive Volatility-Based Trend Strategy# 🔍 MPA AI v4 – Adaptive Volatility-Based Trend Strategy
> Invite-Only | Designed for 15m Crypto Perpetuals | Dynamic TP/SL | Real-Time Market Structure Engine
---
## 📘 What Is MPA AI v4?
**MPA AI v4** is an advanced invite-only strategy specifically designed for trading crypto perpetual futures on 15-minute charts. It intelligently adapts to market conditions in real-time using a blend of volatility measurements, structural logic, and multi-layered trend confirmation.
Unlike conventional static systems, MPA AI v dynamically reconfigures all its core parameters—including EMAs, ADX thresholds, SL/TP levels, and Fibonacci extensions—based on the current volatility regime. It is built for intraday traders who seek precision, control, and intelligent trade automation.
---
## ⚙️ Core Mechanics and Logic
MPA AI v4 is composed of several synchronized modules:
| Module | Role |
| ------------------- | ---------------------------------------------------------- |
| EMA Short/Long | Dynamically determines trend direction and momentum |
| EMA Slope | Filters out weak or sideways markets |
| ADX (dynamic) | Confirms valid directional strength |
| Volatility Ratio | Drives regime switching for all key parameters |
| ATR + Fib Extension | Dual logic for conservative TP placement |
| Time-Based Exit | Ensures all trades close within 24 hours to limit exposure |
All modules respond to volatility conditions in real time, dynamically adjusting their thresholds, behavior, and interactions with one another on a per-candle basis. This ensures the strategy is not just adaptive in name, but functionally reactive to live market shifts—modifying entries, exits, risk profiles, and even filtering sensitivity as the volatility regime changes.
---
## 📊 Volatility Engine: Market Regime Classifier
The strategy classifies market volatility using the formula:
```pine
volatility = ta.atr(14) / ta.sma(ta.atr(14), 40)
```
This creates a dynamic ratio that segments market states into three regimes:
| Regime | Ratio Range | System Behavior |
| ---------- | ----------- | ---------------------------------------------------------------------- |
| High Vol | > 1.5 | Fast EMAs (5/20), wider SL (2.5%), aggressive Fib level (0.5), RR bias |
| Normal Vol | 0.8 - 1.5 | Balanced config (7/24 EMAs, SL \~2.0%, Fib level \~0.4) |
| Low Vol | < 0.8 | Slow EMAs (10/30), tighter SL, conservative TP via Fib (0.3) |
Each regime causes the system to adjust a wide array of parameters including risk thresholds, EMA lengths, ADX sensitivity, and even Fibonacci projection logic. In high volatility, the system prioritizes speed and broader stops, whereas in low volatility, it shifts to tighter risk controls and more conservative entry conditions. This ensures each trade setup is finely tuned to the prevailing market environment, minimizing false signals and optimizing profitability potential across regimes.
---
## 📊 Multi-Stage Trend Validation
Before entering a position, the strategy verifies three simultaneous conditions to ensure high-probability setups and avoid entries during noisy or uncertain price action:
### 1. EMA Alignment
* Price must cross above (or below) a volatility-adjusted short EMA
* Price must remain above (for long) or below (for short) the long EMA
* This ensures that both short-term and medium-term directional bias support the potential trade
### 2. EMA Slope
* Measured slope of the short EMA must exceed a minimum dynamic threshold that adjusts with volatility
* This condition removes false setups in sideways markets and prioritizes trades in trending phases
* The slope threshold itself is scaled relative to price movement and volatility level, making it flexible across market conditions
### 3. ADX Confirmation
* The ADX must be above a dynamic floor (ranging from 22 in low-volatility regimes to 55 in high-volatility)
* This confirms that the trend has sufficient directional energy to warrant an entry
* ADX filtering reduces the chance of entering during choppy, low-momentum phases
Only if **all three filters** are satisfied within the same candle context does the strategy allow a position to be opened. This conservative entry gating significantly reduces overtrading and increases signal reliability.
---
## 🌟 Entry and Exit Logic
| Signal Type | Conditions |
| ----------- | ----------------------------------------------------------- |
| Long | Price > EMA short & long, EMA slope > threshold, ADX valid |
| Short | Price < EMA short & long, EMA slope < -threshold, ADX valid |
These entry signals are only triggered when all conditions are met simultaneously within the same candle context, ensuring trend alignment, directional bias, and strength confirmation are all present. This reduces the chance of entering on noise, fakeouts, or uncertain reversals. By requiring confirmation from price position, EMA angle, and trend strength (ADX), MPA AI v4 filters out low-conviction setups and ensures strategic capital deployment.
### TP Calculation:
* Computes **Fibonacci-based extension** from recent HH/LL range, reflecting structure-based potential
* Calculates **ATR-based projection** using live volatility to estimate expansion capacity
* Selects the more conservative value between the two to avoid overextending profit targets
* This dual-confirmation approach helps maintain a favorable reward/risk profile while avoiding unrealistic expectations
### SL Calculation:
* SL is determined as a volatility-adjusted percentage of entry price (ranging from 2.0% to 2.5%)
* The SL adapts in real-time based on the prevailing volatility regime to maintain proportional risk control
* This dynamic approach reduces overexposure during unpredictable phases
### 24-Hour Exit:
* Any trade left open for more than 24 hours is forcibly closed to avoid indefinite exposure
* A timeout label is plotted on the chart to show that a duration-based exit was executed
* This mechanism acts as a safety net against stagnating trades and unexpected market drift
---
## 📊 Visual Feedback on Chart
| Element | Purpose |
| ------------- | -------------------------------------------------- |
| EMA Lines | Visual trend confirmation (dynamic) |
| TP/SL Labels | Shows price and percent values in real time |
| RR Label | Displays calculated Risk/Reward ratio |
| Info Box | Shows all TP/SL/RR info when a position is active |
| Timeout Label | Indicates when a position closed due to 24h expiry |
---
## 🔮 Recommended Backtest Settings
| Parameter | Value | Rationale |
| --------------- | ----------- | ----------------------------------------- |
| Initial Capital | 100,000 | Reasonable for retail testing |
| Commission | 0.04% | Reflects Binance taker fee |
| Slippage | 2 ticks | Models realistic trade latency |
| Order Size | 100% equity | Full exposure trade per signal |
| Pyramiding | 1 | Prevents overlapping entries |
| Timeframe | 15m | Balances speed and statistical relevance |
| Sample Size | 100+ trades | Meets TradingView's statistical standards |
---
## 🔒 Invite-Only Justification
MPA AI v4 incorporates:
* A real-time volatility modeling engine
* Adaptive EMA/ADX/Fib/ATR interaction
* Smart TP/SL pairing using multi-method projections
* Market structure targeting without repainting
* Controlled time-exposure logic with visual transparency
Unlike typical scripts that simply combine a few public indicators, this strategy constructs a responsive, modular system that recalibrates every major decision dynamically based on changing volatility. Each component—including entries, filters, and exits—communicates and adapts in real time, producing a system that behaves more like a trading engine than a fixed-rule indicator.
Furthermore, its dual TP projection system (Fibonacci + ATR) with volatility-governed decision logic adds sophistication that cannot be achieved by combining open-source tools. The structure-aware, time-limited exits paired with RR-labeled info overlays create a tool that is as visual and instructional as it is operational.
These combined features create an edge that cannot be reproduced via indicator mashups or templates.
Therefore, the Invite-Only model is appropriate and justified under TradingView’s Vendor rules.
---
## ✅ House Rules Compliance Summary
| Criterion | Compliant | Notes |
| --------------------------- | --------- | ----------------------------------------------------- |
| English Description | ✅ Yes | Full technical documentation included |
| No External References | ✅ Yes | All logic explained inside script |
| Realistic Backtest Settings | ✅ Yes | Proper capital, fees, slippage modeled |
| No Misleading Claims | ✅ Yes | No unrealistic returns or guarantees |
| Clear Visual Output | ✅ Yes | RR/TP/SL/Timeout visuals shown during trades |
| Original, Valuable Strategy | ✅ Yes | Multi-layer adaptive engine not replicable via mashup |
---
Bullish Reversal (RSI < 50)Uses MA20 and MA200
Detects bullish reversal patterns:
Hammer (not inverted)
Bullish Engulfing
RSI < 50 at the reversal
Pattern can occur above or below MA200
Prints "REVERSAL" below the candle when all conditions are met
Bullish Reversal (RSI < 50)Uses MA20 and MA200
Detects bullish reversal patterns:
Hammer (not inverted)
Bullish Engulfing
RSI < 50 at the reversal
Pattern can occur above or below MA200
Prints "REVERSAL" below the candle when all conditions are met
% BoxShow 4 Days % Change Like ,
1 Days Ago % Change ,
2 Days Ago % Change ,
3 Days Ago % Change ,
4 Days Age % Change .
Bullish Reversal (Any MA200 Position)Here’s a simple and complete Pine Script v5 for TradingView 15-minute chart that detects bullish reversal candlestick patterns (Hammer and Bullish Engulfing), and prints the word "REVERSAL" below the candle, regardless of whether it's above or below MA200.
FVG Zones (Remove Filled) + AlertA powerful TradingView indicator that automatically identifies Fair Value Gap (FVG) zones, removes them once price “fills” the gap, and sends you crystal-clear alerts specifying Bull or Bear zones—so you never miss a market imbalance.
🔍 Key Features
Automatic FVG Detection
Spots three-candle imbalance patterns (low > high for Bull, high < low for Bear) and draws colored boxes on your chart.
Auto-Remove Filled Zones
Once price enters a gap, the corresponding box is deleted—keeping your chart clutter-free.
Dedicated Alerts
Two separate alert conditions with constant messages:
“Price filled Bull FVG zone”
“Price filled Bear FVG zone”
On-Chart Labels
Enable debugging to display Bull FVG or Bear FVG tags above the triggering candle.
Performance-Tuned
Supports up to 500 active zones without slowing down your chart.
⚙️ Inputs & Customization
Show Alert Labels (Boolean) – Toggle on-chart text labels.
Max Boxes Count (Integer) – Control the maximum number of zones displayed.
🚀 Stay Connected
Love the indicator? Have suggestions or questions? Let’s connect on Twitter:
👉 @BoaBias
Follow for more trading insights, indicator updates, and pro tips!
8/21 EMA Crossover + VWAP + 200 EMA8/21 EMA crossover with VWAP and slow moving average confirmation
CANX Candle I.D© CanxStixTrader
CANX Candle Identification tool
Fully customizable indicator for candle identification.
17 Different Candlestick Formations
The default script has:
Doji
Evening Star
Morning Star
Shooting Star
Hammer
Inverted Hammer
Bearish Harami
Bullish Harami
Bearish Engulfing
Bullish Engulfing
Piercing Line
Bullish Belt
Bullish Kicker
Bearish Kicker
Hanging man
Dark Cloud Cover
Keep it simple
© CanxStixTrader
RTH Session Range Position (0-100) with EMAA Pine Script indicator designed to help traders understand where the current price is located within the Regular Trading Hours (RTH) session range, from 0 (session low) to 100 (session high). It also plots a smoothed EMA of this position to provide insight into momentum or trend during the RTH session.
What the Indicator Does
Defines RTH (Regular Trading Hours):
Start: 9:30 AM
End: 4:00 PM
These are typical US equity market hours.
Tracks the session's high and low during RTH:
sessionHigh and sessionLow update only during RTH.
Calculates position of the current price within the RTH range:
Formula: ((close - sessionLow) / (sessionHigh - sessionLow)) * 100
Result is a percentage:
0 = at session low
100 = at session high
50 = middle of session range
Calculates an EMA of that position (posEMA):
Smooths out the raw position to help visualize momentum within the range.
Plots and table:
Plots pos and posEMA on a separate chart pane.
Adds horizontal lines at key levels (0, 30, 50, 70, 100).
Table shows current values for Position, EMA, and Range.
Visual cues:
bgcolor highlights when pos crosses over or under the EMA — potential momentum shifts.
Alerts:
Cross above/below 50 (session midpoint).
Cross above/below EMA.
How to Use It Effectively
1. Session Strength & Momentum
Position above 70: Price is near session highs — strong upward momentum.
Position below 30: Price is near session lows — strong downward momentum.
Use the EMA of position to filter out noise and identify trends.
2. Breakout or Reversal Detection
Cross above EMA: Momentum may be turning bullish.
Cross below EMA: Momentum may be turning bearish.
These crosses (especially near mid-levels like 50) can hint at session trend shifts.
3. Range Context for Entries
If you're a mean-reversion trader, look for:
Price > 70 + turning down below EMA → possible short.
Price < 30 + turning up above EMA → possible long.
For breakout traders, you might wait for:
Crosses above 70 with EMA support.
Crosses below 30 with EMA resistance.
4. Confirmation Tool
Use this indicator alongside others to confirm:
Whether price action has strength within the day.
Whether breakouts have real momentum or are extended already.
Open-Based Percentage Levelsv2
This is an updated version of my original script.
Changes:
I took off the displacement levels since there served no purpose on this script.
I also fixed it to where the percentage level lines are visible continually throughout the entire trading day. Old version had these lines disappearing.
I also updated the name to better reflect its purpose.
Now only works on 30 min and below as the higher time frames are meaningless. The older version allow higher time frames and the code is open source to adjust as desired
teyo_knn_machine_learningThis library is for creating KNN Machine Learning Signals with different Indicators