1. Introduction: Welcome to TidalCore
Thank you for choosing the TidalCore Mean Reversion Strategy from Tidal Edge Investing. This training manual is designed specifically for traders who are new to both Pine Script strategies and mean reversion trading concepts. Whether you are completely new to trading or have some experience but want to deeply understand how and why every input in this script is configured, this guide will walk you through it step by step.
TidalCore is not a "black box" indicator that magically predicts the future. This strategy is a transparent, rule-based mean reversion system built around a custom "Market Wave" ribbon. The strategy attempts to buy when price has pulled back significantly from fair value ("buying the dip") and sell when price has extended too far upward ("selling into strength"), while applying multiple layers of confirmation to filter out low-quality signals.
What is Mean Reversion?
In financial markets, prices rarely move in straight lines. They oscillate — moving up and down around an underlying "average" or fair value. Mean reversion is the theory that these deviations from the average tend to correct themselves over time. When price moves too far below the average (oversold), buyers eventually step in and push it back up. When price moves too far above (overbought), sellers take profits, and it falls back toward the mean.
TidalCore visualizes this concept with a dynamic ribbon made of three lines (upper band, basis/middle, and lower band). The ribbon acts like a "fair value channel" that expands and contracts with market volatility. The strategy primarily looks to buy near or below the lower band and sell near or above the upper band.
How to Use This Manual
Each major section of inputs used by TidalCore is explained in its own chapter. For every setting you will learn:
- What it does in plain English
- Why the default/recommended value was chosen
- How changing inputs affect your trading results and risk
- Beginner-friendly starting points
By the end of this manual, you will not only know what every slider and checkbox does — you will understand the trading logic behind TidalCore and feel confident customizing this tool for your own style and risk tolerance. Appendix A lays out key concepts and terminology
2. Getting Started: Adding & Configuring TidalCore
Adding the Script to TradingView (Invite-Only Access)
TidalCore is distributed as an invite-only Indicator. Tidal Edge Investing grants access through TradingView’s secure invite system, and the script appears automatically in your account once you have been invited.
- Open TradingView.com, and log into your account (Essential plan or higher recommended for alerts and multiple indicators).
- Open the chart of the asset you want to trade (e.g., TSLA, NVDA, SPY).
- Click the Indicators button (the fx icon) located in the top toolbar above the chart.
- In the Indicators dialog that opens, switch to the Invite-only tab on the left side.
- Find TidalCore - The Mean Reversion Strategy (or the exact title provided with your invite) in the list and click it to add the strategy to your chart.
- Once the strategy appears on your chart, click the small gear icon ⚙️ next to the strategy name (in the chart legend or data window) to open the full settings panel. This is where you will configure all the inputs described throughout this manual.
Initial Capital & Starting Shares
Starting Cash ($) — This is the simulated cash balance at the beginning of your backtest. Set it to match your actual or planned trading account size so position sizing calculations feel realistic. Default is set to $100,000. For smaller accounts, set this input to $10,000 or $25,000 and observe how the percentage-based sizing behaves.
Starting Shares — Use this if you already hold shares of the asset and want the backtest to continue tracking Profit and Loss (P&L) on that existing position. Most new users should leave this input at 0 for a clean "fresh start" simulation.
3. Order Entry & Exit Rules — The Quality Filters
This section contains some of the most important "why" settings in the entire script. These filters determine not just when you get a signal, but the quality of that signal. Mean reversion strategies live or die by the quality of their entries — buying any random dip usually leads to catching falling knives.
Directional Candle Thresholds
Long Threshold (%) + Use Long Threshold — Default: -5.0% enabled.
This requires the current candle to be down at least 5% from the candle’s open before a BUY signal is allowed. In other words, you only buy weakness. Why? Because in mean reversion, you want to step in when sellers are exhausted, not when the candle is still strong green. Buying green candles often means chasing momentum that can continue against you. Setting this input to 0 disables the filter (more signals, lower average quality). For beginners, keep this input between -3% and -7%. More negative = stricter, fewer but higher-conviction buys.
Exit Threshold (%) + Use Exit Threshold — Default: +5.0% enabled.
This is a mirror image of long threshold (%) specific to sells: only allow SELL signals on candles that are up at least 5% from open. This helps you to sell into strength rather than into weakness. Again, setting this input to 0 disables the filter. It is recommended to keep enabled for better exits.
Buy & Sell Buffers
Buy Buffer (%) (Default: 2.0) and Sell Buffer (%) (Default: 2.0). These create an extra "safety zone" beyond the Market Wave ribbon bands. A buy signal only triggers when price reaches the lower band minus the buy buffer. This ensures price has truly extended into oversold territory before you commit capital. Higher buffers (3-4%) = more conservative, fewer signals, and deeper pullbacks required. Lower (0.5-1%) = more aggressive. 1-3% is the sweet spot for most assets.
Restriction Modes (The Heart of Mean Reversion Discipline)
Only Buy Restriction — Options: Off / Below Basis / Below TidalCore Ribbon (Default)
This is one of the most powerful controls. "Below TidalCore Ribbon" means a buy signal is only valid when price is trading below the lower Market Wave band (after buffer). This forces you to buy at the deepest part of the pullback — exactly where mean reversion has the highest edge. "Below Basis" is less strict (buy on any pullback to the middle line). "Off" removes the restriction entirely (use with extreme caution — you will get many low-quality signals). For learning the strategy, keep this input on "Below TidalCore Ribbon."
Only Sell Restriction — Options: Off / Above Basis / Above TidalCore Ribbon (Default)
This applies the same logic on the sell side. "Above TidalCore Ribbon" ensures you only sell when price has extended strongly above the upper band. This is how you capture the "ripoff" part of mean reversion. Beginners should leave this input at the default.
4. Trade Size — Position Sizing & Risk Control
How much you buy or sell on each signal is just as important as when you get the signal. Poor position sizing can turn a good strategy into a portfolio killer through overexposure or under-utilization.
Percentage vs Fixed Dollar Sizing
Percentage Trade Size (Default: enabled) + Entry Trade Size (%) (Default: 5%) and Exit Trade Size (%) (Default: 5%). When enabled, every buy uses 5% of your current total portfolio value (cash + shares). This is the recommended mode for almost all users because position size automatically scales up as your account grows from profits and scales down during drawdowns — natural risk management.
Fixed Trade Size (toggle) + Entry Trade Size ($) / Exit Trade Size ($) — When enabled, every trade attempts to use exactly this dollar amount regardless of portfolio size. This is useful if you want to target a specific dollar risk per trade or if you are running a very small account and want consistent share quantities. Most users should leave Percentage mode on.
Understanding Pyramiding
The tool is configured with pyramiding=3. This means the strategy can hold up to 3 separate "Long" entries in the same asset at the same time. Each new buy signal adds another layer to your position (subject to available cash and the other filters). This is intentional for mean reversion — you often get multiple dips in a row before the reversal happens. Pyramiding lets you average into the position at better and better prices. The 3-layer limit prevents runaway exposure.
5. The Market Wave Ribbon — The Core Engine
The Market Wave is the custom indicator that defines the "fair value" ribbon you see plotted on the chart. Everything else in TidalCore is built around interacting with this ribbon.
Understanding Scope
Scope (0.5=micro → 10=macro) — Default: 5.5
This is the single most important "feel" setting for the strategy. Scope controls the wavelength/sensitivity of the ribbon:
- Low Scope (0.5 - 2.0): Short-term, micro swings. The ribbon reacts quickly to price. You get many more signals but also more noise and whipsaws. Good for lower timeframes or very choppy assets.
- Medium Scope (3.0 - 6.0): Balanced sweet spot (Default: 5.5). Captures swings lasting several days to a couple of weeks on daily charts. Good compromise between frequency and quality.
- High Scope (7.0 - 10.0): Macro, slower swings. Fewer signals, but each one tends to be higher quality and captures larger moves. Better for longer-term position trading or less volatile assets.
How is the ribbon actually built? The script calculates a double-smoothed EMA (basis), then adds/subtracts a multiple of ATR (Average True Range) to create upper and lower bands, then smooths everything again. The result is a volatility-adjusted channel that expands in wild markets and contracts in calm ones — exactly what you want for mean reversion.
6. Enhancements — Filters & Risk Management
These toggles add powerful confirmation layers on top of the basic Market Wave signals. They are the reason TidalCore can avoid many of the classic pitfalls of naive mean reversion systems.
RSI Filter
Use RSI Filter (Default: ON) + RSI Length (14), RSI Oversold Level (35), RSI Overbought Level (65).
RSI (Relative Strength Index) measures the speed and magnitude of recent price changes on a 0-100 scale. Readings below 30-35 are considered oversold; above 65-70 are considered overbought. When the RSI filter is enabled, TidalCore will only generate a BUY signal if RSI is ≤ 35 (confirming the dip has momentum behind it) and only a SELL if RSI ≥ 65. This prevents buying into a falling knife that still has strong bearish momentum and prevents selling too early in a strong uptrend. The default 35/65 levels are slightly less extreme than classic 30/70, giving a good balance of signal frequency and confirmation strength. Beginners should keep this ON.
Preventing Trades in Strong Trends (ADX)
Prevent Buys in Strong Downtrends (Default: ON) and Prevent Sells in Strong Uptrends (Default: ON) + ADX Length (14), Strong Trend Threshold (25).
ADX (Average Directional Index) measures trend strength regardless of direction (0-100). Readings above 25 indicate a strong trend. The script also looks at +DI and -DI to determine trend direction. When "Prevent Buys in Strong Downtrends" is on, the strategy completely blocks normal buy signals if ADX > 25 and the downtrend is dominant. This is crucial: mean reversion often works poorly when a stock is in free-fall. The same logic protects profits by blocking routine sells during powerful uptrends (let winners run). Top/Bottom signals can still fire if you have them enabled. These two toggles are among the highest-value risk controls in the entire script — leave them ON unless you have a specific reason to disable.
TidalCore uses a convenient preset dropdown:
• Fast / Responsive (10/20): More signals, reacts quicker.
• Standard (14/25): Classic balanced setting (recommended).
• Slow / Conservative (21/30): Stronger trend confirmation.
7. TidalBeacon Overlay (Top/Bottom) — Extreme Reversion Signals
This is an optional but powerful enhancement layer. While the main Market Wave ribbon catches normal swings, the TidalBeacon Overlay (Top/Bottom) system looks for extreme exhaustion points using Bollinger Bands + RSI. These are higher-conviction reversal candidates.
How Top & Bottom Signals Are Generated
A BOTTOM signal fires when price closes below the lower Bollinger Band AND RSI is below the oversold threshold (Default: 25). A TOP signal fires when price closes above the upper Bollinger Band AND RSI is above the overbought threshold (Default: 75). Adjust the RSI Overbought and RSI Oversold numbers slowly up or down until you see one or two signals in each instance or in quick succession. Bottom signals are often one of the most powerful signals in the strategy. When using this overlay, it is common and acceptable to see 2 or the rare 3 TOP signals in short succession on your chart, as exact tops are much harder to predict. These are classic "reversion to the mean" extremes. The overlay also provides visual labels and background highlighting so you can see when these conditions occur even if you don't use the Trigger Buy or Trigger Sell features.
TidalBeacon Controls
• TidalBeacon Preset (Bollinger settings) — Tight / Standard / Wide
• Use Bottom as Additional BUY Signal + Bottom Buy % of Cash
• Use Top as Additional SELL Signal + Top Sell % of Shares
• Show Bollinger Bands on Chart
• Show Top/Bottom Background Highlights
• Show Top/Bottom Labels
Trigger Buy/Sell on TidalBeacon Overlay (Top/Bottom)
Trigger Buy on BOTTOM Signal + BOTTOM Buy % of Cash (Default: 100% when enabled). When turned on, a valid BOTTOM signal will deploy the chosen percentage of your available cash. This is the most aggressive way to use the strategy — going "all in" (or scaled) at extreme oversold points. Great for high-conviction names but use with caution on smaller accounts.
Trigger Sell on TOP Signal + TOP Sell % of Shares (Default: 33%). When enabled, a TOP signal sells the chosen percentage of your current position. The default input of 33% means you scale out 1/3 of the position at the extreme high — locking in profits while leaving 2/3 to run if the move continues. This is often smarter than selling 100% at the first top.
8. Backtesting Controls & Mobile Portfolio Tracker
Date Range Controls
The Start Year/Month/Day and End Year/Month/Day inputs let you define exactly which period the strategy is active whether backtesting or actively trading. Once actively trading, set the start date to the current date and the end date to a date at least several years in the future to allow for buy and sell alerts to be generated and your portfolio to be tracked accurately.
The following are tips essential for proper backtesting:
- Test with enough data and trades — Use long historical periods (ideally multiple years) that include bull, bear, and sideways regimes. Aim for hundreds of trades rather than a handful—small samples produce misleading results that don’t hold up live.
- Validate with out-of-sample testing — Optimize parameters on one period (in-sample), then test on later unseen data (out-of-sample). This helps detect overfitting. Walk-forward testing is even better for robustness.
Mobile Portfolio Tracker
When enabled (Default), a compact table appears in the top-right corner of the chart showing Current Shares, Current Cash, and TidalCore Strategy ROI %. This is invaluable when viewing charts on the TradingView mobile app, where the full Data Window is harder to access. The tracker updates in real time as the backtest progresses.
9. How TidalCore Executes Trades — The Full Flow
Here is the simplified decision flow the TidalCore strategy follows on every bar (when in date range):
- Calculate Market Wave ribbon (basis, upper, lower) and current price relative to it.
- Check all buy conditions: date OK, has cash, candle direction OK, price below buy level + restriction, RSI OK (if enabled), not in strong downtrend (if enabled), no conflicting Top/Bottom trigger logic.
- If buy passes: calculate position size (percentage or fixed), round to whole shares, simulate commission, update internal cash/shares/cost basis, place strategy entry order, draw BUY label, fire alert.
- Check Top/Bottom extreme signals (separate path with its own filters).
- If Trigger Buy on BOTTOM enabled and BOTTOM fires: deploy chosen % of cash aggressively.
- Check all sell conditions (mirror of buy logic + sell restrictions).
- If sell passes or Trigger Sell on TOP fires: calculate shares to sell, simulate commission, update P&L tracking, place strategy, close order, draw SELL label, fire alert.
All of these calculations occur automatically. Your job as the trader is to choose good input settings for the asset and market environment, monitor the equity curve and trade list, and adjust when regimes change.
10. Best Practices & Risk Management for Beginners
Recommended Starting Configuration
For your very first backtests on any new symbol, here are some conservative defaults:
| Setting | Recommended | Why |
|---|---|---|
| Entry / Exit % | 3% - 5% | Lower risk per trade |
| Buy / Sell Buffers | 2.0% - 3.0% | Deeper confirmation |
| RSI & ADX Filters | Enabled | Avoid strong trends |
| Scope | 5.0 - 5.5 | Balanced signals |
| Trigger Top/Bottom Sells/Buys | OFF initially | Learn first |
Paper Trade First — Before risking real money, run the strategy in TradingView's replay mode or forward-test on a paper trading account for at least 1-2 months of live market action. Watch how your configured strategy behaves during earnings, news events, and regime shifts.
Diversify Across Assets — Do not run TidalCore on a single stock with 100% of your capital. Run 4-6 strategies on uncorrelated or loosely correlated stocks or assets so that when one is in a strong trend (and the strategy is mostly sitting out), others may be oscillating and generating good mean-reversion trades.
Review the Data Window Metrics — After every backtest, look at Strategy ROI vs Buy & Hold ROI and vs Do Nothing ROI. Also examine Total P&L breakdown (realized vs unrealized) and trade volume. The goal should be to outperform Buy & Hold as often as possible across multiple timeframes. If the strategy significantly underperforms Buy & Hold in strong bull markets, try enabling Use RSI Filter and Prevent Buy/Sell in Strong Downtrends/Uptrends filters.
Re-Optimize Periodically — Markets change. A Scope value that worked beautifully in 2023 may need adjustment in 2026. Re-run optimization or manual sensitivity tests every 6-12 months or after major volatility regime changes.
11. Setting Up Alerts in TradingView
TidalCore fires six distinct types of alerts:
| Alert Type | Message Starts With | When It Fires |
|---|---|---|
| Bottoms (visual) | "The Bottom is in! From the depths…" | Visual Bottom condition (no trade) |
| Tops (visual) | "The Top is in! You’ve conquered…" | Visual Top condition (no trade) |
| Bottom Buys | "🌊 BOTTOM Buy Triggered…" | Bottom Buy trade should be executed |
| Top Sells | "🏖️ TOP Sell Triggered…" | Top Sell should be executed |
| Normal Buys | "🌊 Buying into the new swell…" | Normal buy should be executed |
| Normal Sells | "🏄 Riding the wave to its crest…" | Normal sell should be executed |
How to Set Up Alerts
- Add TidalCore to your chart.
- Click the three dots next to the strategy name → Add Alert.
- In the alert dialog:
- Condition: Select your TidalCore strategy. Select alert() function calls only.
- Interval: Select Same as chart.
- Alert name: Give it a clear name (e.g., “TidalCore NVDA Daily”).
- Message: Leave blank. The tool will format appropriate messages per alert type.
- Frequency: Once Per Bar Close.
- Expiration: Set to a far future date or “Open-ended”.
- Choose your notification method (Email, SMS, Push, etc).
- Create the alert.
Pro Tips for Alerts
• Create one alert per Asset using the configuration above — it will catch all six types.
• Alerts only fire on confirmed bars (bar close).
• Test alerts in replay mode first.
Appendix A: Core Trading Terminology
This glossary explains the key concepts used throughout TidalCore and this manual. Understanding these terms will make you a much more effective user of the strategy.
Mean Reversion
The tendency of prices to return toward their historical average or "fair value" after deviating significantly. TidalCore is built entirely around this concept — buying deep pullbacks and selling strong extensions with the expectation that price will revert.
Market Wave Ribbon
TidalCore's custom volatility-adjusted channel (basis + upper/lower bands). The ribbon is created from double-smoothed EMA plus ATR-based deviation and defines the zones where mean reversion trades are triggered.
RSI (Relative Strength Index)
A momentum oscillator (0-100) that measures the speed and change of price movements. Readings below ~30-35 indicate oversold conditions (potential buy); above ~65-70 indicate overbought (potential sell). TidalCore uses RSI as a confirmation filter for both regular and Top/Bottom signals.
ADX / +DI / -DI (Average Directional Index)
ADX measures trend strength (not direction). Values above 25 typically indicate a strong trend. +DI and -DI show whether bulls or bears are in control. TidalCore uses these to block trades that would fight a strong trend — a key risk-management feature.
Bollinger Bands
A volatility indicator consisting of a middle SMA/EMA and upper/lower bands plotted at standard deviation multiples (usually 2). Price closing outside the bands can signal extremes. TidalCore's Top/Bottom system uses Bollinger Bands + RSI to detect high-probability reversal points.
ATR (Average True Range)
A measure of market volatility. TidalCore uses ATR to dynamically size the width of the Market Wave ribbon so that bands expand in volatile markets and contract in calm ones.
EMA (Exponential Moving Average)
A type of moving average that gives more weight to recent prices. The Market Wave basis is built from a double EMA. The optional 200 EMA trend filter uses a long-term EMA to determine overall market direction bias.
Pyramiding
The ability to add multiple entries to the same position. TidalCore allows up to 3 pyramided Long entries. This lets you build a larger core position across successive pullbacks at improving average prices.
Backtesting
Running a trading strategy on historical data to see how it would have performed. TidalCore's backtest engine simulates realistic fills, commissions (0.1%), and whole-share rounding. TidalCore also tracks cash, shares, cost basis, and P&L in real time.
ROI (Return on Investment)
Percentage change in portfolio value from the starting equity. TidalCore shows Strategy ROI, Buy & Hold ROI, and Do Nothing ROI side-by-side in the Data Window so you can see whether active trading added value versus simply holding or doing nothing.
Oversold / Overbought
Oversold: Price has fallen too far, too fast (often RSI low) — potential reversal up. Overbought: Price has risen too far, too fast (often RSI high) — potential reversal down. These are relative terms; in strong trends, markets can stay oversold or overbought for long periods.
Ranging vs Trending Market
Ranging (sideways): Price oscillates between support and resistance — ideal for mean reversion. Trending: Price makes sustained higher highs/lows or lower highs/lows — mean reversion strategies often sit out or get chopped up unless they have strong trend filters (which TidalCore does).
Commission / Slippage
Trading costs. TidalCore simulates 0.1% commission on every trade (realistic for many brokers). Slippage (difference between expected and actual fill price) is not directly modeled but is reduced by the strategy's focus on liquid assets and confirmed-bar execution.
Data Window
The right-side panel in TradingView that shows all the TidalCore Ribbon values from a script. TidalCore outputs a rich set of portfolio metrics, benchmarks, and trade volume numbers here for detailed analysis.
Mobile Portfolio Tracker
A compact table displayed in the top-right corner of the chart (when enabled) showing Current Shares, Current Cash, and Strategy ROI %. Especially useful on the TradingView mobile app where the full Data Window is harder to access.
Appendix B: Important Disclaimers & Legal
Educational Purpose Only
This training manual and the TidalCore tool are provided strictly for educational, research, and informational purposes. They are not intended as, and shall not be construed as, financial, investment, trading, tax, or legal advice of any kind.
No Guarantee of Performance
Past performance of any trading strategy, including backtested results shown by TidalCore, is not indicative of future results. Markets can and do change. A strategy that performed well historically may lose money in live trading due to changing volatility, liquidity, news events, execution differences, and many other factors.
Risk of Loss
Trading stocks, ETFs, options, crypto, and other financial instruments involves substantial risk of loss and is not suitable for all investors. You should only trade with capital you can afford to lose entirely. Leverage, margin, and concentrated positions dramatically increase risk.
No Fiduciary Relationship
Tidal Edge Investing, its creators, and any distributors of this script or manual have no fiduciary duty to you. You are solely responsible for all trading decisions made using this or any other tool.
Third-Party Platforms
TradingView, brokers, exchanges, and data providers are independent third parties. Tidal Edge Investing makes no warranties regarding the accuracy, completeness, or timeliness of data or the functionality of any platform.
By using TidalCore or this manual, you acknowledge that you understand these risks and agree that Tidal Edge Investing shall not be liable for any losses, damages, or claims arising from your use of the strategy or reliance on this document.
