INVITE-ONLY SCRIPT
Apex Flow | Oquant

Overview
Apex Flow is a rotational allocation indicator designed for cryptocurrency traders seeking to dynamically shift capital between a selection of assets based on trend strength and relative performance. It aims to capture upside in trending markets while reducing exposure during weaker periods by incorporating a multi-factor trend detection system and a relative strength ranking mechanism. This tool is built to provide a structured approach to portfolio allocation in crypto environments, emphasizing risk management through trend confirmation and a built-in risk-on filter to avoid drawdowns in non-conducive conditions. Its originality lies in the ensemble of customized trend filters combined with pairwise relative strength comparisons, which together create a robust scoring system for asset selection—going beyond simple momentum or single-indicator rotations to offer a more nuanced, adaptive strategy.
Key Factors/Components
Multi-Trend Detection Ensemble: Utilizes a blend of moving average-based filters, deviation bands, and momentum oscillators to evaluate overall market trend direction.
Relative Strength Ranking: Compares assets pairwise to determine dominance, assigning scores that influence allocation priorities.
Allocation Splits: Supports configurable splits between the top-performing asset(s) and secondary ones, allowing for concentrated or diversified exposure.
risk-on Filter: Applies smoothing techniques to the simulated portfolio equity to confirm uptrend viability, acting as a macro-level risk overlay.
Performance Metrics and Visuals: Includes built-in tables for allocations, metrics (like Sharpe, Sortino, Omega ratios, max drawdown, and net profit), and an asset matrix for transparency in decision-making.
How It Works
The indicator first assesses each asset's trend state using an ensemble of seven trend-following components, each contributing to a composite score that signals whether the asset is in a bullish trend, or bearish trend. Thresholds determine when an asset qualifies for allocation (e.g., requiring a majority positive score for inclusion). Next, eligible assets are ranked via relative strength calculations derived from pairwise trend comparisons, producing a dominance score for each. The highest-scoring asset(s) receive primary allocation, with optional secondary allocation to the next tier based on user-defined splits (e.g., 80/20). Daily returns are then used to simulate a portfolio equity curve, which is filtered through multiple smoothing methods to ensure the overall strategy is in an "up" state before committing capital—otherwise, it defaults to cash. This process helps prioritize stronger assets while incorporating safeguards against prolonged downtrends, though it may lag in rapidly reversing markets due to its confirmatory nature.
For Who It Is Best/Recommended Use Cases
This indicator is ideal for intermediate to advanced cryptocurrency traders who appreciate an active, systematic strategy for rotating capital across a basket of assets (e.g., major cryptos like BTC, ETH, SOL, and SUI). It's suited for medium-term on the 1D timeframe, where the ensemble of trend filters and relative strength rankings can identify and capitalize on multi-day to weekly momentum shifts in trending markets. Recommended for those actively managing diversified crypto portfolios to potentially outperform buy-and-hold benchmarks with controlled volatility. It's not optimized for short-term scalping (e.g., intraday), highly illiquid assets, or prolonged range-bound conditions, where its confirmatory logic may lead to delayed/false signals. Always integrate it with your own risk management practices.
Settings and Default Settings
Strategy Start Date: Timestamp for "1 Jan 2023" – Defines the backtest start; adjust to test different periods.
Assets: Asset 1 ("INDEX:BTCUSD"), Asset 2 ("INDEX:ETHUSD"), Asset 3 ("CRYPTO:SOLUSD"), Asset 4 ("CRYPTO:SUIUSD") – Select up to four cryptos; defaults focus on major ones.
Allocation Split: "100/0" – Options include 80/20, 70/30, 60/40; default fully allocates to the top asset(s).
Plot Equity Curves: Strategy equity and btc equity enabled by default – Toggle to visualize strategy and individual assets.
Show Tables: All enabled – Display allocation, metrics, and asset matrix for real-time insights.
Internal parameters like trend lengths and multipliers are fixed to balance sensitivity and reliability, optimized for daily crypto charts.
Conclusion
Apex Flow offers a systematic way to navigate crypto rotations by blending trend confirmation with relative strength, potentially enhancing returns in bullish cycles while preserving capital in others. Its ensemble approach and equity filter provide a layer of robustness not found in simpler rotators, making it a valuable addition for trend-oriented portfolios.
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
Apex Flow is a rotational allocation indicator designed for cryptocurrency traders seeking to dynamically shift capital between a selection of assets based on trend strength and relative performance. It aims to capture upside in trending markets while reducing exposure during weaker periods by incorporating a multi-factor trend detection system and a relative strength ranking mechanism. This tool is built to provide a structured approach to portfolio allocation in crypto environments, emphasizing risk management through trend confirmation and a built-in risk-on filter to avoid drawdowns in non-conducive conditions. Its originality lies in the ensemble of customized trend filters combined with pairwise relative strength comparisons, which together create a robust scoring system for asset selection—going beyond simple momentum or single-indicator rotations to offer a more nuanced, adaptive strategy.
Key Factors/Components
Multi-Trend Detection Ensemble: Utilizes a blend of moving average-based filters, deviation bands, and momentum oscillators to evaluate overall market trend direction.
Relative Strength Ranking: Compares assets pairwise to determine dominance, assigning scores that influence allocation priorities.
Allocation Splits: Supports configurable splits between the top-performing asset(s) and secondary ones, allowing for concentrated or diversified exposure.
risk-on Filter: Applies smoothing techniques to the simulated portfolio equity to confirm uptrend viability, acting as a macro-level risk overlay.
Performance Metrics and Visuals: Includes built-in tables for allocations, metrics (like Sharpe, Sortino, Omega ratios, max drawdown, and net profit), and an asset matrix for transparency in decision-making.
How It Works
The indicator first assesses each asset's trend state using an ensemble of seven trend-following components, each contributing to a composite score that signals whether the asset is in a bullish trend, or bearish trend. Thresholds determine when an asset qualifies for allocation (e.g., requiring a majority positive score for inclusion). Next, eligible assets are ranked via relative strength calculations derived from pairwise trend comparisons, producing a dominance score for each. The highest-scoring asset(s) receive primary allocation, with optional secondary allocation to the next tier based on user-defined splits (e.g., 80/20). Daily returns are then used to simulate a portfolio equity curve, which is filtered through multiple smoothing methods to ensure the overall strategy is in an "up" state before committing capital—otherwise, it defaults to cash. This process helps prioritize stronger assets while incorporating safeguards against prolonged downtrends, though it may lag in rapidly reversing markets due to its confirmatory nature.
For Who It Is Best/Recommended Use Cases
This indicator is ideal for intermediate to advanced cryptocurrency traders who appreciate an active, systematic strategy for rotating capital across a basket of assets (e.g., major cryptos like BTC, ETH, SOL, and SUI). It's suited for medium-term on the 1D timeframe, where the ensemble of trend filters and relative strength rankings can identify and capitalize on multi-day to weekly momentum shifts in trending markets. Recommended for those actively managing diversified crypto portfolios to potentially outperform buy-and-hold benchmarks with controlled volatility. It's not optimized for short-term scalping (e.g., intraday), highly illiquid assets, or prolonged range-bound conditions, where its confirmatory logic may lead to delayed/false signals. Always integrate it with your own risk management practices.
Settings and Default Settings
Strategy Start Date: Timestamp for "1 Jan 2023" – Defines the backtest start; adjust to test different periods.
Assets: Asset 1 ("INDEX:BTCUSD"), Asset 2 ("INDEX:ETHUSD"), Asset 3 ("CRYPTO:SOLUSD"), Asset 4 ("CRYPTO:SUIUSD") – Select up to four cryptos; defaults focus on major ones.
Allocation Split: "100/0" – Options include 80/20, 70/30, 60/40; default fully allocates to the top asset(s).
Plot Equity Curves: Strategy equity and btc equity enabled by default – Toggle to visualize strategy and individual assets.
Show Tables: All enabled – Display allocation, metrics, and asset matrix for real-time insights.
Internal parameters like trend lengths and multipliers are fixed to balance sensitivity and reliability, optimized for daily crypto charts.
Conclusion
Apex Flow offers a systematic way to navigate crypto rotations by blending trend confirmation with relative strength, potentially enhancing returns in bullish cycles while preserving capital in others. Its ensemble approach and equity filter provide a layer of robustness not found in simpler rotators, making it a valuable addition for trend-oriented portfolios.
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡oquant。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Check our website for access.
https://oquantsystems.com
Get access to Oquant's premium tools.
oquantsystems.com
oquantsystems.com
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡oquant。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Check our website for access.
https://oquantsystems.com
Get access to Oquant's premium tools.
oquantsystems.com
oquantsystems.com
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。