Pi Cycle OscillatorThis oscillator combines the Pi Cycle Top indicator with a percentile-based approach to create a more precise and easy to read market timing tool.
Instead of waiting for moving average crossovers, it shows you exactly how close you are to a potential market top.
Orange background means you should start preparing for a potential top and look into taking profits.
Red background means that the crossover has happened on the original Pi Cycle Indicator and that you should have already sold everything. (Crossover of the gray line aka 100)
Thank you
Bollinger Band Width Percentile - The_Caretaker
Pi Cycle Top - megasyl20
指標和策略
VVIX/VIX Ratio with Interpretation LevelsVVIX/VIX Ratio with Interpretation Levels
This indicator plots the ratio of VVIX (Volatility of Volatility Index) to VIX (CBOE Volatility Index) in a separate panel.
The ratio highlights when the options market is pricing unusually high volatility in volatility (VVIX) relative to the base volatility index (VIX).
Ratio < 5 → Complacency: Markets expect stability; often a pre-shock zone.
5–6 → Tension Building: Traders begin hedging volatility risk while VIX remains low.
6–7 → Elevated Risk: Divergence warns of potential regime change in volatility.
> 7 → High-Risk Zone: Options market pricing aggressive swings; can precede volatility spikes in equities.
The script also includes dashed interpretation lines (5, 6, 7) and automatic labels when key thresholds are crossed.
Background shading helps visualize current regime.
Use cases:
Detect hidden stress when VIX remains calm but VVIX rises.
Anticipate potential volatility regime shifts.
Support risk management and timing of long/short volatility strategies.
Stochastic (Tri Band Strategy)Based on DayTraderRockStar 1m strategy, but instead of 4 band, there is only 3 and are all overlayed onto the same chart. for how the strategy works refer to this guide www.youtube.com
Ichimoku + Tenkan/Kijun Mini-Cloud (Aligned v6)Created a cloud between conversion line and baseline for easy visibility
BB Crosses Optimized - [JTCAPITAL]BB Crosses Optimized is a modified way to use Bollinger Bands for Trend-Following
The indicator works by calculating in the following steps:
1. The source gets smoothed out using a moving average
2. Calculating the Bollinger Bands using the SMA of the smoothed source and the standard deviation of the smoothed source.
3. Trigger a signal based on current price and the buy/sell conditions.
--Buy and sell conditions--
-The buy and sell conditions are defined by the price going above/below the first standard deviation. When this goes on the opposite direction of the current trend, the trend changes. If this goes in the same direction of the current trend, the line follows the price by moving up with the standard deviation.
-When using the ATR filter the ATR gets subtracted from the lows or added onto the highs to eliminate false signals in choppy markets.
--Features and Parameters--
-Allows the usage of different sources
-Allows the usage of different moving average types
-Allows the changing of the length of the ATR
-Allows the changing of the length of the bollinger bands period
-Allows the changing of the standard deviation used from the bollinger bands
-Allows the changing of the length for smoothing out the price data
--Details--
This script is using multiple moving averages, sometimes even stacked upon eachother. And it also uses the moving average of the raw data on a short period to calculate the standard deviations. This in combination with the ATR filter is meant to eliminate as much false signals as I could. Without making all the entries and exits extremely delayed.
Be aware that disabling the ATR will allow for faster entries and exits but also allow for more false signals. It is recommended to change the parameters to fit your liking and to adjust to the timeframe you are working on.
Enjoy!
Daily HOD / LOD Anchored VWAP (24/7 Markets)mart Daily HOD/LOD Anchored VWAP (Auto Detect + Alerts)
This indicator automatically anchors VWAP at the High of Day (HOD) and Low of Day (LOD) for each session/day.
No more manual anchoring — the script tracks intraday highs and lows in real-time and resets cleanly at the start of each trading day or session.
✨ Features
✅ Auto-anchored AVWAP at daily High and Low
✅ Works for stock markets (with fixed sessions) and crypto markets (24/7)
✅ Clean reset every session/day
✅ Separate AVWAP lines for HOD and LOD
✅ Customizable colors & line widths
✅ Alerts included 🚨 (get notified instantly when a new High/Low AVWAP starts)
📈 Use Cases
Spot true intraday support/resistance levels
Track where institutions may be defending positions
Combine with price action, orderflow, or volume profile strategies
Perfect for intraday trading, scalping, and swing entries
⚡ Alerts
New HOD AVWAP → Fires when price makes a fresh high of day, starting a new anchored VWAP.
New LOD AVWAP → Fires when price makes a fresh low of day, starting a new anchored VWAP.
🛠️ Settings
Show/hide HOD or LOD VWAP
Customize line colors and thickness
Works seamlessly across stocks, futures, forex, and crypto
💡 Pro Tip:
AVWAP from the high and low of the day often acts as a magnet for price. Watch how price reacts when revisiting these levels — confluence with other indicators = high-probability setups.
⚠️ Disclaimer:
This script is for educational purposes only. It is not financial advice. Always manage your own risk.
BTC Macro Composite Index -Offsettingthis is an indicator using Howell's Thesis of BTC moved by liquidity :
instead of using global M2, it composes :
Global Liquidity (41%) = USD-adjusted CB balance sheets (WALCL, EUCBBS, JPCBBS, CNCBBS)
Investor Risk Appetite (22%)=Copper/Gold ratio, inverted VIX (risk-on), HY vs IG OAS
Gold-related factors(15-20%)= XAUUSD + BTC/Gold ratio (Gold influence on Bitcoin)
All of it offset foward 90 days , and it does a better job on identifying where the btc price will be headed .....
AekFreedom All-in-OneIndicator Description: All-in-One Technical Analysis Suite
This indicator is an "All-in-One" tool designed to combine multiple popular technical analysis instruments into a single script. It allows traders to perform comprehensive chart analysis, reduce the number of indicators needed, and customize everything in one place.
The core concept of this indicator is to display all elements as an overlay on the main price chart, providing a clear view of the relationship between the various tools and the price action.
💡 Key Features
The indicator consists of 6 primary modules, each of which can be independently enabled, disabled, and customized through the Settings menu (⚙️).
1. Automatic Candle Pattern Coloring
What it does: Detects significant reversal candlestick patterns and changes their color for easy identification.
Patterns Detected:
Engulfing (Bullish/Bearish): Identifies engulfing candles with a special condition that the "body must be larger than the wicks" to filter for only strong momentum candles.
Pin Bar (Bullish/Bearish): Highlights candles with long wicks, indicating price rejection.
Best for: Identifying potential reversal or continuation signals at key support and resistance levels.
2. FVG (Fair Value Gap) with Auto-Mitigation
What it does: Detects price imbalances created by strong buying or selling pressure and draws them as price zones.
Special Feature: When the price returns to "fill" or mitigate the gap, the FVG box is automatically deleted from the chart. This keeps the chart clean and displays only the currently relevant zones.
Best for: Identifying key support and resistance zones where the price is likely to return and react.
3. VWAP and Standard Deviation Bands
What it does: Displays the VWAP (Volume Weighted Average Price) line, which is the average price weighted by volume, along with Standard Deviation Bands.
Customization: The VWAP calculation can be anchored to reset every Session (Day), Week, Month, or Year.
Best for: Determining the intraday trend, identifying "fair value" zones, and serving as significant support and resistance levels.
4. Parabolic SAR (Stop and Reverse)
What it does: Plots dots on the chart that trail the price to indicate trend direction.
Application:
Dots below price: Indicate an uptrend.
Dots above price: Indicate a downtrend.
Best for: Confirming trend direction and providing dynamic Trailing Stop points to protect profits.
5. 3 Customizable EMAs (Exponential Moving Averages)
What it does: Displays three separate EMA lines, which are powerful, fundamental tools for trend analysis.
Customization: The Length and Color of each of the three EMAs can be fully customized.
Best for: Confirming trend strength, identifying pullback entry opportunities, and acting as dynamic support and resistance.
6. Bollinger Bands (BB)
What it does: Displays a price channel that measures market volatility, consisting of a middle basis line (SMA) and upper/lower bands.
Application:
Squeezing Bands: Signal a period of low volatility and a potential for a strong breakout.
Price touching outer bands: Can indicate short-term overbought or oversold conditions.
Best for: Gauging volatility and identifying potential mean-reversion opportunities in ranging markets.
⚙️ How to Use and Customize
The core strength of this indicator is its flexibility. Users can go to the indicator's Settings (⚙️) panel, where all functions are organized into clear groups. You can:
Enable or Disable each tool independently.
Customize all parameters, such as EMA lengths, band multipliers, colors, and more.
Combine tools to fit your specific trading style. For example, you might use only FVG + VWAP for intraday trading, or EMAs + Candle Patterns for trend-following strategies.
This indicator is like a "Swiss Army Knife" for traders, combining essential tools into one package to make chart analysis faster and more efficient.
Staggered Exponential PullbacksIndicator Description: Staggered Exponential Pullbacks (Final)
Core Concept
This indicator is designed to dynamically track and visualize price pullbacks from a recent high. It serves as an intelligent alert system and a tool for visualizing potential support levels that follow a predefined, non-linear logic.
Instead of a fixed percentage interval, the indicator calculates the levels based on a fixed, exponentially increasing sequence of percentages. The distance between the levels increases as the price falls further. This models a strategy where larger price movements are tolerated as a pullback deepens before the next signal level is reached. The basis for this calculation is always the highest close of the last x candles.
Key Features
This indicator goes far beyond a simple calculation, offering a range of intelligent features for professional use:
Cascading, Fixed Levels: The levels are based on a fixed sequence of percentage distances (3.0%, 3.6%, 4.3%, etc.), where each new level is calculated from the previous level.
Persistent Support Levels ("Floors"): Once an alert level is breached, it transforms into a fixed support line ("floor"). This line will never move down, even if the market high subsequently drops.
Automatic Upward Adjustment: Established floors are automatically pulled upwards when the market shows new strength and makes higher highs. A once-reached -3% floor will therefore rise with the market.
Intelligent, Self-Cleaning Reset Logic: The indicator recognizes when a pullback sequence has ended and a new one has begun. "Ghost lines" from old, irrelevant price movements are automatically removed from the chart to ensure maximum clarity.
Cascade-Proof Alerts: Even during extremely fast sell-offs that break through multiple levels in a single candle, the indicator correctly captures every single level breach.
Customizable Visualization: All key parameters, such as the lookback period and the colors of the lines, can be easily adjusted in the settings.
Visual Elements on the Chart
The Orange Line (Highest Close): This is the reference line. It always shows the highest closing price within the defined lookback period and has a step-line shape.
The 'Floor' Lines (Default: Yellow): These are solid lines that indicate which percentage levels have already been breached in the current sequence. They function as established support levels.
The 'Next Due' Line (Default: Purple): This is a step-line that displays the next expected alert level. It moves dynamically with the calculation. As soon as the price crosses this line, an alert is triggered, and it transforms into a yellow "Floor" line.
Settings (Inputs)
Number of Candles (Lookback): Defines how many past candles are used to determine the highest closing price.
Displayed Alert Levels (Max 10): Determines the maximum number of levels the indicator will calculate and display.
Color of Floors: Allows you to freely choose the color for the solid, established support lines.
Color of Next Due Line: Allows you to freely choose the color for the next, untriggered alert line.
Setting Up Alerts (Important!)
Since the indicator uses dynamic alert messages, the alert must be set up as follows:
Add the indicator to the chart.
Click the clock icon ("Alert") in the top toolbar.
In the "Condition" field, select the name of this indicator: Staggered Exponential Pullbacks.
In the second dropdown menu, you must select the option "Any alert() function call".
Message: The message box can be left empty. The indicator automatically generates a detailed message (e.g., "Price Alert: Level 2 (3.6%) reached!").
Click "Create".
You only need one single alert to cover all 10 levels.
Important Disclaimer: Not Financial Advice
This indicator is purely a technical analysis tool for visualizing price movements. The displayed lines and triggered alerts do not constitute buy or sell recommendations and are not a form of financial or investment advice. They serve for informational and analytical purposes only.
Trading decisions based on the information from this indicator are made solely at your own risk and responsibility. The author and developer of this script assume no liability for any trading losses. Always conduct your own comprehensive analysis and, if necessary, consult a qualified financial advisor before making any trading decisions.
[Top] Simple ATR TP/SLSimple TP/SL from ATR (Locked per Bar) - Advanced Position Management Tool
What This Indicator Does:
Automatically calculates and displays Take Profit (TP) and Stop Loss (SL) levels based on Average True Range (ATR)
Locks ATR values and direction signals at the start of each bar to prevent repainting and provide consistent levels
Offers multiple direction detection modes including real-time candle-based positioning for dynamic trading approaches
Displays entry, TP, and SL levels as clean horizontal lines that extend from the current bar
Original Features That Make This Script Unique:
Bar-Locked ATR System: ATR values are captured and frozen at bar open, ensuring levels remain stable throughout the bar's progression
Multi-Modal Direction Detection: Four distinct modes for determining TP/SL positioning - Trend Following (EMA-based), Bullish Only, Bearish Only, and real-time Candle Based
Real-Time Candle Flipping: In Candle Based mode, TP/SL levels flip immediately when the current candle changes from bullish to bearish or vice versa
Persistent Line Management: Uses efficient line object management to prevent ghost lines and maintain clean visual presentation
Flexible Base Price Selection: Choose between Open (static), Close (dynamic), or midpoint (H+L)/2 for entry level calculation
How The Algorithm Works:
ATR Calculation: Captures ATR value at each bar open using specified length parameter, maintaining consistency throughout the bar
Direction Determination: Uses different methods based on selected mode - EMA crossover for trend following, or real-time candle color for dynamic positioning
Level Calculation: TP level = Base Price + (Direction × TP Multiplier × ATR), SL level = Base Price - (Direction × SL Multiplier × ATR)
Visual Management: Creates persistent line objects once, then updates their positions every bar for optimal performance
Direction Modes Explained:
Trend Following: Uses 5-period and 12-period EMA relationship to determine trend direction (locked at bar open)
Bullish Only: Always places TP above and SL below entry (traditional long setup)
Bearish Only: Always places TP below and SL above entry (traditional short setup)
Candle Based: Dynamically adjusts based on current candle direction - flips in real-time as candle develops
Key Input Parameters:
ATR Length: Period for ATR calculation (default 14) - longer periods provide smoother volatility measurement
TP Multiplier: Take profit distance as multiple of ATR (default 1.0) - higher values target larger profits
SL Multiplier: Stop loss distance as multiple of ATR (default 1.0) - higher values allow more room for price movement
Base Price: Reference point for level calculations - Open for static entry, Close for dynamic tracking
Direction Mode: Method for determining whether TP goes above or below entry level
How To Use This Indicator:
For Position Sizing: Use the displayed SL distance to calculate appropriate position size based on your risk tolerance
For Entry Timing: Wait for price to approach the entry level before taking positions
For Risk Management: Set your actual stop loss orders at or near the displayed SL level
For Profit Taking: Use the TP level as initial profit target, consider scaling out at this level
Mode Selection: Choose Candle Based for scalping and quick reversals, Trend Following for swing trading
Visual Style Customization:
Line Colors: Customize TP line color (default teal) and SL line color (default orange) for easy identification
Line Widths: Adjust TP/SL line thickness (1-5) and entry line thickness (1-3) for visibility preferences
Clean Display: Lines extend 3 bars forward from current bar and update position dynamically
Best Practices:
Use on clean charts without multiple overlapping indicators for clearest visual interpretation
Combine with volume analysis and key support/resistance levels for enhanced decision making
Adjust ATR length based on your trading timeframe - shorter for scalping, longer for position trading
Test different TP/SL multipliers based on the volatility characteristics of your chosen instruments
Consider using Trend Following mode during strong trending periods and Candle Based during ranging markets
Major & Modern Wars TimelineDescription:
This indicator overlays vertical lines and labels on your chart to mark the start and end dates of major global wars and modern conflicts.
Features:
Displays start (red line + label) and end (green line + label) for each war.
Covers 20th century wars (World War I, World War II, Korean War, Vietnam War, Gulf War, Afghanistan, Iraq).
Includes modern conflicts: Syrian Civil War, Ukraine War, and Israel–Hamas War.
For ongoing conflicts, the end date is set to 2025 for timeline visualization.
Customizable: label position (above/below bar), line width.
Works on any chart timeframe, overlaying events on financial data.
Use case:
Useful for historical market analysis (e.g., gold, oil, S&P 500), helping traders and researchers see how wars and conflicts align with market movements.
Mean Reversion Bands & SL Levelsfor identifying stop loss levels and in 4h you can identify the deviation from ema 34 line
DAILY LOW POSITION SIZEDAILY LOW POSITION CALCULATOR, for swing trading.
Tells you exactly how much stocks to buy when stop loss is at low of day.
Apex Edge - London Open Session# Apex Edge - London Open Session Trading System
## Overview
The London Open Session indicator captures institutional price action during the first hour of the London forex session (8:00-9:00 AM GMT) and identifies high-probability breakout and retest opportunities. This system tracks the session's high/low range and generates precise entry signals when price breaks or retests these key institutional levels.
## Core Strategy
**Session Tracking**: Automatically identifies and marks the London Open session boundaries, creating a trading zone from the first hour's price range.
**Dual Entry Logic**:
- **Breakout Entries**: Triggers when price closes beyond the session high/low and continues in that direction
- **Retest Entries**: Activates when price returns to test the broken level as new support/resistance
**Performance Analytics**: Built-in win rate tracking displays real-time performance statistics over user-defined lookback periods, enabling data-driven optimization for each currency pair.
## Key Features
### Automated Zone Detection
- Precise London session timing with timezone offset controls
- Visual session boundaries with customizable colours
- Automatic high/low range calculation and display
### Smart Entry System
- Breakout confirmation requiring candle close beyond zone
- Retest detection with configurable pip distance tolerance
- Separate risk/reward ratios for breakout vs retest entries
- Visual entry arrows with clear trade direction labels
### Performance HUD
- Real-time win rate calculation over customizable periods (7-365 days)
- Total trades tracking with win/loss breakdown
- Average risk-reward ratio display
- Color-coded performance metrics (green >70%, yellow >50%, red <50%)
### PineConnector Integration
- Direct MT4/MT5 execution via PineConnector alerts
- Proper forex pip calculations for all currency pairs
- Customizable risk percentage per trade
- Symbol override capability for broker compatibility
- Automatic SL/TP level calculation in pips
## Critical Usage Requirements
### Pair-Specific Optimization
Each currency pair requires individual optimization due to varying volatility characteristics, institutional participation levels, and typical price ranges during London hours. The performance HUD is essential for identifying optimal settings before live trading.
**Recommended Testing Process**:
1. Apply indicator to desired currency pair and timeframe
2. Experiment with session timing - while 8:00-9:00 AM GMT is standard, some pairs may show improved performance with alternative hourly windows (e.g., 7:00-8:00 AM or 9:00-10:00 AM)
3. Adjust Stop Loss distances, Risk/Reward ratios, and Retest distances
4. Monitor win rate over 30+ day periods using the performance HUD
5. Only proceed with live alerts once consistent 60%+ win rates are achieved
6. Create separate optimized chart setups for each profitable pair/timeframe combination
### Timeframe Specifications
This indicator is specifically designed and tested for:
- **1-minute charts**: Optimal for capturing immediate institutional reactions
- **5-minute charts**: Balanced approach between noise reduction and opportunity frequency
Higher timeframes generally produce inferior results due to increased noise and reduced institutional edge during the London session window.
## Settings Configuration
### Session Timing
- **London Open/Close Hours**: Adjust for your chart's timezone
- **Rectangle End Time**: Set to 4:30 PM to stop signals before NY session close
- **Timezone Offset**: Ensure accurate London session capture
### Entry Parameters
- **Retest Distance**: 3-8 pips depending on pair volatility
- **Stop Loss Pips**: Separate settings for breakouts (10-15 pips) and retests (8-12 pips)
- **Risk/Reward Ratios**: Independent ratios for different entry types
### PineConnector Setup
- **License ID**: Your PineConnector license key
- **Symbol Override**: MT4/MT5 symbol names if different from TradingView
- **Risk Percentage**: Position size as percentage of account balance
- **Prefix/Comment**: Organize trades in terminal
## Manual Trading Limitations
Without PineConnector automation, traders face significant practical challenges:
**Settings Management**: Each currency pair requires different optimized parameters. Switching between charts means manually adjusting multiple settings each time, creating potential for errors and missed opportunities.
**Timing Sensitivity**: London Open signals can occur rapidly during high-volatility periods. Manual execution may result in slippage or missed entries.
**Multi-Pair Monitoring**: Tracking 4-11 currency pairs simultaneously while manually adjusting settings for each switch becomes impractical for most traders.
**Parameter Consistency**: Risk of using suboptimal settings when quickly switching between pairs, potentially compromising the careful optimization work.
## Recommended Workflow
1. **Historical Testing**: Use win rate HUD to identify profitable pairs and optimal parameters
2. **Demo Automation**: Test PineConnector alerts on demo accounts with optimized settings
3. **Live Implementation**: Deploy alerts only on proven profitable pair/timeframe combinations
4. **Ongoing Monitoring**: Regular review of performance metrics to maintain edge
## Risk Disclaimer
This indicator provides analysis tools and automation capabilities but does not guarantee profitable trading outcomes. Past performance does not predict future results. Users should thoroughly backtest and demo trade before risking live capital. The London session strategy works best during specific market conditions and may underperform during low volatility or unusual market environments.
## Support Requirements
Successful implementation requires:
- Basic understanding of London session market dynamics
- PineConnector subscription for automation features
- Patience for proper optimization process
- Realistic expectations about win rates and drawdown periods
This system is designed for serious traders willing to invest time in proper optimization and risk management rather than plug-and-play solutions.
MULTI-STRATEGY SYSTEMThis trading system combines three different strategies to help you trade better.
The first strategy follows trends using a 50-period EMA and confirms signals with volume spikes and RSI momentum.
The second strategy catches trends early by watching for EMA 9 and 21 crossovers to get in at the beginning of moves.
The third strategy uses multiple technical indicators like RSI, MACD, and EMAs to find precise entry points.
Each strategy shows triangle signals on your chart, green for long trades and red for short trades. The system also displays colored zones between the moving averages to visualize market conditions.
You can use just one strategy or combine all three for more trading opportunities. This works on any timeframe whether you're day trading, swing trading, or position trading.
Bull Market Support Bands (20W SMA & 21W EMA)This indicator plots the 20-week Simple Moving Average (SMA) and the 21-week Exponential Moving Average (EMA), together forming the Bull Market Support Bands (BMSB).
Fully compatible with any chart; values are calculated using the weekly timeframe, even if applied on daily charts.
Adjustable band transparency in settings.
Includes optional alerts when EMA crosses above/below SMA.
Goldbach Time Indicator🔧 Key Fixes Applied:
1. Time Validation & Bounds Checking:
Hour/Minute Bounds: Ensures hours stay 0-23, minutes stay 0-59
Edge Case Handling: Prevents invalid time calculations from causing missing data
UTC Conversion Safety: Better handling of timezone edge cases
2. Enhanced Value Validation:
NA Checking: Validates all calculated values before using them
Goldbach Detection: Only flags valid, non-NA values as Goldbach hits
Plot Safety: Prevents plotting invalid or NA values that could cause gaps
3. Improved Plot Logic:
Core Level Colors: Blue for core levels (29,35,71,77), yellow/lime/orange for regular hits
Debug Mode Enhanced: Shows all calculations with gray dots when enabled
Better Filtering: Only plots positive, valid values for minus calculations
4. Background vs Dots Issue:
The large green/blue background you see suggests the indicator is detecting Goldbach times correctly, but the dots weren't plotting due to validation issues. This should now be fixed.
Volume profile time marker12 AM -12 AM marking used for volume profile tool and no trading zone showing manipulation
Global Sessions with Trend & Liquidity Features:
-Session ranges with customizable lines & colors
-Opening range markers and optional background shading
-Automatic trend detection per session (Bullish / Bearish / Neutral)
-Indicators when highs/lows are broken
-Clean visual design with toggles for minimal or detailed display
This Pine Script code is designed to help traders visualize and analyze different market sessions. It's a tool that displays the trading hours for the Asian, London, and New York sessions right on the chart.
The main purpose is to show when these key markets are open and to highlight their price ranges. It also includes features to track the trend within each session and to identify "liquidity sweeps" or moments when the price breaks the high or low of a previous session.
In simple terms, it helps a trader see what the market is doing and where the price is likely to go, all based on the major global trading times. It's especially useful for day traders who want to align their strategies with the activity of specific markets.
P.S. Apologies to users not in the EST timezone! This version is hardcoded to Eastern Standard Time, and I'm not currently sure how to automatically adjust it for different timezones. But you can adjust manually and click the dropdown menu to Save As Default.
Nearest Rank For Loop - [JTCAPITAL]Nearest Rank For Loop is used for trend-following using the median of the data.
The indicator works by calculating in the following steps:
1. The median is calculated using the ranking length of the source and using "percentile nearest rank" to determine the middle value. This is done with the original length and the length devided by 3, averaged out to eliminate false signals from extremely fast and temporary market movements.
2. Over the length of the loop values get added based on the median being higher than the previous median.
3. The results of the for loop segment get smoothed out using an EMA.
--Buy and sell conditions--
-When the for loop values get above the long threshold we enter a buying condition, we dont exit the buying condition until the for loop values get below the short condition. Which signals a short.
-When the values stay between the thresholds the signal doesnt change. This and smoothing out the for loop values is used to eliminate false signals as much as possible.
--Features and Parameters--
-Allows the changing of the length of the ranking (median)
-Allows the usage of different sources
-Allows changing of the paramaters over the start and end of the for loop segment
-Allows changing the thresholds for longs and shorts
-Allows changing the parameter for the smoothing using an EMA
--Details--
Both the wide thresholds and the use of an EMA over the for loop values are used to eliminate as much false signals as possible. Aswell as deviding the length by 3 and taking the average from the medians. From testing this indicator we have found that using a very small value for the shorting gives the overall best performance. Since a fast market move wont immediately trigger a false signal, but it also wont massively delay entries and exits.
It is recommended to change the parameter settings for different asset classes and timeframes based off volatility and fast and confusing market movements.
Enjoy!