CETUS x BTC Filtered BUY & Sell indicatorThe Pine Script you requested is designed for CETUS coin and generates buy and sell signals while also taking BTC’s price movements into account.
In short, its purpose is: run on the CETUS chart, but filter trade signals based not only on CETUS data but also on BTC’s overall trend.
📌 Core Logic of the Pine Script
Dual Data Source
CETUS: The coin you’re actually trading.
BTC: Used as a market trend reference (trend filter).
Indicators Used
CETUS side: Technical indicators such as RSI and/or moving averages (EMA/SMA).
BTC side: Often EMA or trend direction (e.g., is BTC price above the 50 EMA?) is used as a filter.
Buy Signal
CETUS triggers a bullish signal and BTC is in a positive trend → generate a “Buy” command.
Sell Signal
CETUS triggers a bearish signal and BTC is in a negative trend → generate a “Sell” command.
Strategy Testing (Backtest)
In TradingView’s strategy tester, you can run it on historical data to check profitability, win rate, maximum drawdown, etc.
📊 What is the win rate of this code?
Profitability depends entirely on the parameters and the historical period tested.
For example:
CETUS’s high-volatility periods may yield higher profits.
Sideways or inverse BTC movement periods may reduce trade frequency.
In general, such a BTC-trend-filtered strategy produces fewer but safer trades compared to using CETUS indicators alone.
That means lower drawdowns but also lower total profit in some cases.
📌 In short: The strategy’s purpose is to filter out bad CETUS trade signals by confirming them with BTC’s trend.
Pine utilities
FFH Investing MultiBagger StrategyThis strategy is a structured decision-making system designed to identify when an asset’s price demonstrates sustained upward momentum relative to its long-term equilibrium zone, and to exit before a significant reversal occurs.
How It Works — Three Phases
Dynamic Baseline Establishment
The strategy builds a self-adjusting reference line that adapts to ongoing market conditions. This line represents an evolving “fair value,” blending historical price behavior with an adaptive smoothing process that filters out short-term noise while responding to meaningful trend shifts.
Opportunity Detection
After a calculated warm-up period, the system identifies moments when price action advances decisively above the dynamic baseline, signaling the potential start of a strong upward phase. Positions are only initiated when no active trade is running, ensuring new entries are taken at fresh breakout points rather than mid-trend.
Risk-managed Exit
Positions are closed when the price drops back below the adaptive baseline, indicating that momentum has weakened. This helps protect gains and prevents extended drawdowns.
Key Mechanisms in Play
Self-learning baseline: Evolves with market conditions, eliminating the need for constant manual adjustment.
Delayed activation: Reduces false signals by avoiding early trades during insufficient data periods.
Position discipline: Restricts trades to one open position at a time for better capital control.
Action tagging: Automatically marks each entry and exit on the chart for visual clarity.
Alert framework: Sends signals when entry or exit conditions occur, enabling timely decisions without continuous chart monitoring.
Commander Sparks | 1:1 Daily Core (Prop-Mode Overnight)Features
Trend Filter: EMA50 > EMA200 (long bias), EMA50 < EMA200 (short bias).
VWAP Filter: Only buys above VWAP, sells below VWAP.
Bollinger Band Filter: Avoids chop — enters only when price is outside BB midline in trend direction.
MACD Momentum: Entry only when MACD line crosses signal line in trend direction.
Risk Control: ATR-based stop, exactly 1:1 target, fixed full exit.
Time Filter: Trades 24/5 — including overnight & Sunday reopen.
No pyramiding — 1 trade per signal.
Entries allowed: 6:00 PM → 3:55 PM ET (1800-1555)
Auto-flat: 3:55–4:00 PM ET (so you’re flat before the 4:00 PM cutoff)
Toggle Prop Mode OFF anytime to trade 24/5 with no time limits.
RSI-Adaptive T3 [ChartPrime] — Strategy (Long Only, 1D)This trade has been successfully converted from an individual setup to a full strategy, and the results are truly outstanding. I’m currently testing this for Tesla options trading on the 1-day chart, and it appears to be working extremely well.
A special thanks to ChartPrime for creating such a beautifully designed indicator — it’s performing impressively in these tests.
If anyone would like to try it out, feel free to download and see the results for yourself. Thank you!
Multi conditions, curve fitting strategies - indicators combinedThe goal of this script is to educate about curve fitted strategies.
You can use it to combine multiple indicators with many parameters, for both entry and exit, all at once, in order to evaluate their combined effect with either AND or OR operators.
Available technical indicators:
- Intra Bar Strengh (IBS)
- Fisher Transform
- Buy the dip (after *nb* falling bars)
- Timing (mondays | fridays)
- Timing (Five days low etc ...)
- SMA
- EMA
- RSI
- Higher Timeframe RSI (choose a HTF)
- HML
- Accumulation / Distribution
- Stochastic
- Point of control moving average (from me)
Buy orders options:
- Limit order percentage from entry point
- Stop order percentage from entry point
- Entry price source
- Nb of bars behind entry point (as price reference for order)
Sell orders option:
- Exit price source
- Nb of bars behind exit reference point
Take profits and stop losses:
- Take profit percentage
- Stop loss percentage
- Only take profit from exit signal if higher than entry take profits
Other parameters:
- Put a limit to the number of exit signals
- Always trigger exit signal after {n} bars
It is *highly* encouraged to use the "skip random trades" checkbox in order to add some noise and see the outcome of the strategy if the market would have played differently for the asset.
Of course the whole point of this little dashboard is to see that a performance chart depends on market conditions, performance is often more random than predictable and curve fitting doesn't create nice equity curves.
This script is a provided entirely free of charge and open source. It is based on my multi-conditions matrice library.
is_strategyCorrection-Adaptive Trend Strategy (Open-Source)
Core Advantage: Designed specifically for the is_correction indicator, with full transparency and customization options.
Key Features:
Open-Source Code:
✅ Full access to the strategy logic – study how every trade signal is generated.
✅ Freedom to customize – modify entry/exit rules, risk parameters, or add new indicators.
✅ No black boxes – understand and trust every decision the strategy makes.
Built for is_correction:
Filters out false signals during market noise.
Works only in confirmed trends (is_correction = false).
Adaptable for Your Needs:
Change Take Profit/Stop Loss ratios directly in the code.
Add alerts, notifications, or integrate with other tools (e.g., Volume Profile).
For Developers/Traders:
Use the code as a template for your own strategies.
Test modifications risk-free on historical data.
How the Strategy Works:
Main Goal:
Automatically buys when the price starts rising and sells when it starts falling, but only during confirmed trends (ignoring temporary pullbacks).
What You See on the Chart:
📈 Up arrows ▼ (below the candle) = Buy signal.
📉 Down arrows ▲ (above the candle) = Sell signal.
Gray background = Market is in a correction (no trades).
Key Mechanics:
Buy Condition:
Price closes higher than the previous candle + is_correction confirms the main trend (not a pullback).
Example: Red candle → green candle → ▼ arrow → buy.
Sell Condition:
Price closes lower than the previous candle + is_correction confirms the trend (optional: turn off short-selling in settings).
Exit Rules:
Closes trades automatically at:
+0.5% profit (adjustable in settings).
-0.5% loss (adjustable).
Or if a reverse signal appears (e.g., sell signal after a buy).
User-Friendly Settings:
Sell – On (default: ON):
ON → Allows short-selling (selling when price falls).
OFF → Strategy only buys and closes positions.
Revers (default: OFF):
ON → Inverts signals (▼ = sell, ▲ = buy).
%Profit & %Loss:
Adjust these values (0-30%) to increase/decrease profit targets and risk.
Example Scenario:
Buy Signal:
Price rises for 3 days → green ▼ arrow → strategy buys.
Stop loss set 0.5% below entry price.
If price keeps rising → trade closes at +0.5% profit.
Correction Phase:
After a rally, price drops for 1 day → gray background → strategy ignores the drop (no action).
Stop Loss Trigger:
If price drops 0.5% from entry → trade closes automatically.
Key Features:
Correction Filter (is_correction):
Acts as a “noise filter” → avoids trades during temporary pullbacks.
Flexibility:
Disable short-selling, flip signals, or tweak profit/loss levels in seconds.
Transparency:
Open-source code → see exactly how every signal is generated (click “Source” in TradingView).
Tips for Beginners:
Test First:
Run the strategy on historical data (click the “Chart” icon in TradingView).
See how it performed in the past.
Customize It:
Increase %Profit to 2-3% for volatile assets like crypto.
Turn off Sell – On if short-selling confuses you.
Trust the Stop Loss:
Even if you think the price will rebound, the strategy will close at -0.5% to protect your capital.
Where to Find Settings:
Click the strategy name on the top-left of your chart → adjust sliders/toggles in the menu.
Русская Версия
Трендовая стратегия с открытым кодом
Главное преимущество: Полная прозрачность логики и адаптация под ваши нужды.
Особенности:
Открытый исходный код:
✅ Видите всю «кухню» стратегии – как формируются сигналы, когда открываются сделки.
✅ Меняйте правила – корректируйте тейк-профит, стоп-лосс или добавляйте новые условия.
✅ Никаких секретов – вы контролируете каждое правило.
Заточка под is_correction:
Игнорирует ложные сигналы в коррекциях.
Работает только в сильных трендах (is_correction = false).
Гибкая настройка:
Подстройте параметры под свой риск-менеджмент.
Добавьте свои индикаторы или условия для входа.
Для трейдеров и разработчиков:
Используйте код как основу для своих стратегий.
Тестируйте изменения на истории перед реальной торговлей.
Простыми словами:
Почему это удобно:
Открытый код = полный контроль. Вы можете:
Увидеть, как именно стратегия решает купить или продать.
Изменить правила закрытия сделок (например, поставить TP=2% вместо 1.5%).
Добавить новые условия (например, торговать только при высоком объёме).
Примеры кастомизации:
Новички: Меняйте только TP/SL в настройках (без кодинга).
Продвинутые: Добавьте RSI-фильтр, чтобы избегать перекупленности.
Разработчики: Встройте стратегию в свою торговую систему.
Как начать:
Скачайте код из TradingView.
Изучите логику в разделе strategy.entry/exit.
Меняйте параметры в блоке input.* (безопасно!).
Тестируйте изменения и оптимизируйте под свои цели.
Как работает стратегия:
Главная задача:
Автоматически покупает, когда цена начинает расти, и продаёт, когда падает. Но делает это «умно» — только когда рынок в основном тренде, а не во временном откате (коррекции).
Что видно на графике:
📈 Стрелки вверх ▼ (под свечой) — сигнал на покупку.
📉 Стрелки вниз ▲ (над свечой) — сигнал на продажу.
Серый фон — рынок в коррекции (не торгуем).
Как это работает:
Когда покупаем:
Если цена закрылась выше предыдущей и индикатор is_correction показывает «основной тренд» (не коррекция).
Пример: Была красная свеча → стала зелёная → появилась стрелка ▼ → покупаем.
Когда продаём:
Если цена закрылась ниже предыдущей и is_correction подтверждает тренд (опционально, можно отключить в настройках).
Когда закрываем сделку:
Автоматически при достижении:
+0.5% прибыли (можно изменить в настройках).
-0.5% убытка (можно изменить).
Или если появился противоположный сигнал (например, после покупки пришла стрелка продажи).
Настройки для чайников:
«Sell – On» (включено по умолчанию):
Если включено → стратегия будет продавать в шорт.
Если выключено → только покупки и закрытие позиций.
«Revers» (выключено по умолчанию):
Если включить → стратегия будет работать наоборот (стрелки ▼ = продажа, ▲ = покупка).
«%Profit» и «%Loss»:
Меняйте эти цифры (от 0 до 30), чтобы увеличить/уменьшить прибыль и риски.
Пример работы:
Сигнал на покупку:
Цена 3 дня растет → появляется зелёная стрелка ▼ → стратегия покупает.
Стоп-лосс ставится на 0.5% ниже цены входа.
Если цена продолжает расти → сделка закрывается при +0.5% прибыли.
Коррекция:
После роста цена падает на 1 день → фон становится серым → стратегия игнорирует это падение (не закрывает сделку).
Стоп-лосс:
Если цена упала на 0.5% от точки входа → сделка закрывается автоматически.
Важные особенности:
Фильтр коррекций (is_correction):
Это «защита от шума» — стратегия не реагирует на мелкие откаты, работая только в сильных трендах.
Гибкие настройки:
Можно запретить шорты, перевернуть сигналы или изменить уровни прибыли/убытка за 2 клика.
Прозрачность:
Весь код открыт → вы можете увидеть, как формируется каждый сигнал (меню «Исходник» в TradingView).
Советы для новичков:
Начните с теста:
Запустите стратегию на исторических данных (кнопка «Свеча» в окне TradingView).
Посмотрите, как она работала в прошлом.
Настройте под себя:
Увеличьте %Profit до 2-3%, если торгуете валюты.
Отключите «Sell – On», если не понимаете шорты.
Доверяйте стоп-лоссу:
Даже если кажется, что цена развернётся — стратегия закроет сделку при -0.5%, защитив ваш депозит.
Где найти настройки:
Кликните на название стратегии в верхнем левом углу графика → откроется меню с ползунками и переключателями.
Важно: Стратегия предоставляет «рыбу» – чтобы она стала «уловистой», адаптируйте её под свой стиль торговли!
VWAP-RSI Scalper FINAL v1Description
This script implements a robust, battle-tested intraday scalping strategy designed for prop firm challenges, funded trader programs, and serious futures scalpers.
It combines VWAP, RSI, EMA trend, and ATR-based risk management to capture high-probability mean reversion and momentum moves during the most liquid hours of the trading day.
Core Logic
RSI (Relative Strength Index):
Trades are triggered when the RSI is either oversold or overbought using a short lookback (default: 3). This ensures only the strongest intraday reversals or exhaustion moves are considered.
VWAP Filter:
Longs are only taken above VWAP, shorts only below VWAP, aligning trades with the session’s dominant bias.
EMA Filter:
Additional trend quality filter—longs require price above EMA, shorts below EMA.
Session Control:
Only trades between user-defined session hours (default: US cash session), eliminating overnight/illiquid action.
ATR-based Dynamic Stops & Targets:
Every trade uses a stop loss at 1x ATR and a take profit at 2x ATR for a positive risk/reward ratio.
Max Trades Per Day:
Prevents overtrading and controls risk exposure (default: 3).
Performance (Sample Backtest)
Profit Factor: 1.37+ (prop-firm quality)
Drawdown: <1% (very conservative risk)
Win Rate: 37–48% (RR > 1, so high edge)
Consistency: Smooth, steady equity curve over hundreds of trades.
Best For:
ES/NQ/CL/GC intraday traders
Prop firm evaluation challenges (Tradeify, Topstep, Apex, etc.)
Anyone needing robust, no-nonsense systematic edge for futures or indices.
How to Use & Tune
Apply to 3min, 5min, or 15min charts of liquid futures or indices.
Change parameters in the settings panel to suit your asset, volatility, or session hours.
Use “Strategy Tester” to validate P&L, win rate, and drawdown.
How to Optimize
Raise/lower RSI length or bands to make signals more/less frequent.
Adjust stop/target multiples for your preferred risk/reward profile.
Change session hours to match your broker or market.
Disclaimer
This is not financial advice. Use on a demo or sim account first. Results will vary by market, slippage, and execution speed. Past performance does not guarantee future results.
If you find this useful, please give it a like, follow for more strategies, and comment your results or questions!
Good luck and safe trading!
Inascript PRO (Elliott + TP System)Inascript PRO (Elliott + TP System) is an intraday strategy for gold (XAUUSD), based on simplified Elliott Wave logic.
It features 3 Take Profits, dynamic Stop Loss, break-even logic, and session filters (London & New York).
Precise alerts include entry, TP, and SL levels.
Developed by Inaskan for clean and smart intraday trading.
Backtest [OptAlgo]This backtest script is designed to convert ideas or indicators into backtest results. The script creates buy/sell signals by comparing price sources against fixed values or other imported plots using many comparison methods. It has many features including multiple exit systems: TP/SL, custom plot-based stops and more. It supports full trading automation through webhook alerts with live signal processing.
🔢 Signal Creation System
→ Values Group : Compare price sources against fixed numerical values
→ Plots Group : Compare two different price sources/indicators against each other
→ Flexible Comparisons : 15+ comparison methods (equal, crossover, rising...)
→ Signal Types : Long, Short, Close All, Block signals, and combination signals
→ Merge Rules : Minimum condition requirements for signal activation
🔀 Advanced Signal Logic
→ Counter Signals : Choose between reversing positions or closing them
→ Signal Inversion : Flip all buy/sell signals with one toggle
→ External Signal Import : Import coded signals (1=Long, -1=Short, 0=Close)
→ Day Blocker : Enable/disable trading on specific weekdays
→ Session Control : Limit trading to specific market sessions
⚙️ Strategy Settings
→ Position Sides : All Ways, Long Only, or Short Only modes
→ Signal Control : Individual enable/disable for long and short signals
→ Counter Signal Mode : Reverse Open Position vs Close Open Position
→ Signal Reversal : Global signal inversion capability
🔰 Risk Management (Limiter Settings)
→ Leverage Control : Leverage with liquidation warnings
→ Drawdown Limit : Auto-halt strategy at specified drawdown percentage
→ Tradable Ratio : Use portion of available balance (0.01-1.0)
→ Contract Limit : Cap maximum contract size regardless of balance
🎯 TP/SL System
→ Fixed TP/SL : Set percentage-based take profit and stop loss
→ Custom Plot Stops : Use any indicator/plot as dynamic stop loss
→ ATR-Based Exits : Volatility-adjusted TP/SL using Average True Range
→ Realistic Protection : Prevents unrealistic TP/SL prices in live trading
→ Stop Modes : Instant (Sudden) vs Candle Close execution
→ ATR Stop Loss : Override fixed SL with volatility-based calculations
→ ATR Take Profit : Dynamic TP based on market volatility
→ Trailing Options : Safe, Normal, or Aggressive trailing methods
→ Calculation Modes : Normal, Volume-weighted, or Limited (with max %) options
→ Volume Integration : ATR levels adjust based on volume influx
🤖 Automation & Alerts
→ Webhook Integration : Send JSON alerts for automated execution
→ Live Signals : Real-time signal processing (every tick vs bar close)
→ Strategy Key : Unique identifier for automated systems
→ Early Entry : Send alerts X seconds before candle close
→ Fast Execution : Prevent signal lag in automated trading
🐞 Development Tools
→ Alert Plotting : Visualize signals directly on chart (disable for live alerts)
→ Professional Mode : Remove UI controls for faster calculation
→ Debug : Metrics are plotted in data window.
📊 Key Advantages
→ Multi-Condition Logic : Combine multiple indicators with flexible rules
→ Risk-First Design : Built-in drawdown and leverage protection
→ Automation Ready : Full webhook and alert system integration
⚠️ Important Warnings
→ High leverage combined with high SL may adjust to liquidation price
→ Use consistent leverage across all strategies on same trading isolated margin pair
→ Live signals require "Calculate on every tick" enabled in settings
→ Disable alert plotting when creating actual alerts to prevent latency
Test Bot: Bearish Buy / Bullish SellFor testing the connection between TradingView and your brokerage. Use with a demo account if possible.
Modular Range-Trading Strategy (V9.2)# 模块化震荡行情策略 (V9.2)
# Modular Range-Trading Strategy (V9.2)
## 策略简介 | Strategy Overview
该策略基于布林带 (Bollinger Bands)、RSI、MACD、ADX 等经典指标的组合,通过多逻辑模块化结构识别震荡区间的价格反转机会,支持多空双向操作,并在相同逻辑下允许智能加仓,适用于震荡市场的回测和研究。
This strategy combines classic indicators such as Bollinger Bands, RSI, MACD, and ADX to identify price reversal opportunities within ranging markets. It features a modular multi-logic structure, allowing both long and short trades with intelligent pyramiding under the same logic. It is designed for backtesting and research in range-bound conditions.
---
## 功能特点 | Key Features
- **多逻辑结构**:支持多套震荡逻辑(动能确认均值回归、布林带极限反转等)。
- **加仓与仓位互斥**:同逻辑下可智能加仓,不同逻辑间自动互斥,避免冲突。
- **回测可调时间范围**:可自定义回测起止时间,精准评估策略表现。
- **指标可视化**:布林带、RSI、MACD 及动态 ATR 止损线实时绘图。
- **K线收盘确认信号**:通过 `barstate.isconfirmed` 控制信号,避免未收盘的虚假信号。
- **Multi-logic structure**: Supports multiple range-trading logics (e.g., momentum-based mean reversion, Bollinger Band reversals).
- **Pyramiding with mutual exclusion**: Allows intelligent pyramiding within the same logic while preventing conflicts between different logics.
- **Adjustable backtesting range**: Customizable start and end dates for accurate performance evaluation.
- **Visual indicators**: Real-time plotting of Bollinger Bands, RSI, MACD, and dynamic ATR stop lines.
- **Close-bar confirmation**: Uses `barstate.isconfirmed` to avoid false signals before bar close.
---
## 使用说明 | Usage
1. 将该脚本添加到 TradingView 图表。
2. 在参数中设置回测时间段和指标参数。
3. 仅用于学习与策略研究,请勿直接用于实盘交易。
1. Add this script to your TradingView chart.
2. Configure backtesting dates and indicator parameters as needed.
3. For educational and research purposes only. **Not for live trading.**
---
## ⚠️ 免责声明 | Disclaimer
本策略仅供学习和研究使用,不构成任何形式的投资建议。
作者不参与任何实盘交易、资金管理或收益分成,也不保证策略盈利能力。
严禁将本脚本用于任何非法集资、私募募资或与虚拟货币相关的金融违法活动。
使用本策略即表示您自行承担所有风险与法律责任。
This strategy is for educational and research purposes only and does not constitute investment advice.
The author does not participate in live trading, asset management, or profit sharing, nor guarantee profitability.
The use of this script in illegal fundraising, private placements, or cryptocurrency-related financial activities is strictly prohibited.
By using this strategy, you accept all risks and legal responsibilities.
---
Breackout V8 MomentumBreakout V6 Strategy with Fibonacci TPs
Description
Developed by Coton, this automated trading tool is designed to identify and capitalize on breakouts from consolidation zones, supported by momentum indicators. It leverages technical indicators to detect significant price movements and enters positions with take-profits based on Fibonacci levels and a trailing stop to protect profits. Optimized for crypto trading , it operates in Scalping (1m) or Intraday (5m) modes.
Indicators Used
Volatility Bands : Identify price compression and expansion zones to detect consolidations and breakouts.
Momentum Indicators : Measure the strength and direction of price movements to confirm breakouts.
Volume Indicators : Validate breakouts with significant increases in trading activity.
Dynamic Levels : Define entry and exit points based on adaptive calculations.
Features
Breakout Detection : Identifies exits from consolidation zones with quality filters.
Fibonacci Take-Profits : Profit targets calculated using extension levels to maximize gains.
Trailing Stop : Protects profits by dynamically adjusting the stop-loss based on volatility.
Visualization : Displays consolidation zones, entry levels, stop-losses, and take-profits on the chart.
Alerts : Notifications for confirmed and ongoing breakouts with a minimum risk/reward ratio.
Table : Shows the strategy status and estimated leverage in real-time.
Input Parameters
Trading Mode: Scalping (1m) or Intraday (5m) (default: Intraday)
Fibonacci Level for TP: 1.618 (adjustable 0.5-5.0)
Minimum RR for Alerts: 1.2 (filters alerts)
Alerts
Confirmed Breakout (validated movement with quality criteria).
Ongoing Breakout (tracked with minimum risk/reward ratio, every 5 candles).
Disclaimers
Not financial advice; test in demo mode.
Past performance is not indicative of future results.
High risk in crypto trading; use proper risk management (1-2% per trade).
Commission (0.1%) may impact results; adjust for your broker.
Contact
Coton for questions or improvements.
Trading Report Generator from CSVMany people use the Trading Panel. Unfortunately, it doesn't have a Performance Report. However, TradingView has strategies, and they have a Performance Report :-D
What if we combine the first and second? It's easy!
This script is a special strategy that parses transactions in csv format from Paper Trading (and it will also work for other brokers) and “plays” them. As a result, we get a Performance Report for a specific instrument based on our real trades in Paper or another broker.
How to use it :
First, we need to get a CSV file with transactions. To do this, go to the Trading Panel and connect the desired broker. Select the History tab, then the Filled sub-tab, and configure the columns there, leaving only: Side, Qty, Fill Price, Closing Time. After that, open the Export data dialog, select History, and click Export. Open the downloaded CSV file in a regular text editor (Notepad or similar). It will contain a text like this:
Symbol,Side,Qty,Fill Price,Closing Time
FX:EURUSD,Buy,1000,1.0938700000000001,2023-04-05 14:29:23
COINBASE:ETHUSD,Sell,1,1332.05,2023-01-11 17:41:33
CME_MINI:ESH2023,Sell,1,3961.75,2023-01-11 17:30:40
CME_MINI:ESH2023,Buy,1,3956.75,2023-01-11 17:08:53
Next select all the text (Ctrl+A) and copy it to the clipboard.
Now apply the "Trading Report Generator from CSV" strategy to the chart with the desired symbol and TF, open the settings/input dialog, paste the contents of the clipboard into the single text input field of the strategy, and click Ok.
That's it.
In the Strategy Tester, we see a detailed Performance Report based on our real transactions.
P.S. The CSV file may contain transactions for different instruments, for example, you may have transactions for CRYPTO:BTCUSD and NASDAQ:AAPL. To view the report is based on CRYPTO:BTCUSD trades, simply change the symbol on the chart to CRYPTO:BTCUSD. To view the report is based on NASDAQ:AAPL trades, simply change the symbol on the chart to NASDAQ:AAPL. No changes to the strategy are required.
How it works :
At the beginning of the calculation, we parse the csv once, create trade objects (Trade) and sort them in chronological order. Next, on each bar, we check whether we have trades for the time period of the next bar. If there are, we place a limit order for each trade, with limit price == Fill Price of the trade. Here, we assume that if the trade is real, its execution price will be within the bar range, and the Pine strategy engine will execute this order at the specified limit price.
FFH Strategy EMA 1.51 Master)This strategy is built on a proprietary trend-following framework optimized for short-to-mid timeframes. It dynamically identifies directional bias shifts and triggers entries based on internal confluence signals.
Trade management is rule-based with predefined exit conditions to help reduce emotional decision-making.
Each trade signal is clearly marked on the chart along with precise price points for better clarity.
🚀 Key Features:
High-probability entry zones
Structured exit logic
Visual signal markers with entry/exit prices
Alerts for all actionable events
Suitable for intraday momentum traders and swing setups
Tested on Indian and global instruments. Works best in trending market environments.
📌 This strategy is invite-only. Contact the author to learn more or request access.
3Commas DCA (asap)3Commas DCA (asap) – Automated DCA Bot Strategy
This strategy replicates the DCA (Dollar Cost Averaging) "asap" logic from 3Commas, supporting both LONG and SHORT operations.
How it works:
Opens the first market order (Base Order) when there is no active deal.
Immediately places a series of Safety Orders (limit orders) at fixed price deviations from the base entry price. The number and size of safety orders can be configured.
When price moves against the position, safety orders are executed, averaging the entry price.
The deal is closed only when the total profit across all open trades reaches or exceeds the configured Target Profit (in %), at which point all positions are closed and all unfilled safety orders are canceled.
The process repeats for the next deals.
Features:
Configurable base order size, safety order size, number of safety orders, safety order volume scale, and price deviation.
Supports both LONG and SHORT modes.
Backtest range selection for strategy evaluation.
Visual labels, position lines, and detailed statistics table for analysis.
Inputs:
Base order size, safety order size, safety order count, safety order scale, price deviation, target profit, trading fee, price range filters, and more.
Best Practice:
Test thoroughly with historical data before using live. Adjust risk, volume, and parameters to suit your exchange and asset.
Risk Warning:
DCA strategies can amplify losses in trending markets. Use with caution and proper risk management.
MÈGAS ALGO : MÈGAS Engine [STRATEGY]Overview
The MÈGAS Engine is an advanced algorithmic trading system that integrates a range of technical analysis tools to pinpoint high-probability opportunities in the market.
Key Features
Core Signal Generation:
-Structure Break Detection: Advanced breakout identification with adjustable
sensitivity controls
-Dual-Direction Analysis: Separate bullish and bearish signal parameters with customizable delta
thresholds and depth settings
-Dynamic Parameter Management: OverfitShield technology with pulsewave parameter cycling
to reduce overfitting risks
Filtering Alghoritm:
-Volatility Filter: Rogers-Satchell volatility estimation with RSI-based normalization to avoid
trading in unfavorable market conditions
-Volume Confirmation: Cumulative volume analysis ensuring adequate liquidity support for trade
entries
OverfitShield Method:
OverfitShield is a built-in function within the trading strategy designed to reduce overfitting bias by introducing parameter variability during execution. When the "variable" mode is activated, instead of relying on fixed values for key strategy parameters the system dynamically selects values from customizable ranges.
This approach mimics real-world market uncertainty and ensures that the strategy does not become overly dependent on a single optimal value found during backtesting — making it more robust across different market conditions and time periods.
Position Management
-Customizable Exit Set-up
The exit logic can be customized to 'CONTINUE', 'TAKE PROFIT', or 'TRAILING PROFIT' to suit
your trading approach and maximize performance.
-CONTINUE Mode:
This mode does not use predefined take profit levels. Instead, it remains in the market as long as the trend persists. By avoiding fixed exit points, this approach is often the most effective in backtesting, as it allows positions to run in favorable trends for longer periods.
-TAKE PROFIT Mode:
This mode allows you to set multiple grid-like take profit levels at different price points, effectively creating a multi-tier exit strategy. You can specify the number of profit levels you want, along with the percentage step between each level. This structured approach can be beneficial for capturing incremental profits in a trending market while allowing for more flexibility in trade management.
-TRAILING PROFIT Mode:
Similar to the Take Profit mode, this option allows you to set the trailing stop levels. The trailing stop moves with the market, ensuring that you lock in profits as the price continues to move in your favor. Once a profit level is hit, the trailing stop "follows" the price movement, adjusting dynamically to safeguard profits as the trade progresses.
3. Customizable Insight Alerts
Traders can configure personalized alert messages for every strategy action, including entries, exits, and profit targets. These alerts are fully compatible with TradingView's webhook system.
Advantages
Customization: Fully customizable exit set-up and alerts allow traders to tailor the strategy to their personal trading objectives.
How It Works — Step by Step
Step 1: Apply the Strategy
Open the chart for your selected symbol and timeframe. Add the MÈGAS Engine to the chart.
Step 2:Backtesting and Optimization
Run a full backtest and optimize the strategy parameters across the chosen trading pairs to:
Identify robust settings that perform consistently well
Avoid overfitting through validation techniques
Select the most profitable and stable configuration for live or forward testing.
Step 3: Review Results and Alerts
Check the backtest results on the chart and confirm that the custom alert messages are displaying as expected. This helps verify that everything is functioning correctly before moving forward.
Step 4: Configure Portfolio Management
Set up the exit logic based on your specific requirements. Tailor the exit strategy to match your trading approach, whether you prefer predefined take profit levels, trailing stops, or a trend-following method. This flexibility ensures the exit logic aligns with your overall strategy for optimal performance.
Open the strategy settings window. In the dedicated portfolio management section, choose your preferred capital allocation method based on your trading style and risk preferences. Once set, save the configuration as the default.
Step 5: Set Up Alerts
Click "Add Alert" on the strategy
-In the message field, use: {{strategy.order.comment}}
Under the Notifications tab:
-Enable Webhook URL
-Enter your external webhook address
-Click 'Create' to activate alerts for your strategy
Please Note:
The results and visualizations presented are derived from optimized backtesting iterations using historical and paid real-time market data sourced via TradingView. While these results are intended to demonstrate potential performance, they do not guarantee future outcomes or accuracy. Past performance is not indicative of future results, and all trading involves risk.
We strongly recommend that users review and adjust the Properties within the script settings to align with their specific account configurations and preferred trading platforms. This ensures that the strategy outputs are reflective of real-world conditions and enhances the reliability of the results obtained. Use this tool responsibly and at your own risk.
Cyber Strategy V1Сyber Strategy V1 – Indicator Testing & Strategy Execution Framework
✅ Overview
Cyber Strategy V1 is a closed-source strategy framework engineered to turn any of yours external indicator into a systematic, rule-based trading system. Designed for rigorous testing and live deployment, it combines multi-signal inputs, confirmations and automated execution paths to help traders and developers validate signal quality and manage risk with precision.
✅ Core Functionality
Multi-Source Independent Signal Inputs
Reversal Logic
Take Profit: up to 5 staggered TP levels, specified as percentage
Stop Loss: configurable via fixed percentage or dynamic SL that trails a reverse signals.
✅ Statistical Drawdown Analysis
For all profitable trades, tracks the maximum intratrade drawdown.
Computes percentile levels of profitable trades that hits minimum drawdowns to inform:
Entry buffer zones (e.g. avoid entering during transient noise)
Partial entry scaling prices.
✅ Signal Confirmation
Optional confirmation delays: hold entry until other signal section send a confirmation from another indicator.
✅ Automated Execution Integrations
Cornix Text Alerts: Generates pre-formatted alerts compatible with Cornix for semi-automated or bot trading.
Webhook Support: Emits JSON payloads on order-fill events to any endpoint, enabling full automation through third-party services or custom order-routing systems.
Important Notes
⚠️ THIS STRATEGY DOES NOT INCLUDE INDICATORS. Examples shown on screenshots use third-party tools. NO PROPRIETARY INDICATORS INCLUDED: Cyber Strategy V1 relies entirely on external signal inputs.
⚠️ All backtesting parameters are customizable; thorough backtesting under realistic slippage, fees and spread assumptions is essential before live deployment.
Kaito Box with RSI Div(Dynamic Adjustment + MA + Long)The script implements a dynamic trading strategy that combines box range detection, RSI divergence signals, and moving average trend analysis. It is designed for use on OKX Signal Bots and includes features for dynamic position scaling and partial position closing. Below is a summary of its key functionalities:
Key Features:
Box Range Detection:
The script identifies price ranges using the highest high and lowest low of a configurable boxLength period.
These levels are plotted on the chart to visualize the price range.
RSI Divergence Detection:
The script calculates RSI using a configurable rsiLength.
Detects bullish divergence when price makes a lower low, but RSI makes a higher low.
Detects bearish divergence when price makes a higher high, but RSI makes a lower high.
Includes separate left and right lookback periods (leftLookback, rightLookback) for precise local extrema detection.
Customizable Moving Averages:
Supports multiple types of Moving Averages (SMA, EMA, SMMA, WMA, VWMA).
Calculates and plots MA20, MA50, MA100, and MA200 on a user-defined timeframe (custom_timeframe).
Identifies uptrends and downtrends based on the alignment of the moving averages and price levels.
Dynamic Position Scaling:
Implements dynamic position sizing for long entries and partial position closing for exits.
The percentage of position size added or closed is based on the difference between the current price and the average position price (avgPrice), with configurable minimum thresholds (minEnterPercent, minExitPercent).
Signal Integration for OKX Bots:
Sends buy/sell signals to OKX Signal Bots using the configured signalToken.
Supports market or limit orders with configurable price offsets and investment types.
Trend-Based Signal Filtering:
Only triggers long signals during downtrends and short signals during uptrends, ensuring trades align with the overall market context.
Visual Annotations:
Plots bullish and bearish divergence signals on the chart.
Displays labels showing dynamic position size adjustments and current average price during trades.
How It Works:
Long Signals:
Triggered when the price breaches the lower box range, and a bullish RSI divergence is detected.
Additional filtering ensures long trades are executed only during downtrend conditions.
Dynamically adjusts the position size based on the price difference from the average entry price.
Short Signals:
Triggered when the price breaches the upper box range, and a bearish RSI divergence is detected.
Additional filtering ensures short trades are executed only during uptrend conditions.
Dynamically closes portions of the position based on price movement relative to the average entry price.
Alerts:
Generates actionable alerts formatted for OKX bots, including order type, signal token, and dynamically calculated position sizes.
Use Case:
This strategy is well-suited for automated trading on platforms like OKX, where it can:
Exploit price ranges and RSI divergences for precise entries and exits.
Dynamically manage position sizes to optimize risk-reward.
Adapt to different market conditions using configurable parameters like moving averages, divergence lookbacks, and trend filters.
This script provides a robust foundation for traders looking to automate their strategies while maintaining flexibility and control over their trading logic.
30-70 RSI Strategy with Colored BarThis script colors price bars based on Relative Strength Index (RSI) levels, giving traders a quick and visual way to assess overbought or oversold market conditions directly on the chart.
📈 Key Features:
✅ RSI-Based Bar Coloring:
Green bars when RSI is above the upper threshold (default 70) – suggests bullish momentum.
Red bars when RSI is below the lower threshold (default 30) – indicates bearish pressure.
Bars remain uncolored when RSI is between thresholds – a neutral zone.
🔧 Customizable RSI Settings:
Adjustable RSI length (default: 14 periods)
Adjustable overbought/oversold levels (default: 70/30)
🧠 Helps traders:
Quickly spot potential reversals or trend continuations
Visually align price action with momentum
🛠️ Usage:
Ideal for trend-following, reversal, and momentum strategies.
Works across any timeframe (1m, 5m, 1h, daily, etc.).
TrendTwisterV1.5 (Forex Ready + Indicators)A Precision Trend-Following TradingView Strategy for Forex**
HullShiftFX is a Pine Script strategy for TradingView that combines the power of the **Hull Moving Average (HMA)** and a **shifted Exponential Moving Average (EMA)** with multi-layered momentum filters including **RSI** and **dual Stochastic Oscillators**.
It’s designed for traders looking to catch high-probability breakouts with tight risk management and visual clarity.
Chart settings:
1. Select "Auto - Fits data to screen"
2. Please Select "Scale Price Chart Only" (To make the chart not squished)
### ✅ Entry Conditions
**Long Position:**
- Price closes above the 12-period Hull Moving Average.
- Price closes above the 5-period EMA shifted forward by 2 bars.
- RSI is above 50.
- Stochastic Oscillator (12,3,3) %K is above 50.
- Stochastic Oscillator (5,3,3) %K is above 50.
- Hull MA crosses above the shifted EMA.
**Short Position:**
- Price closes below the 12-period Hull Moving Average.
- Price closes below the 5-period EMA shifted forward by 2 bars.
- RSI is below 50.
- Stochastic Oscillator (12,3,3) %K is below 50.
- Stochastic Oscillator (5,3,3) %K is below 50.
- Hull MA crosses below the shifted EMA.
---
## 📉 Risk Management
- **Stop Loss:** Set at the low (for long) or high (for short) of the previous 2 candles.
- **Take Profit:** Calculated at a risk/reward ratio of **1.65x** the stop loss distance.
---
## 📊 Indicators Used
- **Hull Moving Average (12)**
- **Exponential Moving Average (5) **
- **Relative Strength Index (14)**
- **Stochastic Oscillators:**
- %K (12,3,3)
- %K (5,3,3)
Supertrend Fixed TP Unified with Time Filter (MSK)Trend Strategy Based on the SuperTrend Indicator
This strategy is based on the use of the adaptive SuperTrend indicator, which takes into account the current market volatility and acts as a dynamic trailing stop. The indicator is visualized on the chart with colors that change depending on the direction of the trade: green indicates an uptrend (long), while red indicates a downtrend (short).
How It Works:
A buy signal (long) is generated when a bar closes above the indicator line.
A sell signal (short) is triggered when a bar closes below the indicator line.
Strategy Settings:
Trading Modes :
Long only : Only long positions are allowed.
Short only : Only short positions are allowed.
Both : Both types of trades are permitted.
Take-Profit :
The strategy supports a simple percentage-based take-profit, allowing you to lock in profits during sharp price movements without waiting for a pullback.
The take-profit level and its value are visualized on the chart. Visualization can be disabled in the settings.
Colored Chart Areas :
Long and short areas on the chart are highlighted with background colors for easier analysis.
Price Level :
You can set a price level in the settings to restrict trade execution:
Long trades are executed only above the specified level.
Short trades are executed only below the specified level.
This mode can be enabled or disabled in the parameters.
________________________________________________________________
Описание стратегии (на русском языке)
Трендовая стратегия на основе индикатора SuperTrend
Стратегия основана на использовании адаптивного индикатора SuperTrend , который учитывает текущую волатильность рынка и играет роль динамического трейлинг-стопа. Индикатор визуализируется на графике цветом, который меняется в зависимости от направления сделки: зелёный цвет указывает на восходящий тренд (лонг), а красный — на нисходящий тренд (шорт).
Принцип работы:
Сигнал на покупку (лонг) генерируется при закрытии бара выше линии индикатора.
Сигнал на продажу (шорт) возникает при закрытии бара ниже линии индикатора.
Настройки стратегии:
Режимы торговли :
Long only : только лонговые позиции.
Short only : только шортовые позиции.
Both : разрешены оба типа сделок.
Тейк-профит :
Стратегия поддерживает простой процентный тейк-профит, что позволяет фиксировать прибыль при резком изменении цены без ожидания отката.
Уровень и значение тейк-профита визуализируются на графике. Визуализацию можно отключить в настройках.
Цветные области графика :
Лонговые и шортовые области графика выделяются цветом фона для удобства анализа.
Уровень цены :
В настройках можно задать уровень цены, который будет ограничивать выполнение сделок:
Лонговые сделки выполняются только выше указанного уровня.
Шортовые сделки выполняются только ниже указанного уровня.
Этот режим можно включать или отключать в параметрах.
Advanced Adaptive Grid Trading StrategyThis strategy employs an advanced grid trading approach that dynamically adapts to market conditions, including trend, volatility, and risk management considerations. The strategy aims to capitalize on price fluctuations in both rising (long) and falling (short) markets, as well as during sideways movements. It combines multiple indicators to determine the trend and automatically adjusts grid parameters for more efficient trading.
How it Works:
Trend Analysis:
Short, long, and super long Moving Averages (MA) to determine the trend direction.
RSI (Relative Strength Index) to identify overbought and oversold levels, and to confirm the trend.
MACD (Moving Average Convergence Divergence) to confirm momentum and trend direction.
Momentum indicator.
The strategy uses a weighted scoring system to assess trend strength (strong bullish, moderate bullish, strong bearish, moderate bearish, sideways).
Grid System:
The grid size (the distance between buy and sell levels) changes dynamically based on market volatility, using the ATR (Average True Range) indicator.
Grid density also adapts to the trend: in a strong trend, the grid is denser in the direction of the trend.
Grid levels are shifted depending on the trend direction (upwards in a bear market, downwards in a bull market).
Trading Logic:
The strategy opens long positions if the trend is bullish and the price reaches one of the lower grid levels.
It opens short positions if the trend is bearish and the price reaches one of the upper grid levels.
In a sideways market, it can open positions in both directions.
Risk Management:
Stop Loss for every position.
Take Profit for every position.
Trailing Stop Loss to protect profits.
Maximum daily loss limit.
Maximum number of positions limit.
Time-based exit (if the position is open for too long).
Risk-based position sizing (optional).
Input Options:
The strategy offers numerous settings that allow users to customize its operation:
Timeframe: The chart's timeframe (e.g., 1 minute, 5 minutes, 1 hour, 4 hours, 1 day, 1 week).
Base Grid Size (%): The base size of the grid, expressed as a percentage.
Max Positions: The maximum number of open positions allowed.
Use Volatility Grid: If enabled, the grid size changes dynamically based on the ATR indicator.
ATR Length: The period of the ATR indicator.
ATR Multiplier: The multiplier for the ATR to fine-tune the grid size.
RSI Length: The period of the RSI indicator.
RSI Overbought: The overbought level for the RSI.
RSI Oversold: The oversold level for the RSI.
Short MA Length: The period of the short moving average.
Long MA Length: The period of the long moving average.
Super Long MA Length: The period of the super long moving average.
MACD Fast Length: The fast period of the MACD.
MACD Slow Length: The slow period of the MACD.
MACD Signal Length: The period of the MACD signal line.
Stop Loss (%): The stop loss level, expressed as a percentage.
Take Profit (%): The take profit level, expressed as a percentage.
Use Trailing Stop: If enabled, the strategy uses a trailing stop loss.
Trailing Stop (%): The trailing stop loss level, expressed as a percentage.
Max Loss Per Day (%): The maximum daily loss, expressed as a percentage.
Time Based Exit: If enabled, the strategy exits the position after a certain amount of time.
Max Holding Period (hours): The maximum holding time in hours.
Use Risk Based Position: If enabled, the strategy calculates position size based on risk.
Risk Per Trade (%): The risk per trade, expressed as a percentage.
Max Leverage: The maximum leverage.
Important Notes:
This strategy does not guarantee profits. Cryptocurrency markets are volatile, and trading involves risk.
The strategy's effectiveness depends on market conditions and settings.
It is recommended to thoroughly backtest the strategy under various market conditions before using it live.
Past performance is not indicative of future results.
Pure Price Action StrategyTest Price Action Strategy from Lux Pure Price Action Indicator
How This Strategy Works:
Recognizing Trends & Reversals:
Break of Structure (BOS): A bullish signal indicating a trend continuation.
Market Structure Shift (MSS): A bearish signal indicating a potential reversal.
Analyzing Market Momentum:
It uses recent highs and lows to confirm whether the price is making higher highs (bullish) or lower lows (bearish).
Customizing Visualization Styles:
Buy signals (BUY Signal) are plotted as green upward arrows.
Sell signals (SELL Signal) are plotted as red downward arrows.
Stop-Loss (SL) & Take-Profit (TP): Configurable via percentage input.