MTF Last Closed Highs & LowsThis indicator plots the most recent closed high and low levels from multiple timeframes (4H, Daily, Weekly, Monthly, etc.) directly on your chart. It helps traders quickly spot key support and resistance zones, track market structure across different timeframes, and identify breakout or reversal opportunities.
المؤشرات والاستراتيجيات
Qabas systemQabas System — Multi-Layered Smart Trading Framework
The Qabas System is an advanced all-in-one Pine Script indicator designed to combine institutional-grade analysis, smart entry/exit detection, and adaptive risk management into a single framework. It integrates multiple professional trading concepts into one ecosystem, making it suitable for intraday, swing, and position trading.
⸻
Core Components
1. VSA Engine (Volume Spread Analysis)
Detects institutional footprints (accumulation, distribution, no-demand, supply tests) by analyzing the relationship between candle spread, volume, and close location.
2. Order Blocks (Supply & Demand Zones)
Automatically highlights bullish and bearish order blocks with customizable transparency, showing where institutions left unfilled orders.
3. Smart Traps (Liquidity Traps)
Identifies bull and bear traps by detecting abnormal wicks and volume exhaustion near highs/lows — a common reversal signal.
4. Fibonacci Golden Levels
Draws adaptive retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6) aligned with the current market trend.
5. CPR (Central Pivot Range)
Daily pivot zones acting as magnets for price, helping detect high-probability reversal and breakout areas.
6. Liquidity Zones
Detects liquidity sweeps above highs and below lows combined with strong volume confirmation.
7. Market Structure (Chanlun Waves)
Tracks higher-highs / lower-lows to outline bullish or bearish structural waves.
8. Breakout Engine (Duanxian Gate)
Confirms valid breakouts using EMA/Donchian/Linear Regression baselines with ATR and volume filters.
9. Adaptive Resonance Oscillator (ARO)
A proprietary entry/exit system based on Hilbert transform and RSI resonance, plotting BUY/SELL arrows only when conditions are valid and alternating (to avoid duplicate signals).
⸻
Risk & Trade Management
• Smart ATR / Fibonacci / Structure-based stop loss options.
• Fibonacci / Risk-Reward / Structure-based take profit logic.
• Built-in auto-risk engine with position sizing (% risk per trade).
• ATR-based adaptive targets for breakout scenarios.
⸻
Visualization & Dashboard
• Multiple color themes (Neon, Professional, Matrix, Gold).
• Smart candle coloring for volume spikes and weak drops.
• Order Block boxes with custom transparency.
• A dynamic Arabic/RTL dashboard showing:
• Decision (Buy/Sell/Strong Buy/Strong Sell/Wait)
• Trend strength (across multiple timeframes)
• Volume pressure (Accumulation / Distribution / Neutral)
• Range & Breakout probabilities
⸻
Dynamic Probabilities Engine
The system records historical outcomes near supply/demand boundaries and continuously adapts breakout probability calculations. This enables it to dynamically project probability of ranging vs breaking out, and update targets accordingly.
⸻
How It Works (Step-by-Step)
1. Market Context: Multi-timeframe EMAs define overall trend score.
2. Institutional Clues: VSA, order blocks, traps, CPR, liquidity, and Fibonacci generate signals.
3. Structural Confirmation: Breakouts and wave analysis validate directional bias.
4. Decision Engine: Weighted scoring system fuses all signals into a single decision (BUY / SELL / WAIT) with confidence level.
5. Execution: ARO entry/exit signals provide precise timing inside the broader context.
6. Risk Management: Adaptive stop loss and take profit methods are applied automatically.
⸻
👉 In summary:
The Qabas System acts like an institutional trading toolkit inside one indicator — combining price action, smart volume, liquidity, structure, and adaptive risk to deliver context-aware, probability-driven trade signals with a clear visual dashboard.
EMA–VWAP Strategy (Confirmed crosses, 1 trade/cross)Wait for 10 and 20 ema to cross
Buy between 10 and 20
wait for 20 and 50 to cross
buy at vwap
10/20/50 ema and vwap is plotted
Whale Fractal Levels (V1.0)What it does
This indicator plots Fractal Levels (Bill Williams pivots) as horizontal lines and prints clean signals for:
BO+ / BO− → Breakouts through the latest fractal high/low
SW↑ / SW↓ → Liquidity sweeps (wick pierces, close rejects)
RE+ / RE− → Retests of the broken level after a confirmed breakout
Cyan = support (fractal lows).
Lilac = resistance (fractal highs).
How it works
Detects fractals with Left/Right = lr. A pivot is confirmed after lr bars on the right → the level itself doesn’t repaint.
Each confirmed fractal spawns a horizontal line extended to the right. You can limit how many lines stay on chart and auto-expire old ones.
Signals reference the most recent fractal high/low only and are edge-triggered (crossover/crossunder) with a cooldown so you don’t get a marker on every bar near the level.
A small state machine remembers the last breakout to validate the next retest.
Inputs (Settings)
Fractals
Left/Right (BW fractal) — Sensitivity of pivots (lower = more reactive, higher = cleaner).
MAX number of levels to display — Keep only the most recent N lines.
Level lifetime (bars) — Auto-delete lines after N bars to declutter.
Signals
Cooldown between signals (bars) — Minimum spacing between markers (anti-spam).
Show Breakouts (BO±) — Toggle breakout markers.
Show Sweeps (SW↑/SW↓) — Toggle sweep markers.
Show Retests (RE±) — Toggle retest markers.
Display
Show fractal lines / Line width / Line transparency (0..100)
Alerts (ready to use)
BO+ (Fractal), BO- (Fractal)
SW↑ (Fractal), SW↓ (Fractal)
RE+ (Fractal), RE- (Fractal)
Pullback Entry Alert (8ema/21ema/50ma/200ma)8ema, 21ema, 50MA, and 200MA alert for pullback buy entries
ValuationtoolValuation tools, updated version for every asset (vs futures price / vs gold / vs bounds)
KCandle/Boost con Filtro EMA e 75%- Engulfing candle filtered with a custom EMA.
- 75% of the candle is plotted on the right.
Price vs SMAThis indicator displays the current price in percentage terms, indicating whether it is above or below a selected simple moving average (SMA). It’s designed to be clean and minimal, with the option to display a brief sentence on the chart for added clarity.
The script calculates the distance between the current price and a chosen simple moving average (SMA) and expresses that distance as a percentage. By default, it uses the 200-period SMA, but you can adjust the length to any value, such as 50 or 100, depending on your trading style. A positive percentage means price is trading above the SMA, while a negative percentage means it is below.
The percentage difference is rounded to whole numbers and can be displayed directly in the chart legend if the “Indicator values” box is checked in the TradingView settings. This keeps the chart clean while still providing at-a-glance information about the price relative to your selected moving average.
For extra clarity, the script also includes an option to display a short sentence on the chart itself. This sentence will read “Price is x% above SMA” in green when price is above the SMA, or “Price is x% below SMA” in red when price is below. This visual cue makes it easy to interpret the relationship between price and the moving average without adding clutter.
Swing or Investment TheorySwing or Investment Theory for generating Buy & Sell signals at strong levels
📖 EMA Retracement Theory
The 200 EMA (on multiple timeframes – 4H, Daily, Weekly) is treated as a backbone trend line.
When price pulls back (retraces) to the 200 EMA after a rally or fall, it often acts as a decision point:
Either support (in an uptrend) → bounce = Buy signal.
Or resistance (in a downtrend) → rejection = Sell signal.
✅ Buy Signal (Strong Level)
Market is in uptrend (price above 200 EMA).
Price retraces down to touch or slightly break below EMA 200. and RSI shows oversold zone.
A bullish candle pattern or reversal confirms.
👉 Enter Buy with stop loss just below EMA.
❌ Sell Signal (Strong Level)
Market is in downtrend (price below 200 EMA).
Price retraces up to touch or slightly break above EMA 200. and RSI shows overbought zone.
A bearish candle pattern or rejection confirms.
👉 Enter Sell with stop loss just above EMA.
Autoback Grid Lab [trade_lexx]Autoback Grid Lab: Your personal laboratory for optimizing grid strategies.
Introduction
First of all, it is important to understand that Autoback Grid Lab is a powerful professional tool for backtesting and optimization, created specifically for traders using both grid strategies and regular take profit with stop loss.
The main purpose of this script is to save you weeks and months of manual testing and parameter selection. Instead of manually testing one combination of settings after another, Autoback Grid Lab automatically tests thousands of unique strategies on historical data, providing you with a comprehensive report on the most profitable and, more importantly, sustainable ones.
If you want to find mathematically sound, most effective settings for your grid strategy on a specific asset and timeframe, then this tool was created for you.
Key Features
My tool has functionality that transforms the process of finding the perfect strategy from a routine into an exciting exploration.
🧪 Mass testing of thousands of combinations
The script is able to systematically generate and run a huge number of unique combinations of parameters through the built-in simulator. You set the ranges, and the indicator does all the work, testing all possible options for the following grid settings:
* Number of safety orders (SO Count)
* Grid step (SO Step)
* Step Multiplier (SO Multiplier) for building nonlinear grids
* Martingale for controlling the volume of subsequent orders
* Take Profit (%)
* Stop Loss (%), with the possibility of calculating both from the entry point and from the dynamic breakeven line
* The volume of the base order (Volume BO) as a percentage of the deposit
🏆 Unique `FinalScore` rating system
Sorting strategies by net profit alone is a direct path to self—deception and choosing strategies that are "tailored" to history and will inevitably fail in real trading. To solve this problem, we have developed FinalScore, a comprehensive assessment of the sustainability and quality of the strategy.
How does it work?
FinalScore analyzes each combination not one by one, but by nine key performance metrics at once, including Net Profit, Drawdown, Profit Factor, WinRate, Sharpe coefficients, Sortino, Squid and Omega. Each of these indicators is normalized, that is, reduced to a single scale. Then, to test the strategy for strength, the system performs 30 iterations, each time assigning random weights to these 9 metrics. A strategy gets a high FinalScore only if it shows consistently high results under different evaluation criteria. This proves her reliability and reduces the likelihood that her success was an accident.
📈 Realistic backtesting engine
The test results are meaningless if they do not take into account the actual trading conditions. Our simulator simulates real trading as accurately as possible, taking into account:
* Leverage: Calculation of the required margin to open and hold positions.
* Commission: A percentage commission is charged each time an order is opened and closed.
* Slippage: The order execution price is adjusted by a set percentage to simulate real market conditions.
* Liquidation model: This is one of the most important functions. The script continuously monitors the equity of the account (capital + unrealized P&L). If equity falls below the level of the supporting margin (calculated from the current value of the position), the simulator forcibly closes the position, as it would happen on a real exchange. This eliminates unrealistic scenarios where the strategy survives after a huge drawdown.
🔌 Integration with external signals
The indicator operates in two modes:
1. `No Signal': Standard mode. The trading cycle starts immediately as soon as the previous one has been closed. Ideal for testing the "pure" mechanics of the grid.
2. `External Signal`: In this mode, a new trading cycle will start only when a signal is received from an external source. You can connect any other indicator (such as the RSI, MACD, or your own strategy) to the script and use it as a trigger to log in. This allows you to combine the power of a grid strategy with your own entry points.
📊 Interactive and informative results panel
Upon completion of the calculations, a detailed table with the TOP N best strategies appears on the screen, sorted according to your chosen criterion. For each strategy in the rating, you will see not only the key metrics (Profit, Drawdown, duration of transactions), but also all the parameters that led to this result. You can immediately take these settings and apply them in your trading.
Application Options: How To Solve Your Problems
Autoback Grid Lab is a flexible tool that can be adapted to solve various tasks, from complete grid optimization to fine—tuning existing strategies. Here are some key scenarios for its use:
1. Complete Optimization Of The Grid Strategy
This is the basic and most powerful mode of use. You can find the most efficient grid configuration for any asset from scratch.
* How to use: Set wide ranges for all key grid parameters ('SO Count`, SO Step, SO Multiplier, Martingale, TP, etc.).
* In the `No Signal` mode: You will find the most stable grid configuration that works as an independent, constantly active strategy, regardless of which-or entrance indicators.
* In the `External Signal` mode: You can connect your favorite indicator for input (for example, RSI, MACD or a complex author's script) and find the optimal grid parameters that best complement your input signals. This allows you to turn a simple signaling strategy into a full-fledged grid system.
2. Selecting the Optimal Take Profit and Stop Loss for Your Strategy
Do you already have an entry strategy, but you are not sure where it is best to put Take Profit and Stop Loss? Autoback Grid Lab can solve this problem as well.
* How to use:
1. Disable optimization of all grid parameters (uncheck SO Count, SO Step, Martingale, etc.). Set the Min value for SO Count to 0.
2. Set the ranges for iteration only for 'Take Profit` and `Stop Loss'.
3. Turn on the External Signal mode and connect your indicator with input signals.
* Result: The script will run your historical entry signals with hundreds of different TP and SL combinations and show you which stop order levels bring maximum profit with minimal risk specifically for your entry points.
3. Building a Secure Network with Risk Management
Many traders are afraid of grid strategies because of the risk of large drawdowns. With the help of the optimizer, you can purposefully find the parameters for such a grid, which includes mandatory risk management through Stop Loss.
* How to use: Enable and set the range for Stop Loss, along with other grid parameters. Don't forget to test both types of SL calculations (`From entry point` and `From breakeven line`) to determine which one works more efficiently.
* Result: You will find balanced strategies in which the grid parameters (number of orders, martingale) and the Stop Loss level are selected in such a way as to maximize profits without going beyond the acceptable risk level for you.
How To Use The Indicator (Step-By-Step Guide)
Working with the Autoback Grid Lab is a sequential process consisting of four main steps: from initial setup to analysis of the finished results. Follow this guide to get the most out of the tool.
Step 1: Initial Setup
1. Add the indicator to the chart of your chosen asset and timeframe.
2. Open the script settings. The first thing you should pay attention to is the ⚙️ Optimization Settings ⚙️ group.
3. Set the `Bars Count'. This parameter determines how much historical data will be used for testing.
* Important: The more bars you specify, the more statistically reliable the backtest results will be. We recommend using the maximum available value (25,000) to test strategies at different market phases.
* Consider: The indicator performs all calculations on the last historical bar. After applying the TradingView settings, it will take some time to load all the specified bars. The results table will appear only after the data is fully loaded. Don't worry if it doesn't appear instantly. And if an error occurs, simply switch the number of combinations to 990 and back to 1000 until the table appears.
Step 2: Optimization Configuration
At this stage, you define the "universe" of parameters that our algorithm will explore.
1. Set the search ranges (🛠 Optimization Parameters 🛠 group).
For each grid parameter that you want to optimize (for example, SO Count or `Take Profit'), you must specify three values:
* Min: The minimum value of the range.
* Max: The maximum value of the range.
* Step: The step with which the values from Min to Max will be traversed.
*Example:* If you set Min=5, Max=10, and Step=1 for SO Count, the script will test strategies with 5, 6, 7, 8, 9, and 10 safety orders.
* Tip for users: To get the first results quickly, start with a larger step (for example, TP from 0.5% to 2.5% in 0.5 increments instead of 0.1). After you identify the most promising areas, you can perform a deeper analysis by expanding the ranges around these values.
2. Set Up Money Management (Group `💰 Money Management Settings 💰`).
Fill in these fields with the values that best match your actual trading conditions. This is critically important for obtaining reliable results.
* Capital: Your initial deposit.
* Leverage: Leverage.
* Commission (%): Your trading commission as a percentage.
* Slippage (%): Expected slippage.
* Liquidation Level (%): The level of the supporting margin (MMR in %). For example, for Binance Futures, this value is usually between 0.4% and 2.5%, depending on the asset and position size. Specify this value for your exchange.
3. Select the Sorting Criterion and the Direction (Group `⚙️ Optimization Settings ⚙️').
* `Sort by': Specify the main criteria by which the best strategies will be selected and sorted. I strongly recommend using finalScore to find the most balanced and sustainable strategies.
* `Direction': Choose which trades to test: Long, Short or Both.
Step 3: Start Testing and Work with "Parts"
The total number of unique combinations generated based on your ranges can reach tens of millions. TradingView has technical limitations on the number of calculations that the script can perform at a time. To get around this, I implemented a "Parts" system.
1. What are `Part` and `Combinations in Part'?
* `Combinations in Part': This is the number of backtests that the script performs in one run (1000 by default).
* `Part`: This is the number of the "portion" of combinations that you want to test.
2. How does it work in practice?
* After you have everything set up, leave Part:1 and wait for the results table to appear. You will see the TOP N best strategies from the first thousand tested.
* Analyze them. Then, to check the next thousand combinations, just change the Part to 2 in the settings and click OK. The script will run a test for the next batch.
* Repeat this process by increasing the Part number (`3`, 4, 5...), until you reach the last available part.
* Where can I see the total number of parts? In the information row below the results table, you will find Total parts. This will help you figure out how many more tests are left to run.
Step 4: Analyze the Results in the Table
The results table is your main decision—making tool. It displays the best strategies found, sorted by the criteria you have chosen.
1. Study the performance metrics:
* Rating: Position in the rating.
* Profit %: Net profit as a percentage of the initial capital.
* Drawdown%: The maximum drawdown of the deposit for the entire test period.
* Max Length: The maximum duration of one transaction in days, hours and minutes.
* Trades: The total number of completed trades.
2. Examine the winning parameters:
* To the right of the performance metrics are columns showing the exact settings that led to this result ('SO Count`, SO Step, TP (%), etc.).
3. How to choose the best strategy?
* Don't chase after the maximum profit! The strategy with the highest profit often has the highest drawdown, which makes it extremely risky.
* Seek a balance. The ideal strategy is a compromise between high profitability, low drawdown (Drawdown) and the maximum length of trades acceptable to you (Max Length).
* finalScore was created to find this balance. Trust him — he often highlights not the most profitable, but the most stable and reliable options.
Detailed Description Of The Settings
This section serves as a complete reference for each parameter available in the script settings. The parameters are grouped in the same way as in the indicator interface for your convenience.
Group: ⚙️ Optimization Settings ⚙️
The main parameters governing the testing process are collected here.
* `Enable Optimizer': The main switch. Activates or deactivates all backtesting functionality.
* `Direction': Determines which way trades will be opened during the simulation.
* Long: Shopping only.
* Short: Sales only.
* Both: Testing in both directions. Important: This mode only works in conjunction with an External Signal, as the script needs an external signal to determine the direction for each specific transaction.
* `Signal Mode`: Controls the conditions for starting a new trading cycle (opening a base order).
* No Signal: A new cycle starts immediately after the previous one is completed. This mode is used to test "pure" grid mechanics without reference to market conditions.
* External Signal: A new cycle begins only when a signal is received from an external indicator connected via the Signal field.
* `Signal': A field for connecting an external signal source (works only in the `External Signal` mode). You can select any other indicator on the chart.
* For Long** trades, the signal is considered received if the value of the external indicator ** is greater than 0.
* For Short** trades, the signal is considered received if the value of the external indicator ** is less than 0.
* `Bars Count': Sets the depth of the history in the bars for the backtest. The maximum value (25000) provides the most reliable results.
* `Sort by`: A key criterion for selecting and ranking the best strategies in the final table.
* FinalScore: Recommended mode. A comprehensive assessment that takes into account 9 metrics to find the most balanced and sustainable strategies.
* Profit: Sort by net profit.
* Drawdown: Sort by minimum drawdown.
* Max Length: Sort by the minimum length of the longest transaction.
* `Combinations Count': Indicates how many of the best strategies (from 1 to 50) will be displayed in the results table.
* `Close last trade`: If this option is enabled, any active trade will be forcibly closed at the closing price of the last historical bar. For grid strategies, it is recommended to always enable this option in order to get the correct calculation of the final profit and eliminate grid strategies that have been stuck for a long time.
Group: 💰 Money Management Settings 💰
The parameters in this group determine the financial conditions of the simulation. Specify values that are as close as possible to your actual values in order to get reliable results.
* `Capital': The initial deposit amount for the simulation.
* `Leverage`: The leverage used to calculate the margin.
* `Slippage` (%): Simulates the difference between the expected and actual order execution price. The specified percentage will be applied to each transaction.
* `Commission` (%): The trading commission of your exchange as a percentage. It is charged at the execution of each order (both at opening and closing).
* `Liquidation Level' (%): Maintenance Margin Ratio. This is a critical parameter for a realistic test. Liquidation in the simulator occurs if the Equity of the account (Capital + Unrealized P&L) falls below the level of the supporting margin.
Group: 🛠 Optimization Parameters 🛠
This is the "heart" of the optimizer, where you set ranges for iterating through the grid parameters.
* `Part`: The portion number of the combinations to be tested. Start with 1, and then increment (`2`, 3, ...) sequentially to check all generated strategies.
* `Combinations in Part': The number of backtests performed at a time (in one "Part"). Increasing the value may speed up the process, but it may cause the script to error due to platform limitations. If an error occurs, it is recommended to switch to the step below and back.
Three fields are available for each of the following parameters (`SO Count`, SO Step, SO Multiplier, etc.):
* `Min`: Minimum value for testing.
* `Max': The maximum value for testing.
* `Step`: The step with which the values in the range from Min to Max will be iterated over.
There is also a checkbox for each parameter. If it is enabled, the parameter will be optimized in the specified range. If disabled, only one value specified in the Min field will be used for all tests.
* 'Stop Loss': In addition to the standard settings Min, Max, Step, it has an additional parameter:
* `Type`: Defines how the stop loss price is calculated.
* From entry point: The SL level is calculated once from the entry price (base order price).
* From breakeven line: The SL level is dynamically recalculated from the average position price after each new safety order is executed.
Group: ⚡️Filters⚡️
Filters allow you to filter out those results from the final table that do not meet your minimum requirements.
For each filter (`Max Profit`, Min Drawdown, `Min Trade Length`), you can:
1. Turn it on or off using the checkbox.
2. Select the comparison condition: Greater (More) or Less (Less).
3. Set a threshold value.
*Example:* If you set Less and 20 for the Min Drawdown filter, only those strategies with a maximum drawdown of less than 20% will be included in the final table.
Group: 🎨 Visual Settings 🎨
Here you can customize the appearance of the results table.
* `Position': Selects the position of the table on the screen (for example, Bottom Left — bottom left).
* `Font Size': The size of the text in the table.
* `Header Background / Data Background`: Background colors for the header and data cells.
* `Header Font Color / Data Font Color`: Text colors for the header and data cells.
Important Notes and Limitations
So that you can use the Autoback Grid Lab as efficiently and consciously as possible, please familiarize yourself with the following key features of its work.
1. It is a Tool for Analysis, not for Signals
It is extremely important to understand that this script does not generate trading signals in real time. Its sole purpose is to conduct in—depth research (**backtesting**) on historical data.
* The results you see in the table are a report on how a particular strategy would have worked in the past.
* The script does not provide alerts and does not draw entry/exit points on the chart for the current market situation.
* Your task is to take the best sets of parameters found during optimization and use them in your real trading, for example, when setting up a trading bot or in a manual trading system.
2. Features Of Calculations (This is not a "Repainting")
You will notice that the results table appears and is updated only once — when all historical bars on the chart are loaded. It does not change in real time with each tick of the price.
This is correct and intentional behavior.:
* To test thousands, and sometimes millions of combinations, the script needs to perform a huge amount of calculations. In the Pine Script™ environment, it is technically possible to do this only once, at the very last bar in history.
* The script does not show false historical signals, which then disappear or change. It provides a static report on the results of the simulation, which remains unchanged for a specific historical period.
3. Past Results do not Guarantee Future Results.
This is the golden rule of trading, and it fully applies to the results of backtesting. Successful strategy performance in the past is not a guarantee that it will be as profitable in the future. Market conditions, volatility and trends are constantly changing.
My tool, especially when sorting by finalScore, is aimed at finding statistically stable and reliable strategies to increase the likelihood of their success in the future. However, it is a tool for managing probabilities, not a crystal ball for predicting the future. Always use proper risk management.
4. Dependence on the Quality and Depth of the Story
The reliability of the results directly depends on the quantity and quality of the historical data on which the test was conducted.
* Always strive to use the maximum number of bars available (`Bars Count: 25,000`) so that your strategy is tested on different market cycles (rise, fall, flat).
* The results obtained on data for one month may differ dramatically from the results obtained on data for two years. The longer the testing period, the higher the confidence in the parameters found.
Conclusion
The Autoback Grid Lab is your personal research laboratory, designed to replace intuitive guesses and endless manual selection of settings with a systematic, data—driven approach. Experiment with different assets, timeframes, and settings ranges to find the unique combinations that best suit your trading style.
Scalping, Swing Pro: Urban Towers + Bollinger(0.5)+ WMA by KidevThis indicator combines narrow Bollinger Bands (σ = 0.5) with a Weighted Moving Average (WMA-96) to provide traders with a reliable framework for identifying both short-term scalps and medium-term swing setups.
Bollinger Bands (0.5σ):
Traditional Bollinger Bands at 2σ cover ~95% of price movement, while 0.5σ bands narrow the focus to ~50% of price activity. This tighter structure makes them ideal for detecting volatility contractions, consolidations, and early breakout signals.
WMA-96 as Trend Reference:
The 96-period WMA acts as a slower, more stable directional guide. Unlike shorter WMAs, this longer setting filters noise and serves as a reference line for the dominant trend. Traders can use it as an anchor for intraday or swing positions.
Scalping & Swing Benefits:
Price holding above the WMA-96 while staying near the upper 0.5σ band often signals strength.
Contractions (squeezes) in the 0.5σ band followed by expansion frequently mark breakout zones.
Pullbacks toward the WMA-96 combined with band signals can act as re-entry or risk-defined trade areas.
This script provides a balanced view of momentum and stability — the 0.5σ bands reveal short-term volatility shifts, while the WMA-96 grounds the trader in the prevailing trend.
LRSlope - Linear Regression SlopeI modified UCSgears version by simply smoothing regression curve to reduce noise a little bit.
As it mentioned originally "Good way to see if the trend is accelarating or decelarating."
Lot Size & Risk Calculator [FunkyMax]🔹 Overview
This script is a lot size and risk management calculator directly integrated into your chart.
It automatically determines the optimal position size based on your account balance, chosen risk percentage, and stop-loss distance.
In addition to risk calculation, the script also displays Entry, Stop-Loss, and Take-Profit levels on the chart, along with a dashboard panel summarizing all key trading information:
Account balance
Selected risk %
Amount at risk
Optimal lot size
Stop & TP distances in pips
Risk/Reward ratios (R:R)
Potential profit for each TP
Contract size & pip size
🔹 Key Features
✅ Automatic lot size calculation based on:
Account balance
Risk %
Stop-Loss distance
✅ Clear visual display:
Dynamic labels for Entry, Stop, and TP (supports 1 or 2 TPs)
Colored lines (green for TP, red for SL, blue for Entry)
Profit/Loss zones filled on the chart
✅ Dashboard panel:
Compact summary displayed on-screen (position customizable)
Real-time automatic updates
✅ Automatic asset detection:
Forex: contract size = 100,000 (pip = 0.0001 or 0.01 for JPY pairs)
Gold (XAUUSD): contract size = 100 (pip = 0.1)
Indices & crypto: contract size = 1 (pip = 1.0)
Manual override available (custom contract & pip size)
✅ Multi-currency support:
Display in USD or EUR
🔹 How to Use
Add the indicator to your chart then define entry price, stop-loss, Take-Profit targets (TP1 & TP2) by clicking directly on chart. Then, configure settings of the indicator as needed :
1. Basic settings (Money Management tab):
Enter your account balance (e.g., $1000).
Select your risk percentage (e.g., 1%, 2%, 3%).
Choose your deposit currency (USD or EUR).
2. Trading levels (Levels tab):
Set your Entry price.
Define your Stop-Loss (SL).
Add up to two Take-Profit targets (TP1 / TP2).
3. Chart display:
Toggle levels on/off with Display TP & SL on chart.
Levels appear automatically with lot size and R:R ratio.
4. Dashboard (Dashboard tab):
Choose text size (Normal / Small).
Position the info panel anywhere (top/bottom/left/right).
🔹 Benefits
Time-saving: no more manual lot size calculations
Risk control: enforces consistent money management
Versatility: works across Forex, Gold, Indices, Crypto
Clarity: instant visualization of risk and potential reward
🔹 Limitations
Pip value may vary depending on your broker (CFDs, Futures, etc.). Double-check with your platform.
Educational purpose only: this script is not financial advice.
🔹 Author
Script developed and optimized by FunkyMax.
Killzone -WinCAlgoWhat is this Indicator?
The Killzone Trading Sessions Indicator is a comprehensive tool designed to identify and visualize the most important trading sessions across all financial markets. This indicator highlights key timeframes when institutional traders and market makers are most active, creating high-probability trading opportunities in stocks, crypto, commodities, and indices.
How to Use:
- Session Boxes: Each colored box represents a trading session's high and low range
- EQ-OTE Levels: Look for price reactions at 50% and 70% levels within sessions
- Silver Bullets: Purple background highlights high-probability reversal times
- CBDR Analysis: Use deviation levels to identify potential breakout targets
Trading Strategy:
- Wait for price to enter a killzone session
- Look for liquidity sweeps at session highs/lows
- Enter trades at EQ-OTE levels with proper risk management
- Use Silver Bullet times for precise entry timing
- Target deviation levels for profit-taking
Sessions+Days Marker (SigmaSita)An indicator that marks the sessions and days. You can adjust session start times. Sessions are Asian, London and New York.
INE-VISION-PRO🎯 PROFESSIONAL EMA200 RIBBON INDICATOR
✨ FEATURES:
• Colored ribbon between EMA200 High and EMA200 Close
• Automatic trend detection (price above/below)
• Customizable sources (High/Close adjustable)
• Fully configurable colors
• Intuitive interface
🎨 SMART COLORS:
• GREEN: Price above EMA200 (bullish trend)
• RED: Price below EMA200 (bearish trend)
• GRAY: Neutral position
🔧 PARAMETERS:
• Adjustable EMA200 length
• Customizable High/Close sources
• Organized color group
• Ribbon display on/off
💡 Perfect for visually identifying trend zones and potential reversals on all timeframes.
📈 Developed for inemployable.com community
LogPressure Envelope [BOSWaves]LogPressure Envelope – Adaptive Volatility & Trend Visualizer
Overview
LogPressure Envelope is a specialized trading tool designed to normalize market behavior using logarithmic price scaling while providing an adaptive framework for volatility and trend detection. The indicator calculates a log-based moving average midline, surrounds it with asymmetric volatility envelopes, and replaces the conventional cloud with progressive fan lines to present price action in a more interpretable form.
By integrating rate-of-change midline coloring, fading trend strength, and structured buy/sell markers, LogPressure Envelope simplifies the reading of complex market dynamics. Its design makes it suitable for multiple trading approaches, including scalping, intraday, and swing trading, where volatility behavior and trend shifts must be understood quickly and objectively.
Unlike static envelope indicators, LogPressure Envelope adapts continuously to price scale and volatility conditions. It evaluates log-transformed prices, applies configurable moving average methods (EMA, SMA, WMA), and derives asymmetric standard-deviation bands for both upside and downside moves. These envelopes are projected as fan lines with adjustable opacity, producing a layered volatility map that evolves with the market.
This system ensures each visual element—midline shading, candle coloring, fan structure, and signal markers—reflects real-time market conditions, allowing traders to interpret volatility expansion, contraction, and directional bias with clarity.
How It Works
The foundation of LogPressure Envelope is the logarithmic transformation of price. By operating in log space, the indicator removes distortions caused by large nominal price differences across assets, enabling consistent analysis of both low-priced and high-priced instruments.
A moving average of log prices is calculated (EMA, SMA, or WMA depending on user input) and then re-converted to normal price scale, forming the log midline. Standard deviation of log prices is then measured over a separate period, with independent multipliers for upside and downside deviations. This asymmetry captures the fact that markets often expand differently in bullish versus bearish phases.
Instead of plotting a filled cloud, the envelope is expressed as ten equidistant fan lines stretching from the lower to upper boundary. Each line is shaded progressively to visualize volatility clustering and directional strength without overloading the chart.
Trend determination is smoothed using a fade mechanism: shifts in bias do not flip instantly but gradually move toward the new state, producing fewer false transitions. Buy and sell markers are generated when trend strength crosses confirmation thresholds, ensuring signals are event-driven and contextually meaningful.
Signals and Visuals
LogPressure Envelope provides multiple layers of structured signals:
Midline Bias – Central moving average colored by rate-of-change, reflecting directional acceleration or deceleration.
Volatility Fan – Ten progressive lines forming a gradient between lower and upper bands, visually encoding volatility spread.
Buy Signals – Labels below bars when upward trend strength is confirmed.
Sell Signals – Labels above bars when downward trend strength is confirmed.
Candle Coloring – Optional shading of candles based on trend alignment with the log midline, highlighting bullish, bearish, or neutral conditions.
These signals remain clear even during high-volatility phases, with visual hierarchy maintained through progressive opacity control.
Interpretation
Trend Analysis : Midline direction and candle coloring provide continuous feedback on prevailing bias. Upward-sloping midlines with blue shading indicate bullish phases, while downward slopes with orange shading confirm bearish conditions.
Volatility and Risk Assessment : Expansion of fan lines indicates rising volatility and potential breakout conditions; contraction indicates consolidation and possible mean reversion.
Signal Confirmation : Buy and sell markers validate transitions when trend strength thresholds are crossed, aligning with volatility envelope dynamics.
Market Context : Asymmetric envelopes allow traders to see where bearish acceleration differs from bullish expansion, improving interpretation of liquidity conditions and institutional pressure.
Strategy Integration
LogPressure Envelope can be applied across trading styles:
Trend Following : Enter trades in the direction of midline bias, confirmed by buy or sell markers.
Pullback Entries : Use midline retests during trending conditions as lower-risk continuation points.
Volatility Breakouts : Identify sharp expansions in fan line spacing as early signals of directional moves.
Reversal Strategies : Fade extreme envelope touches when momentum shows exhaustion and fan contraction begins.
Multi-Timeframe Confirmation : Align signals from higher and lower timeframes to reduce noise and validate trade setups.
Stop-loss levels can be set near the opposite envelope boundary, while targets may be managed through progressive volatility zones or midline convergence.
Advanced Techniques
For greater precision, LogPressure Envelope can be combined with other analytical tools:
Pair with volume or liquidity measures to validate breakout or reversal conditions.
Use momentum indicators to confirm ROC-based midline bias.
Track sequences of fan line expansions and contractions to anticipate regime shifts in volatility.
Apply across multiple timeframes to monitor how volatility clusters align at different market scales.
Adjusting parameters such as envelope multipliers, moving average type, and fade bars allows the indicator to adapt to diverse asset classes and volatility environments.
Inputs and Customization
Midline Type : Select EMA, SMA, or WMA.
Line Opacity : Control visibility of fan lines.
Enable Candle Coloring : Toggle trend-based bar shading.
MA Length / StdDev Length : Define periods for midline and volatility calculation.
Multipliers : Set asymmetric scaling for upside and downside envelopes.
Fade Bars : Control smoothness of trend strength transitions.
Fan Lines : Adjust number of envelope subdivisions for visualization granularity.
Why Use LogPressure Envelope
LogPressure Envelope translates complex volatility and trend interactions into a structured and adaptive framework. By combining logarithmic normalization, asymmetric standard deviation envelopes, and smoothed trend confirmation, it allows traders to:
Normalize price analysis across assets of different scales.
Visualize volatility expansion and contraction in real time.
Identify and confirm directional shifts with objective signal markers.
Apply a disciplined system for trend, breakout, and reversal strategies.
This indicator is designed for traders who want a systematic, visually clear approach to volatility-based market analysis without relying on static bands or arbitrary scaling.
Asistente de Barra de Estado ADX
// This is an all-in-one indicator designed to visually represent the market environment
// based on the G2 (trend-following) and SMOG (reversal/ranging) trading systems.
// It replaces the need for a separate ADX indicator.
//
// FEATURES:
//
// 1. Multi-Timeframe ADX:
// - 5-Minute ADX (Blue Line - The "Referee"): Determines the overall market environment (Trending or Ranging).
// - 1-Minute ADX (Yellow Line - The "Trigger"): Measures immediate momentum for trade entries.
//
// 2. Environment Background Coloring:
// The indicator's own background panel changes color to provide an instant signal:
// - Green: G2 Bullish Environment (5-min ADX > 25 & Price is Trending Up)
// - Red: G2 Bearish Environment (5-min ADX > 25 & Price is Trending Down)
// - Gray: Gray Zone (Indecisive/Risky Market, 5-min ADX between 20-25)
// - Blue: SMOG Environment (Weak/Ranging Market, 5-min ADX < 20)
//
// 3. Reference Lines:
// Includes horizontal lines at the key 20 and 25 levels for easy reference.
//
// HOW TO USE:
// Use this indicator as the primary tool to decide whether to look for a G2
// (trend-following) or a SMOG (reversal) setup.
//
10 AM Reversal/Continuation Zone BY DAN GESPlots the high and low between 9.30 - 10:00am ET
Colours the zone between those two levels.
Highlights when price breaks above or below that zone after 10:00am
ST+ TP1-TP5 + CALL/PUT 1. The Indicator's General Concept
The indicator works by:
Using the Supertrend indicator to determine when a new trend (bullish or bearish) begins.
Once a new trend is detected:
It determines the entry price.
It calculates the stop-loss (SL).
It calculates five profit levels, TP1 to TP5.
It draws horizontal lines on the chart representing the entry, SL, TP1-TP5, with labels on the right side (as shown in the image).
It can also display a CALL or PUT symbol above the signal candle.
It tracks price movement to determine if a target has been reached or if the stop-loss has been hit.
2. The Inputs That Control the Indicator
You can modify these values according to your strategy:
ATR Length → The number of candles used to calculate volatility.
Supertrend Factor → Controls the sensitivity of the supertrend. (The higher the value, the fewer the signals.)
TP1 to TP5 → ATR multipliers to set targets.
SL → ATR multiplier to set stop loss.
Extend Bars → The distance the lines extend to the right before the bar.
Show CALL/PUT → Shows or hides the trend signal.
Show TP Flags → Enables or disables small TP flags above the candles.
3. Determining the Trend
The indicator uses Supertrend to determine:
Is the market in an uptrend or a downtrend?
If the trend changes from bearish to bullish, it registers a CALL signal.
If the trend changes from bullish to bearish, it registers a PUT signal.
The first candle at which this change occurs is called a reversal candle.
4. Calculating Levels
When a reversal candle occurs:
Entry price = closing price of the candle.
Stop Loss (SL):
For an uptrend = Price - ATR × Multiplier.
For a downtrend = Price + ATR × Multiplier.
Profit Levels (TP1, TP5):
If up → Price + ATR × (multipliers).
If down → Price - ATR × (multipliers).
5. Drawing Lines and Labels
Draws horizontal lines representing:
Entry (green)
SL (red)
TP1-TP5 (blue)
Places labels on the right side of the chart, as shown in the image:
Each label shows the price level.
The label reads: "TP1: 123.45" or "Entry: 120.00", etc.
The positions of the lines and labels are updated automatically with each new candle.
6. Showing CALL and PUT Signals
If the new trend is up, a green CALL label will appear above the reversal candle.
If the new trend is down, a red PUT label will appear above the reversal candle.
7. Target Tracking and Stop Loss
The indicator tracks each candle after the signal:
If the price touches one of the targets (TP1 to TP5):
It marks this target.
It stops tracking this target so that it does not repeat the signal.
If the price touches the Stop Loss (SL):
It closes the trade and stops tracking completely.
8. Blue Flags Option
There is an additional option:
If you enable it, a small blue flag will appear above or below the candle when any target is reached.
If you disable it, you won't see these flags; you'll just see the sidebars and labels.
9. Live and Dynamic Update
The indicator uses an automatic update every minute.
Ensures that all lines and labels remain fixed at the last candlestick of the analysis.
10. Trade Lifecycle
Wait for a reversal in a supertrend.
At the first reversal → set Entry/SL/TP1..TP5.
Draw lines and labels on the chart.
Monitor price action:
If any TP is met → mark it as met.
If the SL is reached → cancel the trade.
Wait for a new signal to begin a new cycle.
Conclusion
The indicator provides you with a complete visual trading system.
Defines entry points, stop-losses, and profit targets.
Everything is displayed on the chart with clear colored lines and labels.
Keeps targets organized and prevents duplicate signals.
Can be used on any timeframe or market.
INE-VISION-PRO🎯 PROFESSIONAL EMA200 RIBBON INDICATOR
✨ FEATURES:
• Colored ribbon between EMA200 High and EMA200 Close
• Automatic trend detection (price above/below)
• Customizable sources (High/Close adjustable)
• Fully configurable colors
• Intuitive interface
🎨 SMART COLORS:
• GREEN: Price above EMA200 (bullish trend)
• RED: Price below EMA200 (bearish trend)
• GRAY: Neutral position
🔧 PARAMETERS:
• Adjustable EMA200 length
• Customizable High/Close sources
• Organized color group
• Ribbon display on/off
💡 Perfect for visually identifying trend zones and potential reversals on all timeframes.
📈 Developed for inemployable.com community
liteon oem-1Moving Average Trend Strategy,A dual moving average strategy for trend judgment and analysis, suitable for multiple assets/instruments
فلتر EMA 20/50/200 - صعودي فقط//@version=5
indicator("فلتر EMA 20/50/200 - صعودي فقط", overlay=true)
// مدخلات
lenFast = input.int(20, "EMA Fast")
lenSlow = input.int(50, "EMA Slow")
lenTrend = input.int(200,"EMA 200")
// حساب المتوسطات
emaFast = ta.ema(close, lenFast)
emaSlow = ta.ema(close, lenSlow)
emaTrend = ta.ema(close, lenTrend)
// ميل EMA200
slopeBars = input.int(5, "عدد الشموع لميل EMA200")
emaTrendSlope = emaTrend - emaTrend
// شروط الفلتر
trendUp = close > emaTrend and emaFast > emaSlow and emaSlow > emaTrend and emaTrendSlope > 0
bullCross = ta.crossover(emaFast, emaSlow)
// إشارة الفلتر
longFilter = trendUp and bullCross
// عرض على الشارت
plot(emaFast, color=color.orange, title="EMA20")
plot(emaSlow, color=color.blue, title="EMA50")
plot(emaTrend, color=color.green, title="EMA200")
plotshape(longFilter, title="فلتر شراء", style=shape.labelup,
text="✅ فلتر صعودي", color=color.green, location=location.belowbar, size=size.tiny)
// إخراج بوول (للإكسيل أو فرز الرموز في Screener)
filterOutput = longFilter ? 1 : 0
plotchar(filterOutput, char="●", color=longFilter ? color.green : na, title="فلتر فعّال")