Floating Bands of the Argentine Peso (Sebastian.Waisgold)
The BCRA ( Central Bank of the Argentine Republic ) announced that as of Monday, April 15, 2025, the Argentine Peso (USDARS) will float within a system of divergent exchange rate bands.
The upper band was set at ARS 1400 per USD on 15/04/2025, with a +1% monthly adjustment distributed daily, rising by a fraction each day.
The lower band was set at ARS 1000 per USD on 15/04/2025, with a –1% monthly adjustment distributed daily, falling by a fraction each day.
This indicator is crucial for anyone trading USDARS, since the BCRA will only intervene in these situations:
- Selling : if the Peso depreciates against the USD above the upper band .
- Buying : if the Peso appreciates against the USD below the lower band .
Therefore, this indicator can be used as follows:
- If USDARS is above the upper band , it is “expensive” and you may sell .
- If USDARS is below the lower band , it is “cheap” and you may buy .
It can also be applied to other assets such as:
- USDTARS
- Dollar Cable / CCL (Contado con Liquidación) , derived from the BCBA:YPFD / NYSE:YPF ratio.
A mid band —exactly halfway between the upper and lower bands—has also been added.
Once added, the indicator should look like this:
In the following image you can see:
- Upper Floating Band
- Lower Floating Band
- Mid Floating Band
User Configuration
By double-clicking any line you can adjust:
- Start day (Dia de incio), month (Mes de inicio), and year (Año de inicio)
- Initial upper band value (Valor inicial banda superior)
- Initial lower band value (Valor inicial banda inferior)
- Monthly rate Tasa mensual %)
It is recommended not to modify these settings for the Argentine Peso, as they reflect the BCRA’s official framework. However, you may customize them—and the line colors—for other assets or currencies implementing a similar band scheme.
Bänder und Kanäle
CCL INDICATOR V1.2🔷 CCL INDICATOR 1.2 — See the Market with Structure
A powerful mix of mathematical zones, Fibonacci levels, period filters, and session-based logic — all in one clean indicator.
✅ Dynamic support & resistance
✅ Buy/sell signal arrows
✅ Modular: turn features on/off as you like
✅ Alerts, dashboard, and clean visual design
Don’t guess the market — understand it.
Robotic-ATM V6.6 Professional🤖 Robotic-ATM V6.6 Pro - Advanced Multi-Indicator Algorithmic Trading Strategy
Professional algo system combining 4 proven indicators: R-ATM KISS V5 trend detection, LG_TRSpeed momentum analysis, R-ATM Oscillator scoring, WaveTrend wave analysis. Features 3 signal modes (ALL_IMMEDIATE/ALL_SYNC/PARTIAL_SYNC), advanced risk mgmt with stop-loss/profit targets, daily P&L limits, position controls, and volatility filtering. Real-time dashboard tracks trades, win rate, profit/loss, and drawdown. $300/month subscription, 21-day FREE trial, cancel anytime. 3+3 months free when paying quarterly. Educational purposes only. Past performance doesn't guarantee future results. Trading involves substantial risk. Only trade with capital you can afford to lose. Contact: support@robotic-atm.com | robotic-atm.com | Robotic-ATM Inc.
Robotic-ATM V6.6.3/IO🤖 Robotic-ATM V6.6 3.3 IO - Advanced Multi-Indicator Algorithmic Trading Strategy
Professional algo system combining 4 proven indicators: R-ATM KISS V5 trend detection, LG_TRSpeed momentum analysis, R-ATM Oscillator scoring, WaveTrend wave analysis. Features 3 signal modes (ALL_IMMEDIATE/ALL_SYNC/PARTIAL_SYNC), advanced risk mgmt with stop-loss/profit targets, daily P&L limits, position controls, and volatility filtering. Real-time dashboard tracks trades, win rate, profit/loss, and drawdown. $300/month subscription, 21-day FREE trial, cancel anytime. 3+3 months free when paying quarterly. Educational purposes only. Past performance doesn't guarantee future results. Trading involves substantial risk. Only trade with capital you can afford to lose. Contact: sales@robotic-atm.com | robotic-atm.com | Robotic-ATM Inc.
BB & RSI Trailing Stop StrategySimple BB & RSI generated using AI, gets 60% on S&P 500 with the right settings
Base candle boxTitle
Session Candle Box (Customizable) — Pick Any Candle, Any Timeframe, Custom Length
Summary
Draw a fully customizable box from the exact high/low of a specific candle you choose (e.g., the 09:30 5-minute open) and project it for a user-defined duration measured either in source-timeframe candles or by time. The tool is multi-timeframe aware, time zone safe, session-aware, and designed to avoid repainting.
What it does
Targets a specific candle and builds a box using that candle’s high as the top and its low as the bottom.
Lets you select which timeframe the “source candle” belongs to (e.g., define the 09:30 candle on a 5m source while viewing a different chart timeframe).
Offers two ways to pick the candle: by exact session time (HH:MM:SS) or by index-from-session-open (0 = first bar of the session).
Extends the box to the right for a duration defined either by a number of source-timeframe candles (“Candles” mode) or by a time span (“Time” mode).
Keeps drawing stable and non-repainting by anchoring to the confirmed source candle’s timestamp and using time-based coordinates (so no 500-bars-into-the-future errors).
Provides extensive style controls (fill, border, midline, label) and session reset behavior (new box each session/day if desired).
Typical use cases
Opening Range tools (e.g., the 09:30 5-minute candle on equities).
Session kick-off levels for FX/indices (e.g., London or NY open bar on a chosen TF).
“Key event” candles (e.g., first bar after a scheduled release) with a controlled right projection measured in source candles.
Key features
Candle source selection: Choose the timeframe on which the defining candle lives (e.g., 5m, 15m, etc.).
Precise candle targeting: Match by exact session time (HH:MM:SS) or by bar index from session open.
Length modes:
Candles: End after N candles on the source timeframe (robust across mismatched chart TFs).
Time: End after a set duration (e.g., 60 minutes, 240 minutes).
Session-aware: Optionally reset each session/day and lock to only the first qualifying candle in that session.
Time zone safe: Uses the symbol’s exchange time zone by default, with an option to override to any valid IANA/UTC string.
Non-repainting logic: The selected candle is locked on confirmation; the box updates only its right edge according to your length mode and extend setting.
Visual customization:
Fill and border color, width, and style (solid/dashed/dotted).
Optional midline at the box midpoint with independent style.
Optional label placed at the box start.
Extend left and/or keep right edge live.
Dynamic OHLC levels(Day/Week/Month/6M/Year)+Open MarkerThis indicator automatically displays the Open, High, Low, and Close (OHLC) levels from the previous trading period directly on your chart. It's a versatile tool for identifying key support and resistance zones based on historical price action. The indicator offers a unique "Auto" mode that intelligently selects the most relevant time frame (Daily, Weekly, Monthly, 6M, or Yearly) based on your current chart's time frame. Alternatively, you can choose a specific time frame in "Manual" mode.
The indicator is designed to provide traders with clear visual cues for important price levels, helping them make more informed trading decisions. It's a valuable resource for both intraday and swing traders, as these levels often act as significant psychological barriers and turning points in the market.
Key Benefits 🎯
Identifies Key Levels Instantly: Automatically plots crucial support and resistance levels from the previous session, saving you time and effort.
Adaptable & Versatile: The "Auto" mode intelligently adjusts to your chart's time frame, ensuring you always see the most relevant OHLC levels.
Customizable: You have full control over which levels to display (High, Low, Open, Close), their colors, line styles, and thickness.
Visual Clarity: The option to highlight the area between the previous high and low provides a clear visual representation of the past session's range.
Multi-Session Support: It supports both Regular Trading Hours (RTH) and Extended Trading Hours (ETH), with a configurable timezone, making it globally applicable.
Core Features ✨
Dynamic Timeframe Selection:
Auto Mode: Automatically displays previous Day OHLC on intraday charts (e.g., 1-hour), previous Week OHLC on daily charts, and so on.
Manual Mode: Allows you to explicitly choose between previous Day, Week, Month, 6-Month, or Year OHLC levels.
Customizable Visuals:
Show Previous High: Plots the highest price of the previous period.
Show Previous Low: Plots the lowest price of the previous period.
Show Previous Open: Plots the opening price of the previous period.
Show Previous Close: Plots the closing price of the previous period.
Show Current Open Marker Line: A separate line that marks the open of the current period.
Highlight Area: Fills the space between the previous high and low with a customizable color.
Global Trading Support:
Session Mode: Choose to display levels based on Regular Trading Hours, Extended Hours, or both.
Timezone Selection: Configure the session timezone to align with major markets like New York, London, Tokyo, or Kolkata.
Line Styling: Adjust the line thickness, style (Solid, Dashed, Dotted), and transparency for each level to match your chart's aesthetics.
Labels: Toggle on/off text labels that clearly identify each plotted level (e.g., "PDH" for Previous Day High).
Who is this indicator for? 👤
This indicator is a powerful tool for a wide range of traders looking to incorporate historical price action into their analysis.
Intraday Traders: Can use the previous Daily OHLC levels to identify potential support/resistance for breakouts and reversals during the trading day.
Swing Traders: Can leverage the previous Weekly, Monthly, or Yearly OHLC levels on higher time frames to spot long-term trend continuation or reversal points.
Day Traders: Use the Previous Daily High/Low to frame the day's trading range and identify key levels for potential mean-reversion trades.
Technical Analysts: Those who rely on key levels and price action will find this indicator invaluable for their analysis.
This indicator simplifies a crucial part of technical analysis, providing a clean, customizable, and adaptive way to visualize and trade off of historical price levels.
Bullish & Bearish Gap Boxes with Gap Points 2025
Bullish & Bearish Gap Boxes with Gap Points & Table Functionality 2025
## **1. Highlighted Key Points in the Code**
* **Gap Detection Logic**
* **Bullish Gap:** `Low >= High ` (low is above the previous high) → bullish sentiment.
* **Bearish Gap:** `High <= Low ` (high is below the previous low) → bearish sentiment.
* **Configurable Filters**
* Minimum gap size in points (`minGapPoints`).
* Option to show/hide bullish and bearish gaps individually.
* Custom table position, row count, and text size for flexibility.
* **Visual Marking on Chart**
* **Boxes:** Drawn between gap high and low, extending to the right until price “fills” the gap.
* **Labels:** Show gap size (points + %), tooltip with exact high & low.
* **Automatic Gap Removal**
* Bullish gap deleted when `Low <= gapBottom` (gap filled).
* Bearish gap deleted when `High >= gapTop` (gap filled).
* **Gap Ranking Table**
* Shows **nearest** gaps to the current price, sorted by distance.
* Separate bear and bull gap lists, each limited to `maxBearRows` & `maxBullRows`.
* Displays type, gap size, gap %, high, and low.
* Uses the current chart timeframe in the title.
* **Multi-Timeframe Safe Handling**
* Uses `request.security()` to fetch OHLC for the active timeframe.
* Includes a function to translate timeframe into human-readable labels.
---
## **2. User Functionality**
From a trader’s perspective, here’s what your script allows:
Setting window divided into Two Parts for Better Handling normal & Table Section
✅ Functionality to Hide and Show_Gap_Tbl.
✅ **Detects and visually marks price gaps** automatically on any timeframe.
✅ **Extends gap zones** forward until price fills them.
✅ **Separates bullish and bearish gaps** for better decision-making.
✅ **Custom filtering** (minimum size, display toggles, table layout).
✅ **Gap watchlist table** showing only the nearest & most relevant gaps to current price.
✅ **Multi-timeframe compatibility** without repainting issues.
✅ **Clean chart control** with `max_labels_count` & `max_lines_count` limits to prevent overload.
✅ **Clean Tooltip control** with `Gap High` & `Gap Low` & Gap Range Points for Quick Understanding.
---
## **3. Why Gaps Are Important in Trading (Runaway vs. Normal Gaps)**
Gaps in price are **areas with no trading activity** between two consecutive bars. They represent **imbalances between supply and demand** and often occur due to overnight news, earnings, or strong market sentiment.
### **A. Normal (Common) Gaps**
* Appear in normal market moves.
* Often get “filled” quickly as price reverts to the mean.
* Not usually linked to major trends.
* Example: A small gap on a 5-min chart due to sudden but minor news.
### **B. Runaway (Continuation) Gaps**
* Happen **in the middle of strong trends** (uptrend or downtrend).
* Indicate **momentum acceleration** — institutions are aggressively entering.
* Rarely get filled in the short term.
* Example: During a bull rally, price gaps up and never comes back to retest.
---
### **Why Traders Watch Gaps**
1. **Support & Resistance Zones**
* Gaps act like **magnets** for price (gap fill targets) or **barriers** (price rejection).
2. **Trend Confirmation**
* Runaway gaps signal strong momentum; traders may enter in the direction of the gap.
3. **Trade Setup Opportunities**
* Fade the gap: Trade against it if expecting a fill.
* Follow the gap: Trade with it if expecting continuation.
4. **Volume Confirmation**
* High volume + gap = institutional activity → higher reliability.
AIChannel StrategyAIChannel Strategy is a long-only breakout system that trades when price closes above a dynamic upper band derived from a Gaussian-style filter. The channel width adapts to volatility using True Range, so signals naturally thin out during quiet markets and expand during trends.
How it works (under the hood)
Builds a Gaussian-like smoothing filter by cascading EMAs (AIFilter) using a tunable number of poles.
Optionally applies lag reduction (simple look-ahead compensation) and a Fast Response mode (averages with a 1-pole version).
Computes upper/lower bands:
upper = filter + (filter of True Range) × multiplier
lower = filter − (filter of True Range) × multiplier
Entry: when close crosses above the upper band and the bar time is within the selected date range.
Exit: when close crosses back below the upper band.
Includes an equity-line plot and optional (commented) CAGR / Max-DD ratio calculation for quick performance diagnostics.
Inputs (quick guide)
Source (src) – default hlc3.
Poles (1–9) – more poles → smoother, slower filter. Default 4.
Period – base smoothing length (default 144).
Range Multiplier – scales band width (default 1.414).
Reduced Lag – simple lag compensation toggle.
Fast Response – blends in a 1-pole filter for snappier turns.
Start/End Date – trades only inside this window (default 2018-01-01 → 2069-01-01).
Default backtest settings (in code)
1D timeframe (recommended for BTCUSD).
100% of equity per trade (strategy.percent_of_equity = 100).
Commission 0.1%, 1 tick slippage.
No shorts, no pyramiding beyond one position.
Best use
Designed for trend-following on assets with powerful expansions (e.g., BTCUSD 1D).
If your market is choppy, consider increasing Period and/or Range Multiplier, or enabling Fast Response off (for fewer signals).
Notes & Limitations
Exits are only by crossunder of the upper band; there is no explicit stop-loss or take-profit in this base version.
The CAGR/Max-DD lines are computed but plots are commented out—uncomment if you want to visualize them.
As with all backtests, results depend on exchange feed, session, commissions, and slippage.
Disclaimers
This script is for research/education. It is not financial advice. Always validate on your own data and risk parameters before live use.
Keywords / Tags
Trend, Breakout, Gaussian, EMA, Volatility, True Range, BTCUSD, Long-Only, Daily, Systematic
MTrade S/R How the Indicator Works
The indicator operates by filtering candlesticks and calculating the average positions of real buyers and sellers. These averages are then plotted on the chart.
🔴 If the price is below the averages and sellers are dominant, the plotted averages are treated as zones and highlighted in red.
🟢 If the price is above the averages and buyers show strong momentum, the averages turn green.
🟡 Yellow zones indicate areas where price has “flipped” the zone without strong momentum, which can be associated with liquidity levels.
(Note: These zones often occur when the price reacts to an area and then reverses, suggesting potential trapped buyers or sellers.)
When these averages are not retested by price, they are extended to the right, acting as dynamic support and resistance zones.
If the averages are later retested by price, they are automatically removed from the chart.
Momentum detection is assisted by the DMI indicator.
💡 Tip: From the indicator settings, you can enable “alıcılar baskın” and “satıcılar baskın” options to visually display the filtered buyer and seller candlesticks.
Weakening Selling Pressure FinderDescription:
This indicator helps traders identify potential trend reversals by detecting when selling pressure is weakening.
It uses the MACD histogram to spot moments when bearish momentum is still present but fading — a condition that often precedes a shift to bullish sentiment.
The indicator:
Highlights points where the MACD histogram is negative but rising
Marks these spots with a 📈 label for easy chart scanning
Works on any crypto pair and timeframe
Traders can use it to:
Spot early reversal setups before the crowd reacts
Time entries for potential trend changes
Complement other indicators like RSI, AO, or price action
This is a momentum shift detection tool — perfect for swing traders, scalpers, or anyone looking for early bullish signals after extended selling pressure.
✅ Elev8+Overview:
The Elev8+ indicator is a multi-layered trading indicator designed to help traders identify high-probability reversal points and trend-following opportunities. By combining the Classic Elev8+ Reversal Indicator, the DI StdDev Filter, and EMA/BB Trend Fills, this indicator offers a powerful toolset for navigating volatile markets with increased accuracy.
Key Features and Logic:
Classic Elev8+ Reversal Logic:
Liquidity Sweep Signals: The indicator detects liquidity sweeps by identifying price action that breaks previous high/low points with significant volume. This is crucial for identifying strong reversal signals when the market is grabbing liquidity.
ADX Trend Filter: The ADX filter ensures that the indicator only triggers signals during strong trending conditions, reducing false signals in range-bound markets. It requires the DI+ to be greater than ADX and ADX to be above 25, confirming a trend.
Bollinger Band Wick Filter: This filter helps identify price action where wicks penetrate the outer Bollinger Bands (3 to 3.5 standard deviations), indicating a potential reversal after price extremes. This adds an extra layer of confirmation for a reversal.
DI StdDev Filter:
Volatility-Adjusted DI Filtering: The DI StdDev Filter adds a volatility component to the classic ADX strategy. It tracks the DI+ and DI- lines' standard deviation, ensuring that trend strength is not only above the threshold but also confirms significant deviations, marking high-probability trend shifts.
Dynamic Thresholds: The upper and lower thresholds for DI are dynamically adjusted based on standard deviations, enhancing the responsiveness of the indicator in fast-moving markets.
EMA and Bollinger Band Trend Fills:
EMA Trend Fill: The Elev8+ Indicator visually highlights trend direction using fast and slow EMAs. A bullish trend is indicated when the fast EMA is above the slow EMA, and a bearish trend is indicated when the fast EMA is below the slow EMA. The background is filled with a semi-transparent color to easily distinguish trending conditions.
Bollinger Band Zones: The fill between the outer Bollinger Bands is used to highlight extreme price levels. These areas often signal overbought or oversold conditions, which traders can use to confirm reversal signals.
How It Works:
The Elev8+ Indicator intelligently combines trend-following and counter-trend signals. When multiple conditions are met, such as a liquidity sweep in the opposite direction of the trend, a reversal is signaled. Traders will benefit from the following:
Buy Signal: When the conditions for a strong reversal align (liquidity sweep, low volume, and confirmed by DI StdDev or BB wick filters), a buy signal is triggered.
Sell Signal: Similarly, when bearish reversal conditions (liquidity sweep and overbought conditions) align with the DI StdDev or BB wick filters, a sell signal is triggered.
Why It's Unique:
Comprehensive Market Filters: The combination of liquidity sweeps, ADX trend strength, DI StdDev volatility filtering, and Bollinger Bands ensures the indicator provides high-quality, high-probability trade setups.
Dual Reversal and Trend Confirmation: By incorporating both trend-following (EMA fills) and reversal logic (liquidity sweeps, BB filters), this script can adapt to different market conditions, providing both trend continuation and counter-trend signals.
Customizable Inputs: Traders can fine-tune the indicator's behavior by adjusting various parameters such as ADX period, Bollinger Band standard deviation, and DI StdDev thresholds to better fit their trading style and timeframes.
How to Use:
Set Up the Indicator: Apply the Elev8+ Indicator to your chart and enable the Classic Elev8 and/or DI StdDev Filter depending on your trading preferences. You can also adjust the EMA Trend Fill for clearer trend visualization.
Monitor Signals: Pay attention to the buy and sell signals generated by the combination of liquidity sweeps, ADX filters, and volatility adjustments. Confirm trades with the EMA trend fill and Bollinger Band zones.
Adapt to Market Conditions: Customize the sensitivity of the indicator by adjusting the ADX and DI StdDev parameters, as well as the Bollinger Band settings to fit different market environments and volatility.
Chart Explanation:
The indicator includes:
Reversal and trend-following signals: Easily identifiable buy and sell signals represented by small up and down triangles.
EMA Trend Fill: A background color fill that shows the prevailing trend.
Bollinger Band Zones: Shaded areas indicating overbought or oversold conditions.
Adjustable Parameters: Users can toggle features and modify parameters to suit their trading strategy.
3-Phase ORB Logic: Break, Retest, ConfirmWhat it is
A state-driven Opening Range framework that sequences Break → Retest → Confirm . It does not just draw ORB lines or tag any breakout; it tracks explicit state transitions with timing and tolerance to filter noise.
How it works (method & originality)
Break: After your ORB window, a valid break requires the prior close to be inside the range and the new close to be outside the ORB high/low (prevents slow drift).
Retest (configurable): Price must revisit the ORB edge within a tolerance band you define by % of the ORB range or a fixed price . Controls include Retest Side (Inside / Outside / Either), Proximity (Touch / Near), Basis (Close / Wick), and optional Cap Outside (limit far-outside closes). Retest must occur within a Max Bars window; same-bar Break→Retest is optional.
Confirm: A later bar must break beyond the max/min of the break + retest reference within Max Bars (or the same bar if enabled). Confirmation can be based on Wick , Close (same-bar only) , or Close (always) for stricter behavior.
Engine details: Per-bar state resets, explicit bar indexing for Break/Retest/Confirm, dual tolerance modes (percent or price), inside/outside/either logic, selectable wick/close handling, optional same-bar paths, and projected ORB lines. This is a sequence-and-tolerance framework, not a simple ORB level plotter.
Inputs
Session: ORB Session window
Tolerance: Mode (Percent or Price) + value
Retest controls: Retest Side (Inside/Outside/Either), Proximity (Touch/Near), Basis (Close/Wick), Cap Outside (on/off)
Timing: Max Bars for Retest, Max Bars for Confirm, Allow same-bar Break→Retest, Allow same-bar Retest→Confirm
Confirmation: Confirm Basis (Wick / Close same-bar only / Close always)
Display: Plot shapes or hide markers; ORB line projection length (bars)
Presets: Classic ORB (Outside • Touch • Close • 20%), Inside Touch (Close • 10%), Either Near (Wick • 15%), or Custom
How to use
Set the ORB session (e.g., 09:30–09:45).
Choose a Preset or use Custom and configure: Tolerance Mode/value, Retest Side/Proximity/Basis, optional Cap Outside.
Set Max Bars for Retest/Confirm and pick Confirm Basis (Wick or Close).
After a Break, wait for a valid Retest within your tolerance window, then a Confirm within the allowed bars.
Act after Confirm (or enable same-bar options if you allow them).
(Optional) Enable alerts for Break / Retest / Confirm; extend ORB lines forward for context.
Marker legend
Triangle = Break , X = Retest , Circle = Confirm (Up = long side, Down = short side.)
When signals reset or expire
Retest timeout: If Retest doesn’t occur within Max Bars , the sequence resets to Break-wait.
Confirm timeout: If Confirm doesn’t occur within Max Bars after Retest, the sequence resets.
Invalidation: With Inside retest, a move too far back inside (beyond tolerance) resets. With Outside retest and Cap Outside ON, a move too far outside (beyond tolerance) resets.
Re-entry into the range during the sequence can reset depending on your side/tolerance settings.
Non-repainting behavior
Logic evaluates bar-by-bar with explicit state resets. For stricter confirmation, select Confirm Basis = Close (always) .
Practical notes
Works on any timeframe. Match Percent tolerance to instrument volatility or use Price for fixed-tick products. Alerts are provided for each phase. The screenshot shows a full Break → Retest → Confirm sequence with only this script applied.
TMO of Relative StrengthThis indicator shows 3 TMOs, one for the charted symbol, one for a chosen index symbol, and one for the relative strength ratio of the 2 symbols.
While a normal TMO measures momentum of a stock, this indicator measures the subtle momentum shifts that happen in the relative strength ratio of the stock , which can sometimes happen before the momentum of the stock itself shifts. This provides the potential for an early warning that a move may be about to begin, even before the stock price starts heading in one direction.
Many traders watch relative strength ratio charts to see when a stock begins to outperform the index. This indicator doesn't measure the relative or comparative strength ratio itself, but instead measures the change in momentum of relative strength .
Signals and alerts are provided for when the Ratio's TMO line crosses above/below the Stock's TMO line, or the Market Index's TMO line, and also for when the Stock's TMO line crosses above/below the Market's TMO line even if the ratio isn't crossing currently. Also alerts when the Ratio or Stock TMO lines cross their prior values.
I created a version of this for Thinkorswim originally and it has been valuable to me and my clients, so I hope it provides value here as well.
-Josiah
EMA band 12/60/150/200EMA band consisting of 12/60/150/200
Specifically for Indian stock market, can be used for other trading scripts after testing.
Best use case : on Daily TF.
Bull run entry criteria, Not bear market or Bottom catching.
Keltner Channel Based Grid Strategy # KC Grid Strategy - Keltner Channel Based Grid Trading System
## Strategy Overview
KC Grid Strategy is an innovative grid trading system that combines the power of Keltner Channels with dynamic position sizing to create a mean-reversion trading approach. This strategy automatically adjusts position sizes based on price deviation from the Keltner Channel center line, implementing a systematic grid-based approach that capitalizes on market volatility and price oscillations.
## Core Principles
### Keltner Channel Foundation
The strategy builds upon the Keltner Channel indicator, which consists of:
- **Center Line**: Moving average (EMA or SMA) of the price
- **Upper Band**: Center line + (ATR/TR/Range × Multiplier)
- **Lower Band**: Center line - (ATR/TR/Range × Multiplier)
### Grid Trading Logic
The strategy implements a sophisticated grid system where:
1. **Position Direction**: Inversely correlated to price position within the channel
- When price is above center line → Short positions
- When price is below center line → Long positions
2. **Position Size**: Proportional to distance from center line
- Greater deviation = Larger position size
3. **Grid Activation**: Positions are adjusted only when the difference exceeds a predefined grid threshold
### Mathematical Foundation
The core calculation uses the KC Rate formula:
```
kcRate = (close - ma) / bandWidth
targetPosition = kcRate × maxAmount × (-1)
```
This creates a mean-reversion system where positions increase as price moves further from the mean, expecting eventual return to equilibrium.
## Parameter Guide
### Time Range Settings
- **Start Date**: Beginning of strategy execution period
- **End Date**: End of strategy execution period
### Core Parameters
1. **Number of Grids (NumGrid)**: Default 12
- Controls grid sensitivity and position adjustment frequency
- Higher values = More frequent but smaller adjustments
- Lower values = Less frequent but larger adjustments
2. **Length**: Default 10
- Period for moving average and volatility calculations
- Shorter periods = More responsive to recent price action
- Longer periods = Smoother, less noisy signals
3. **Grid Coefficient (kcRateMult)**: Default 1.33
- Multiplier for channel width calculation
- Higher values = Wider channels, less frequent trades
- Lower values = Narrower channels, more frequent trades
4. **Source**: Default Close
- Price source for calculations (Close, Open, High, Low, etc.)
- Close price typically provides most reliable signals
5. **Use Exponential MA**: Default True
- True = Uses EMA (more responsive to recent prices)
- False = Uses SMA (equal weight to all periods)
6. **Bands Style**: Default "Average True Range"
- **Average True Range**: Smoothed volatility measure (recommended)
- **True Range**: Current bar's volatility only
- **Range**: Simple high-low difference
## How to Use
### Setup Instructions
1. **Apply to Chart**: Add the strategy to your desired timeframe and instrument
2. **Configure Parameters**: Adjust settings based on market characteristics:
- Volatile markets: Increase Grid Coefficient, reduce Number of Grids
- Stable markets: Decrease Grid Coefficient, increase Number of Grids
3. **Set Time Range**: Define your backtesting or live trading period
4. **Monitor Performance**: Watch strategy performance metrics and adjust as needed
### Optimal Market Conditions
- **Range-bound markets**: Strategy performs best in sideways trending markets
- **High volatility**: Benefits from frequent price oscillations around the mean
- **Liquid instruments**: Ensures efficient order execution and minimal slippage
### Position Management
The strategy automatically:
- Calculates optimal position sizes based on account equity
- Adjusts positions incrementally as price moves through grid levels
- Maintains risk control through maximum position limits
- Executes trades only during specified time periods
## Risk Warnings
### ⚠️ Important Risk Considerations
1. **Trending Market Risk**:
- Strategy may underperform or generate losses in strong trending markets
- Mean-reversion assumption may fail during sustained directional moves
- Consider market regime analysis before deployment
2. **Leverage and Position Size Risk**:
- Strategy uses pyramiding (up to 20 positions)
- Large positions may accumulate during extended moves
- Monitor account equity and margin requirements closely
3. **Volatility Risk**:
- Sudden volatility spikes may trigger multiple rapid position adjustments
- Consider volatility filters during high-impact news events
- Backtest across different volatility regimes
4. **Execution Risk**:
- Strategy calculates on every tick (calc_on_every_tick = true)
- May generate frequent orders in volatile conditions
- Ensure adequate execution infrastructure and consider transaction costs
5. **Parameter Sensitivity**:
- Performance highly dependent on parameter optimization
- Over-optimization may lead to curve-fitting
- Regular parameter review and adjustment may be necessary
## Suitable Scenarios
### Ideal Market Conditions
- **Sideways/Range-bound markets**: Primary use case
- **Mean-reverting instruments**: Forex pairs, some commodities
- **Stable volatility environments**: Consistent ATR patterns
- **Liquid markets**: Major currency pairs, popular stocks/indices
## Important Notes
### Strategy Limitations
1. **No Stop Loss**: Strategy relies on mean reversion without traditional stop losses
2. **Capital Requirements**: Requires sufficient capital for grid-based position sizing
3. **Market Regime Dependency**: Performance varies significantly across different market conditions
## Disclaimer
This strategy is provided for educational and research purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Users should thoroughly test the strategy and understand its mechanics before risking real capital. The author assumes no responsibility for trading losses incurred through the use of this strategy.
---
# KC网格策略 - 基于肯特纳通道的网格交易系统
## 策略概述
KC网格策略是一个创新的网格交易系统,它将肯特纳通道的力量与动态仓位调整相结合,创建了一个均值回归交易方法。该策略根据价格偏离肯特纳通道中心线的程度自动调整仓位大小,实施系统化的网格方法,利用市场波动和价格振荡获利。
## 核心原理
### 肯特纳通道基础
该策略建立在肯特纳通道指标之上,包含:
- **中心线**: 价格的移动平均线(EMA或SMA)
- **上轨**: 中心线 + (ATR/TR/Range × 乘数)
- **下轨**: 中心线 - (ATR/TR/Range × 乘数)
### 网格交易逻辑
该策略实施复杂的网格系统:
1. **仓位方向**: 与价格在通道中的位置呈反向关系
- 当价格高于中心线时 → 空头仓位
- 当价格低于中心线时 → 多头仓位
2. **仓位大小**: 与距离中心线的距离成正比
- 偏离越大 = 仓位越大
3. **网格激活**: 只有当差异超过预定义的网格阈值时才调整仓位
### 数学基础
核心计算使用KC比率公式:
```
kcRate = (close - ma) / bandWidth
targetPosition = kcRate × maxAmount × (-1)
```
这创建了一个均值回归系统,当价格偏离均值越远时仓位越大,期望最终回归均衡。
## 参数说明
### 时间范围设置
- **开始日期**: 策略执行期间的开始时间
- **结束日期**: 策略执行期间的结束时间
### 核心参数
1. **网格数量 (NumGrid)**: 默认12
- 控制网格敏感度和仓位调整频率
- 较高值 = 更频繁但较小的调整
- 较低值 = 较少频繁但较大的调整
2. **长度**: 默认10
- 移动平均线和波动率计算的周期
- 较短周期 = 对近期价格行为更敏感
- 较长周期 = 更平滑,噪音更少的信号
3. **网格系数 (kcRateMult)**: 默认1.33
- 通道宽度计算的乘数
- 较高值 = 更宽的通道,较少频繁的交易
- 较低值 = 更窄的通道,更频繁的交易
4. **数据源**: 默认收盘价
- 计算的价格来源(收盘价、开盘价、最高价、最低价等)
- 收盘价通常提供最可靠的信号
5. **使用指数移动平均**: 默认True
- True = 使用EMA(对近期价格更敏感)
- False = 使用SMA(对所有周期等权重)
6. **通道样式**: 默认"平均真实范围"
- **平均真实范围**: 平滑的波动率测量(推荐)
- **真实范围**: 仅当前K线的波动率
- **范围**: 简单的高低价差
## 使用方法
### 设置说明
1. **应用到图表**: 将策略添加到您所需的时间框架和交易品种
2. **配置参数**: 根据市场特征调整设置:
- 波动市场:增加网格系数,减少网格数量
- 稳定市场:减少网格系数,增加网格数量
3. **设置时间范围**: 定义您的回测或实盘交易期间
4. **监控表现**: 观察策略表现指标并根据需要调整
### 最佳市场条件
- **区间震荡市场**: 策略在横盘趋势市场中表现最佳
- **高波动性**: 受益于围绕均值的频繁价格振荡
- **流动性强的品种**: 确保高效的订单执行和最小滑点
### 仓位管理
策略自动:
- 根据账户权益计算最优仓位大小
- 随着价格在网格水平移动逐步调整仓位
- 通过最大仓位限制维持风险控制
- 仅在指定时间段内执行交易
## 风险警示
### ⚠️ 重要风险考虑
1. **趋势市场风险**:
- 策略在强趋势市场中可能表现不佳或产生损失
- 在持续方向性移动期间均值回归假设可能失效
- 部署前考虑市场制度分析
2. **杠杆和仓位大小风险**:
- 策略使用金字塔加仓(最多20个仓位)
- 在延长移动期间可能积累大仓位
- 密切监控账户权益和保证金要求
3. **波动性风险**:
- 突然的波动性激增可能触发多次快速仓位调整
- 在高影响新闻事件期间考虑波动性过滤器
- 在不同波动性制度下进行回测
4. **执行风险**:
- 策略在每个tick上计算(calc_on_every_tick = true)
- 在波动条件下可能产生频繁订单
- 确保充足的执行基础设施并考虑交易成本
5. **参数敏感性**:
- 表现高度依赖于参数优化
- 过度优化可能导致曲线拟合
- 可能需要定期参数审查和调整
## 适用场景
### 理想市场条件
- **横盘/区间震荡市场**: 主要用例
- **均值回归品种**: 外汇对,某些商品
- **稳定波动性环境**: 一致的ATR模式
- **流动性市场**: 主要货币对,热门股票/指数
## 注意事项
### 策略限制
1. **无止损**: 策略依赖均值回归而无传统止损
2. **资金要求**: 需要充足资金进行基于网格的仓位调整
3. **市场制度依赖性**: 在不同市场条件下表现差异显著
## 免责声明
该策略仅供教育和研究目的。过往表现不保证未来结果。交易涉及重大损失风险,并非适合所有投资者。用户应在投入真实资金前彻底测试策略并理解其机制。作者对使用此策略产生的交易损失不承担任何责任。
---
**Strategy Version**: Pine Script v6
**Author**: Signal2Trade
**Last Updated**: 2025-8-9
**License**: Open Source (Mozilla Public License 2.0)
BuySell-byALHELWANI🔱 BuySell-byALHELWANI | مؤشر التغيرات الاتجاهية الذكية
BuySell-byALHELWANI هو مؤشر احترافي متقدّم يرصد نقاط الانعكاس الحقيقية في حركة السوق، باستخدام خوارزمية تعتمد على تحليل القمم والقيعان الهيكلية للسعر (Structure-Based Detection) وليس على مؤشرات تقليدية.
المؤشر مبني على مكتبة signalLib_yashgode9 القوية، مع تخصيص كامل لأسلوب العرض والتنبيهات.
⚙️ ما يقدمه المؤشر:
🔹 إشارات واضحة للشراء والبيع تعتمد على كسر هيكل السوق.
🔹 تخصيص مرن للعمق والانحراف وخطوات التراجع (Backstep) لتحديد الدقة المطلوبة.
🔹 علامات ذكية (Labels) تظهر مباشرة على الشارت عند كل نقطة قرار.
🔹 تنبيهات تلقائية فورية عند كل تغير في الاتجاه (Buy / Sell).
🧠 الآلية المستخدمة:
DEPTH_ENGINE: يتحكم في مدى عمق النظر لحركة السعر.
DEVIATION_ENGINE: يحدد المسافة المطلوبة لتأكيد نقطة الانعكاس.
BACKSTEP_ENGINE: يضمن أن كل إشارة تستند إلى تغير هيكلي حقيقي في الاتجاه.
📌 المميزات:
✅ لا يعيد الرسم (No Repaint)
✅ يعمل على كل الأطر الزمنية وكل الأسواق (فوركس، مؤشرات، كريبتو، أسهم)
✅ تصميم بصري مرن (ألوان، حجم، شفافية)
✅ يدعم الاستخدام في السكالبينغ والسوينغ
ملاحظة:
المؤشر لا يعطي إشارات عشوائية، بل يستند إلى منطق السعر الحقيقي عبر تتبع التغيرات الحركية للسوق.
يُفضّل استخدامه مع خطة تداول واضحة وإدارة رأس مال صارمة.
🔱 BuySell-byALHELWANI | Smart Reversal Detection Indicator
BuySell-byALHELWANI is a high-precision, structure-based reversal indicator designed to identify true directional shifts in the market. Unlike traditional indicators, it doesn't rely on lagging oscillators but uses real-time swing analysis to detect institutional-level pivot points.
Powered by the robust signalLib_yashgode9, this tool is optimized for traders who seek clarity, timing, and strategic control.
⚙️ Core Engine Features:
🔹 Accurate Buy/Sell signals generated from structural highs and lows.
🔹 Adjustable sensitivity using:
DEPTH_ENGINE: Defines how deep the algorithm looks into past swings.
DEVIATION_ENGINE: Sets the deviation required to confirm a structural change.
BACKSTEP_ENGINE: Controls how many bars are validated before confirming a pivot.
🧠 What It Does:
🚩 Detects market structure shifts and confirms them visually.
🏷️ Plots clear Buy-point / Sell-point labels directly on the chart.
🔔 Sends real-time alerts when a directional change is confirmed.
🎯 No repainting – what you see is reliable and final.
✅ Key Benefits:
Works on all timeframes and all asset classes (FX, crypto, indices, stocks).
Fully customizable: colors, label size, transparency.
Ideal for scalping, swing trading, and strategy automation.
High visual clarity with minimal noise.
🔐 Note:
This script is designed for serious traders.
It highlights real market intent, especially when used with trendlines, zones, and volume analysis.
Pair it with disciplined risk management for best results.
_mr_beach Sunday Entwicklung Version 1_mr_beach Sunday Development Version 1
Short Description (for TradingView publication):
This indicator combines EMA crossovers, VWAP with standard deviation bands, gap detection, pivot-based support & resistance, and VWAP distance labels in a single overlay. Perfect for discretionary traders aiming to efficiently identify gap fills, trend reversals, and key price levels. All components can be toggled on/off via the settings menu.
Full Indicator Description:
🧠 Purpose of the Indicator:
This all-in-one tool merges several analytical features to visualize trend direction, market structure, key price levels (e.g., gaps, VWAP distance, pivot support), and entry signals at a glance.
🔧 Integrated Features:
EMA20 / EMA50: Trend detection via moving averages. Crossover signals indicate potential entries.
VWAP + Band: Volume-weighted average price with visual deviation bands.
GAP-Up / GAP-Down: Price gaps are highlighted in color (brown/yellow), optionally showing only open ones.
VWAP Distance Label: Displays the current price’s percentage deviation from the VWAP as a chart label.
Buy/Sell Signals: Triggered by EMA20 and EMA50 crossovers.
HH/LL SL-Marker: Identifies local highs/lows using pivots.
Support & Resistance: Automatically calculated pivot zones.
Customizable Visibility: All features can be toggled in the settings menu.
Dummy Plot: plot(na) ensures error-free compilation.
⚙️ Settings Menu Options:
Show VWAP: Displays VWAP and deviation bands.
Show EMA20 / EMA50: Shows the moving averages.
Show Gaps: Enables gap detection.
Show Only Open Gaps: Hides already filled gaps.
Show VWAP Distance: Activates VWAP deviation label.
Support & Resistance: Displays pivot-based zones as support/resistance.
🔔 Alerts:
‘Mads Morningstar Signal’: Buy/Sell alerts based on EMA crossover.
📈 Use Cases:
Trend-following setups using EMA crossover
Gap-fill trading strategies
VWAP reversion trades
SL/TP based on HH/LL or pivot levels
Visual chart preparation for scalping, intraday, or swing trading
🛠 Suggested Extensions:
Gap table showing open levels
Take-Profit/Stop-Loss strategy
Alerts for new gap formation
Strategy tester module with gap-based entries
趋势策略(实验版)此指标通过EMA趋势确认、加仓信号及Vegas通道,提供清晰的市场趋势指引,帮助交易者捕捉关键转折点和波动范围。
Trend Crossover + Position Add Signals (Optimized + Background + Vegas Channel)
This indicator combines EMA trend confirmation, position add signals, and the Vegas channel to provide clear market trend guidance, helping traders capture key turning points and volatility ranges.
KIT_ALL_VOTE_INDICADORIndicator developed to consolidate and display the voting results of multiple neural networks in real time on the chart.
It calculates the number of buy and sell signals from various AI instances and presents a consolidated view to assist in decision-making.
Ideal for algorithmic trading strategies and monitoring EAs that use voting logic.
Main features:
Displays the total count of buy and sell votes on the chart.
Automatically updates on each new candle or tick.
Can be used together with the SuperNeural1 EA or other systems based on voting.
Recommended asset: XAUUSD or any pair with high volatility.
Suggested timeframe: M1 to H1.