Futures Spot Difference Strategy by MoonFlag
This strategy compares the spot and futures value of a coin on a given exchange
If the 'Percent Difference' (See settings) is greater than a user specified ammount a blue (long) or green(short) line is put on the chart.
Default % difference typically varies from 0.2 to 0.7 depending on the coin and timeframe. On higher timeframes (1hour) a difference of 1.5% might be required to give good intermittent trade results.
I've chosen a USD-USDT comparison as default for ease of understanding. Note the futures coin goes onto the chart and the spot coin is referenced in settings. The bot works this way as the futures will typically extend beyond the spot price, not the other way around.
User can select if to include Long and/or Short trades.
The 'Trigger Only When Bar Complete' means that repainting should not be an issue if set to true. However, if set to false the strategy will enter a trade at the point in time when the percentage difference is met. This is useful with some coins as the futures coins price rapidly changes to realign with the spot price. It is however difficult to backtest this feature as backtests only consider the bar complete situation. I mostly use Trigger When Bar Complete = true, as a difference in the spot/ futures price is typically followed by a price shift trend over then next reasonable time period.
Timing is essential in this bot. There is a stop-loss however, this stop value is replaced by a exp ramp which has 3 variables (starting %, length, run-up). When the ramp is narrower to the price than the stop-loss the ramp takes over the stop-loss and this reduces losses. Also, there is an option to have the ramp take over the take-profit if the ramp betters the start-price (i.e. the trade is in profit). This is very useful for times when the price massively swings beyond the take-profit price as the exp ramp goes way up. The ramp also limits the time a trade will stay in position, unless the trades moves in tandem with the ramp. The ramp is the most useful feature I have for bots, I use it all the time.
So a difference between the spot and futures price - can lead to a trend establishing, so catch these with this bot. It works well on fast timeframes, 1m, 5m, 15m, and also is useful with the 1hour and similar.
Please get in touch to have this bot matched to any coin pair
Please do get in touch if you have any questions/suggestions.
Sincerely,
MoonFlag PhD
ค้นหาในสคริปต์สำหรับ "bot"
Multi VWAPMulti VWAP indicator for Wick Hunter
For when you are running out of indicator slots
Can configure each set for Setting 1/2/3, or for Binance bot 1/Binance bot 2/Bybit bot, etc.
By honeybadger, built on original code by STP Todd (see indicator "Wick Hunter VWAP")
BTC 15 minThis strategy try to catch the uptrend mainly (seems to work on BTC 15 less on others)
the aim is to get 2% in uptrend which is more easy to do then to search only for lowest
since it buy in uptrend it can risky if market change direction
there are two take profit (1% and 2% ) , you take out 50% of equity after the first 1% gain
the stop loss and re buy set 5%
so you exit after 5 % loss and re buy it again at lower price
the aim here is to do leverage trades so you can calculate your risk or lot and the leverage power you want
now set on 100% lot leverage X1
you can try any combination you want but when you do leverage trading you need to do things that the back tester of TV cannot do so well
for example if you put 100X leverage you will be liquidated at 1%
50=2%
20=5%
10=10%
5=20%
you need that your stop loss will be above the liquidation level
stop loss are shit in margin trades as they can kick you out very fast and you will lose many good trades
so I prefer 5X max 10 X trade (this bot can work by himself but i prefer to do it manually for this kind of trades.
all u need to do is to choose what risk you want to have (3% of lot? 5%, 10% or higher )
so this tool try to give you upward buy strategy that aim to get longs at upward trends (short targets that are more easy to get )
and to use leverage as way to make more profit (now bot set to no leverage )
be wise with your money :)
the bot not suppose to repaint but if you find repaint issue then let me know
buy system is based on cross of linear over modified non repainted HMA that set to 1 min (so it buy the uptrend only+ filter based on ema that try not to start cycle of buy in down traade
sell is not so important is mainly cased on percentage channel seen
trend color on Chanel not related to the buy and sell system
Theft Indicator - BUY/SELL AlertsWhat is our indicator?
Theft Indicator - Buy & Sell Alert System is our first published script that shows price action on a certain period of time (We Use ATR indicator). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a conditions in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. We recommend high time frames but you can also use it on the 1 minute chart if you are a scalper and a risk taker. All time frames are profitable, not all trades. But the Majority is profitable. We will soon add a backtest strategy for it, there is no ETA on it tho.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. Theft Indicator - Buy/Sell Alerts work best with higher time frames, however it works on smaller time frames, we recommend 15 mins, 30 mins, 1hr, 4hr. It just depends on your trading style. Please contact us if you do not understand how to use it.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to fit our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the mathematical equation and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR because of our algo that is different from the normal ATR calculation.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable.
You can contact me for more information about the indicator, Goodluck :)
Kirk65 UTBot Strategy FixedCredits to @HPotter for the orginal code.
Credits to @Yo_adriiiiaan for recently publishing the UT Bot study based on the original code.
Credits to @TradersAITradingPlans for making UT Bot strategy.
Strategy fixed with time period by Kirk65.
UT Bot works great with 2 hour time frame with Heikin Ashi, but riskier. Use "Once per bar" In alerts with 1.5% stoploss. If the price goes against Alerts, stoploss will save your assets. Wait until next Alert.
4 hour time frame is less risky and less profitable.
Happy trading..
Kirk65
DayTrade - XBTUSD 5m [ALERTSETUP]Plug & Play indicator for BITMEX:XBTUSD in 5 minute timeframe for Manual or Automated Day Trading.
Built upon Cyatophilum Scalping Bot
Backtest below show results over 2 weeks, calculated with a 0.075 % commission fee and using 100% of equity on each trade from 10 000$ inital capital.
> Get access to the Cyatophilum Indicators <
Trends in Black and White'Trends in Black and White' is now rolling out to all of our Pro Community members
What is it for? This is a simple visual indicator designed to help users identify long or short bias. It does not provide direct entries and exits but can be used effectively in combination with Trendmaster Premium and other technical analysis methods.
How do i get access?
This indicator is available as a free extra to all of our Pro community members only.
All of our packages are listed below.
- Premium - $50 - This gives you access to the TrendMaster Premium TradingView indicator (www.tradingview.com), the TrendMaster Premium Binance signal bots and the Premium Discord channels.
- Premium+ - $75 or $25 for existing Premium users - All the benefits of the Premium package, but with added signal bots for Bittrex, Bitfinex and Kucoin exchanges.
- Pro - $100 or $50 for existing Premium users/$25 for existing Premium+ users -Access to 'Trendmaster Premium' and 'Trends in Black and White' indicators. All the benefits of the Premium+ package, but with added signal bots for D1 and H4 Ichimoku TK cross and Ichimoku cloud breakout for Binance.
The mandatory Legal bit:
@IchimokuScholar and @Crypto_C00kie wish you the best of luck in achieving your trading goals. Please apply appropriate risk management.
Any form of trading has large potential rewards but also large potential risks. The Purchaser must be aware of those risks and be willing to accept them. Don't trade with money that you, the Purchaser cannot afford to lose. No representation is being made that you are guaranteed positive results. The past performance of any trading methodology is not necessarily indicative of future results. Trading involves high risks. @TrendmasterTM, @IchimokuScholar or @Crypto_C00kie are NOT responsible for any trades that you, the Purchaser take. All trades taken are entirely at the Purchasers own risk. Refunds are neither offered nor implied.
inwCoin BB+Stoch StrategyStrategy using BB and Stoch for entry, trailing for exit.
-------
IDEA
-------
* If price move to reach upper BB and pull back and cross down middle line, and stoch is on OB zone, it will enter short.
* If price move to reach lower BB and pull back and cross up middle line, and stoch is on OS zone, it will enter long.
* Stoch help filter out the bad entry from BB logic, helping with high win trade %
* I smooth out stoch by using 30 length and found out it give better profit%
=============================================
Test Data Detail
=============================================
Exchange : OKEX
Coin : BTCUSD3M
Timeframe : 1H
Date range : 2018/1/1 - 2019/1
For : Trailing with bot ( If you have one :P )
Config
Trade % = 20 ( You can increase trade size of your total port but it will get you into more risky trade. ( but yes, more profit ) ... u can increase trade size if you have enough profit
Trailing Start = 20 ( If you can write bot, it will start trailing when the profit % reach this value )
Trailing Stop = 5 (If you can write bot, it will take profit if the profit drop below this value from trailing start.)
Take Profit = 100 (It will set fixed TP for whipsaw case ( rarely reach this target ) )
Stop % = 50 ( so this trade is RR = 2 nice! )
Leverage = 20 ( so we can withstand the price fluctuation and not get liquidated, if you trade spot, please choose 1 also, please adjust TP and stop accordingly eg. leverage 1 / TP = 20 / SL = 10 )
Trade Direction = Both ( for margin market, if you want to trade spot like Binance you can choose long only )
Stoch Oversold Zone = 30 ( if stoch stay below or equal this value, it is oversold )
Stoch Overbought Zone = 50 ( if stoch stay above or equal this value, it is overbought )
Stoch Length = 30 ( the more length, the more smooth out of Stoch )
SmoothK1 = 1 ( the smoothness of K )
inwCoin HMA StrategySuper duper strategy using HMA ( Hull Moving Average ) 10 and 50 for decided entry ( short / long )
There are 2 type of strategies, you can choose with checkbox.
(1) Aggressive Strategy Ticked
* If ticked, strategy will enter position again if the condition met. ( both line red ) after Taking Profit ( or Stop Loss )
* It will use trailing start/stop so the profit is kinda crazy ( and yes, impossible in real world lol )
* The problem is, it will enter position like crazy and you might get a lot of loss from fee
(2) Aggressive Strategy not Ticked
* It will enter once only ( HMA10 just changed color to the same as HMA50 )
* If TP or SL already, it will wait for next signal
* Less trade, less profit, but safer. ( wait for right signal )
** For Aggressive Strategy, you can't select the date from 1/1/2018 because the trade record is way too much .... lol
** You can experiment yourself with other exchange/coin as your like.
=============================================
Test Data Detail
=============================================
Exchange : OKEX
Coin : BTCUSD3M
Timeframe : 1H
Date range : 2018/2/9 - 2019/1
For : Trailing with bot ( If you have one :P )
Config
Trade % = 20 ( You can increase trade size of your total port but it will get you into more risky trade. ( but yes, more profit ) ... u can increase trade size if you have enough profit
Trailing Start = 20 ( If you can write bot, it will start trailing when the profit % reach this value )
Trailing Stop = 5 (If you can write bot, it will take profit if the profit drop below this value from trailing start.)
Take Profit = It will set fixed TP for whipsaw case ( rarely reach this target )
Stop % = 50 ( so this trade is RR = 2 nice! )
Leverage = 20 ( so we can withstand the price fluctuation and not get liquidated, if you trade spot, please choose 1 also, please adjust TP and stop accordingly eg. leverage 1 / TP = 20 / SL = 10 )
Trade Direction = Both ( for margin market, if you want to trade spot like Binance you can choose long only )
Hull 1 Length = 10 ( Fast HMA length)
Hull 2 Length = 50 ( Slow HMA length)
Hull trend test length = 2 ( hull test range for rising or down trend )
Aggressive Strategy = YES ( enter next position if condition met immediately )
Strategy - Bobo's Pivot ATR SwingHi there, welcome to my pivot ATR swing bot. I put this out there with source code hidden to see what ideas others have to use it. Also if there are any coders of trading systems out there who wanted to work with me to put this into a form that could trade automatically we could both use... I'd welcome that kind of collaboration and will happily share the underlying rules of this and the more highly developed version that isn't public.
But as it is, the signals are free for all, use them as you wish and at your own risk. If you want to discuss the code, strategy or ideas, I'm around fairly regularly just message.
The bot is fairly simple design that will give you signals for long and short intraday/week on equity futures / CFDs / ETFs. You'll see it backtests fairly well on an hourly SPX500 chart as configured. You will need to set up certain parameters to account for any different timeframes and markets you wish to trade. For me it's most effective pick out a few good swing trades per week in equity futures. However part of the idea of putting this in the public domain is to see if other people will have good but different ideas how to use it. Please share with me if so :).
The basic concept is a series of 3 lines that define the area and movement we wish to trade. The daily pivot is the central line (blue). We are looking to capture reversions to this middle line from extremes (red and green). Therefore the bot will signal exit at the close of every candle that has passed through the pivot.
Entry is decided by the outer bands around the blue line. Red is the top band, green the bottom. As configured, these are simply placed a daily ATR value apart, centred around the pivot. You can change this quite a lot though, so let's go through the settings:
Pivot Timeframe - simple, a daily pivot is calculated from the previous day's values (high + low + close)/3 . BUt the same calculation can be applied to any length candle, day, minute, month or whatever. This makes the middle target line more or less responsive to recent price action.
ATR Band Timeframe - When we calculate the average range, we need to know what candle length makes up our series. Daily candles is the default, but you can change that here.
ATR Lookback - When we calculate the average range, we need to know how many instances of the timeframe (day, minute, hour etc) we look back to create an average. The lower the lookback value, the more the width of the bands (the distance from pivot) will change quickly based on the volatility of previous candles. The higher the lookback value, the more stable the band width will be to recent volatility.
ATR divisor - The ATR value above is divided by this value, before being added or subtracted to the pivot to create the red and green lines. Default value is 2, and this means the distance from the red band to the green band will be equal to 1 ATR, as calculated according to the parameters above. Setting this to 1 would mean that each band is one ATR away from pivot (ie the bands got wider apart). Set this to 4, and it means that it is only 1/2 an ATR from green to red.
Take Profit / Stop Loss. - We know what a stop and profit target are, but worth nothing that a 0 value disables stop loss or profit targets. The bot will still close positions when crossing pivot.
Also, note the mintick value of the instrument you apply this to. For example for the CFD chart SPX500 the mintick value is 0.1. So a 100 value for stop loss = 10 points on SPX500. but if you were to trade the same thing basically, but the emini future ES, the mintick value is 0.25. So for a 10 point stop on the ES chart, you would need a value of 40 in this bot. US30 and YM have convenient mintick values of 1. Currencies can be a bit of a nightmare :).
TrendMaster Premium ©Trendmaster Premium©
We are proud to release the final version of Trendmaster Premium©. This indicator is the result of months of development between @TrendmasterTM and @Crypto_C00kie.
Trendmaster Premium© is a Trend following system that provide entries, exits and stop loss placement. It is extremely simple to follow and we have experienced outstanding results.
When purchasing Trendmaster Premium© you will receive access to the indicator suite and access to our private members discord group.
Discord: The discord channel is a place where traders can discuss ideas and share content.
It includes
Bots – The discord channel currently has two bots that constantly scan Binance for signals. They will alert you by notification of any BTC pair that has printed a signal candle. Currently the bots report D1 and H4 signals as these are the time frames the indicator is designed for. These are designed to alert you to possible trades and should NOT be blindly traded from.
Chat – Several chat servers offering educational resources, guidance on how to use the indicator and chart/idea sharing.
The mandatory Legal bit:
@IchimokuScholar and @Crypto_C00kie wish you the best of luck in achieving your trading goals. Please apply appropriate risk management.
Any form of trading has large potential rewards but also large potential risks. The Purchaser must be aware of those risks and be willing to accept them. Don't trade with money that you, the Purchaser cannot afford to lose. No representation is being made that you are guaranteed positive results. The past performance of any trading methodology is not necessarily indicative of future results. Trading involves high risks. Neither @TrendmasterTM or @Crypto_C00kie are responsible for any trades that you, the Purchaser take. All trades taken are entirely at the Purchasers own risk. Refunds are neither offered nor implied.
Study_v8- Used with Autoview… Longs / Margin TradingInvite only…
FREE Access until my bot is built (Target Date…. May 2018).
Only allowing 20 people to use.
Cost will be 10% of any profits made. Minimum account balance being traded must be $1,000.
After my bot is built, this script will ONLY be used with my bot and all access on here (Trading View) will be removed after the final sell trigger is completed!
****Can be used for just Longs.. or for Margin Trading.****
For Longs only.. Settings and Alert condition examples found here:
drive.google.com
For Margin trading... Settings and Alert condition examples found here:
drive.google.com
Strat_v8 - Used with Autoview… Longs / Margin TradingInvite only…
FREE Access until my bot is built (Target Date…. May 2018).
Only allowing 20 people to use.
Cost will be 10% of any profits made. Minimum account balance being traded must be $1,000.
After my bot is built, this script will ONLY be used with my bot and all access on here (Trading View) will be removed after the final sell trigger is completed!
****Can be used for just Longs.. or for Margin Trading.****
For Longs only.. Settings and Alert condition examples found here:
drive.google.com
For Margin trading... Settings and Alert condition examples found here:
drive.google.com
Accurate CCT System [rurubudong]Overview
The CCT (Consecutive Candle Trading) Bot is a powerful Price Action trading indicator that identifies high-probability trade setups based on consecutive bullish or bearish candles breaking key levels on higher timeframes.
This system helps traders:
✅ Identify strong momentum setups automatically
✅ Enter at institutional price levels (POI - Point of Interest)
✅ Trade with clear structure and confluence
✅ Avoid emotional decision-making with systematic signals
📊 How It Works
CCT Pattern Requirements
The indicator detects CCT setups when:
Two consecutive bullish candles on the higher timeframe (default 1H)
The second candle closes above the high of the first candle
A Point of Interest (POI) is created at the first candle’s high
For bearish setups, the logic reverses:
Two consecutive bearish candles
Second candle closes below the low of the first
POI created at the first candle’s low
Entry System
Entry Signal: Price crosses the POI level on lower timeframe (▲ for long, ▼ for short)
POI Validity: 90 minutes from CCT confirmation (adjustable in Premium)
Entry Mode: Cross-bar entry (previous bar touches, current bar crosses)
🆓 FREE Version Features
Core Functionality
✅ Automatic CCT Detection (1-hour timeframe)
✅ POI Lines - Visual horizontal lines showing entry zones
✅ CCT Confirmation Labels - “CCT✓” marks when pattern confirms
✅ Entry Signals - Clear ▲/▼ arrows when POI is crossed
✅ Historical Mode - Display all past CCT setups for backtesting
✅ Clean Interface - No clutter, just essential signals
Settings
CCT Timeframe: Fixed at 60 minutes
Entry Mode: Cross-bar entry
Max Entries: 1 per POI
POI Validity: 90 minutes
Perfect for: Beginners learning Price Action, traders who want simple clean signals, anyone testing the CCT methodology
💎 PREMIUM Version - Full Trading System
Advanced Features
🎯 Pending POI Detection - Gray dashed lines show potential setups BEFORE they confirm
📊 Stop Loss & Take Profit Visualization - Automatic SL/TP lines with trailing stops
🔧 Full Customization - Adjust ALL timeframes, periods, and modes
🔄 Multiple Entries - Up to 3 entries per POI for scaling in
⚡ Advanced Entry Modes - Cross-bar / Same-bar / Both required
🎚️ Two POI Modes - “Touch & Stop” or “Time Limited”
📈 Two-Stage TP System - TP1 at 50% (swing high/low) + TP2 with trailing stop
🎨 Complete Info Panel - 17 data points showing live trade status
🔔 JSON Alert System - Full webhook support for automation (Entry, TP1, TP2, SL)
🎭 Visual Feedback - Background colors showing CCT state, position status
⚙️ Dual SL Types - CCT Candle or Entry Swing based
Premium Settings Include
Any CCT Timeframe - 5m, 15m, 1H, 4H, Daily, etc.
Custom POI Duration - 10 to 300 minutes
Swing Periods - Customize SL, TP, and Trailing periods
SL Offset - Add buffer ticks to avoid stop hunting
Max 3 Entries - Scale into positions
All Colors Customizable
Info Panel (Premium Only)
Real-time display showing:
Current timeframes
POI status (None / Pending / Confirmed / Touched)
Exact POI price
Stop Loss level
Take Profit 1 & 2 levels (✓ marks when hit)
Entry count (e.g., “2/3”)
Position status (Active / None)
Trade outcome (TP1 50% / TP2 / Stop Loss)
🎓 Trading Strategy
Recommended Usage
Timeframe: Use 1-minute or 5-minute charts for entries
CCT Detection: Keep at 1-hour (or customize in Premium)
Risk Management:
Premium users: Use the automatic SL visualization
Free users: Manually set SL below/above CCT setup candles
Targets:
Premium: Automatic TP1 (50%) and TP2 (trailing)
Free: Take profit at recent swing highs/lows
Best Practices
✅ Trade in the direction of higher timeframe trend
✅ Look for CCT setups at key support/resistance levels
✅ Combine with volume confirmation
✅ Avoid trading during low liquidity periods
✅ Use proper position sizing (1-2% risk per trade)
📋 Display Modes
Active POI Mode (Default)
Shows only the current active POI line
Updates continuously as new setups form
Clean chart with minimal visual noise
Historical CCT Mode
Displays ALL past CCT setups
Great for backtesting the strategy
See historical win rates and patterns
Fixed POI length for clean visualization
⚙️ Settings Guide
FREE Version
Show CCT Labels: Toggle “CCT✓” markers
Show All Historical CCT: Enable to see past setups
Show POI Lines: Toggle POI horizontal lines
Show Entry Signals: Toggle ▲/▼ entry arrows
Colors: Customize CCT and POI colors
Historical POI Length: Adjust visual length (5-20 bars)
PREMIUM Version (Additional)
CCT Detection Timeframe: Choose any TF
POI Extension Mode: Touch & Stop vs Time Limited
Entry Cross Mode: Cross-bar / Same-bar / Both
Max Entries per POI: 1-10 entries
SL Type: CCT Candle or Entry Swing
All Swing Periods: Customize SL, TP1, TP2 calculations
SL Offset: Add tick buffer to stop loss
Show Pending POI: Gray dashed line before confirmation
Show SL/TP Lines: Visual risk management
CCT Background: Color coding for market state
Complete Alert System: JSON webhooks for automation
🔔 Alert System (Premium Only)
Available Alerts
CCT Bull Confirmed - New long setup confirmed
CCT Bear Confirmed - New short setup confirmed
Long Entry - Entered long position at POI
Short Entry - Entered short position at POI
Long TP1 - 50% take profit hit
Short TP1 - 50% take profit hit
Long TP2 - Final target hit (trailing stop)
Short TP2 - Final target hit (trailing stop)
Long Stop Loss - Stop loss triggered
Short Stop Loss - Stop loss triggered
JSON Format (Webhook Compatible)
Entry Alert Example:
{
"signal": "long",
"entry": "21245.50",
"time": "2025-01-25T10:30:00Z",
"ticker": "NQ1!"
}
TP Alert Example:
{
"signal": "tp1_hit_long",
"close_pct": 50,
"rule": "round_up",
"price": "21280.75"
}
Perfect for connecting to trading bots, Discord/Telegram notifications, or automated execution platforms.
📈 Performance Optimization
Backtesting Tips
Enable “Show All Historical CCT” mode
Replay historical data to see how setups performed
Note the POI lines and entry arrows
Track win rate and average R:R
Adjust timeframes if needed (Premium)
Live Trading
Start with small position sizes
Verify each setup matches your strategy rules
Use proper risk management
Keep a trading journal
Track statistics over 20+ trades minimum
❓ FAQ
Q: What instruments work best?
A: Futures (NQ, ES, YM), Forex majors, and liquid crypto pairs
Q: What’s the difference between Free and Premium?
A: Free gives you core CCT detection and basic signals. Premium adds pending detection, SL/TP visualization, full customization, multiple entries, and automation alerts.
Q: Can I use this for scalping?
A: Yes! Use 1-minute chart with 60-minute CCT detection for quick trades
Q: Do I need Premium for profitable trading?
A: No, the Free version contains the complete CCT methodology. Premium adds convenience, automation, and advanced risk management tools.
Q: How do I set stop losses in Free version?
A: Manually place stops below/above the CCT setup candles. Premium users get automatic SL lines.
Q: Can I backtest this?
A: Yes! Use “Show All Historical CCT” mode and TradingView’s bar replay feature
🚀 Get Started
Add to Chart - Click “Add to favorites” or apply directly
Choose Your Display - Active POI or Historical mode
Customize Colors - Make it match your theme
Start Learning - Watch for CCT✓ labels and POI lines
Upgrade When Ready - Get Premium for full automation
📞 Support & Updates
Questions? Comment below or message me directly
Feature Requests? Let me know what would help your trading
Updates - Indicator is actively maintained and improved
⚠️ Disclaimer
This indicator is for educational purposes only. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose. Trading carries substantial risk of loss.
Upgrade to Premium:
💬 Questions or feedback? Drop a comment below!
🌟 If this indicator helps your trading, please leave a review!
Apex Adaptive RSIThe Apex Adaptive RSI is a next-generation momentum oscillator designed to solve the "lag vs. noise" problem found in traditional indicators. By utilizing an Efficiency Ratio (ER), the script dynamically adjusts its sensitivity based on current market volatility.
How it Works: Unlike a standard RSI that uses a fixed period (e.g., 14), the Apex Engine calculates the "Efficiency" of price action. In trending markets, it speeds up to catch entries early; in choppy or sideways markets, it slows down to filter out false signals. This is then smoothed using Volatility-Adjusted Heikin Ashi candles to provide a clear visual of momentum strength.
Key Features: The Apex Adaptive RSI is a high-performance momentum oscillator that replaces traditional static RSI logic with an Efficiency Ratio (ER) engine. It dynamically scales its sensitivity—speeding up to catch trend breakouts and slowing down to filter out noise during market consolidation.
Visual Guide & Features:
1. The Apex Heikin Ashi Candles Instead of a single line, momentum is visualized through HA candles.
Bright Colors (Neon Green/Red): High-velocity momentum.
Dark Colors: Waning momentum or consolidation.
Wicks: Show the "reach" of RSI before the internal smoothing takes over.
2. The Volatility Cloud (Purple Shaded Area) This is your "Market Safety Zone."
The Cloud: Represents 2 standard deviations of RSI movement.
The Logic: When the RSI candles exit this cloud, the market is in an extreme state. Divergences that occur outside or at the edge of this cloud are statistically much more likely to result in significant reversals.
3. TOP & BOT Triangles (Labels)
TOP (Red Triangle): Marks a confirmed Pivot High in momentum.
BOT (Lime Triangle): Marks a confirmed Pivot Low in momentum.
These labels appear once the "Pivot Strength" (lookback) is satisfied, confirming a structural turning point.
4. TM & BM Dots (The Apex Markers)
TM (Top Marker - Red Circle): The exact "ceiling" of an RSI pulse.
BM (Bottom Marker - Green Circle): The exact "floor" of an RSI pulse.
Trading Tip: Use these dots to draw manual trendlines or to identify "Liquidity Grabs" (where price breaks a high but the TM dot remains lower than the previous peak).
5. Divergence Lines (Customizable)
Solid Lines (Regular Divergence): Indicates a potential trend reversal.
Dashed/Dotted Lines (Hidden Divergence): Indicates trend continuation.
Historical Memory: The script retains these lines on your chart for backtesting and structural analysis.
Unified Alert System:
The script includes a "Any Divergence" alert. This allows you to set a single notification for your ticker that triggers for all four types of signals (Reg Bull, Hid Bull, Reg Bear, Hid Bear) on the close of the confirmation bar.
Adaptive Sensitivity: Automatically scales between fast and slow periods based on market speed.
Heikin Ashi RSI Candles: Integrated "Apex Candles" that change color based on momentum velocity, making trend shifts easy to spot.
Unified Divergence Engine: Automatically detects and plots Regular (Reversal) and Hidden (Continuation) divergences.
Historical Backtesting: Divergence lines remain on the chart, allowing for thorough historical analysis.
Volatility Bands: Real-time statistical "Guardrails" (Bollinger-style) that identify extreme overbought and oversold conditions.
Smart Alerts: A unified "Any Divergence" alert that notifies you the moment a signal is confirmed.
How to Trade:
Reversals: Look for Regular Divergence when the RSI is outside the Volatility Bands.
Trend Following: Use Hidden Divergence (dashed lines) as high-probability entries in an existing trend.
Momentum: Watch the Apex Candle colors; a shift from dark to bright green/red indicates a "Pulse" in momentum.
Enjoy
Cemmec
Pitchfork Long Strat x Mizar🎯 Advanced DCA Strategy with Nadaraya-Watson Envelope for Mizar Integration
This strategy combines the sophisticated Nadaraya-Watson kernel regression indicator with an intelligent DCA (Dollar Cost Averaging) system, specifically designed for automated trading via Mizar webhooks.
═══════════════════════════════════════════════════════════
📊 KEY FEATURES
✓ Nadaraya-Watson Envelope Indicator
- Adaptive regression bands that follow price trends
- ATR-based dynamic upper/lower bands
- Customizable lookback windows and weighting
✓ Intelligent DCA System
- Exponential scaling of price thresholds (default 1.9x per level)
- Exponential scaling of order sizes (default 1.6x per level)
- Up to 20 configurable safety orders
- Minimum bars between orders to avoid overtrading
- Tracks average entry price across all orders
✓ Flexible Stop Loss Options
- Percentage-based stop loss
- ATR-based dynamic stop loss
- Always calculated from average entry price
✓ Optional Trailing Buy
- Separate settings for initial entry and DCA orders
- Helps capture better entry prices during pullbacks
✓ Full Mizar Integration
- Pre-configured webhook messages for all actions
- Automatic base asset extraction from ticker
- Separate TP settings for backtesting vs. live trading
- Supports open position, activate safety orders, edit TP, and close position
✓ Professional Backtesting
- Real-time position tracking with visual entry/exit labels
- Info table showing avg entry, TP, SL, and P&L
- Tracks average bars in winning trades for optimization
- Commission-inclusive (0.06% default)
═══════════════════════════════════════════════════════════
🎲 HOW IT WORKS
ENTRY SIGNAL:
- Triggers when price crosses above the lower Nadaraya-Watson band
- First order: Fixed size (default $10 USDT)
- Subsequent DCA orders: Exponentially scaled based on your settings
DCA LOGIC:
- Each safety order requires price to drop by an exponentially growing percentage
- Example with 2.1% base deviation and 1.9x scale:
• Order 1: Initial entry
• Order 2: -2.1% from Order 1
• Order 3: -3.99% from Order 2 (2.1% × 1.9)
• Order 4: -7.58% from Order 3 (2.1% × 1.9²)
• And so on...
EXIT SIGNALS:
- Take Profit: Fixed percentage above average entry
- Stop Loss: Percentage or ATR-based below average entry
═══════════════════════════════════════════════════════════
⚙️ RECOMMENDED SETTINGS
For BTC/ETH (Lower Volatility):
- DCA Price Deviation: 2.0-2.5%
- DCA Step Scale: 1.8-2.0
- DCA Volume Scale: 1.5-1.7
- Max Safety Orders: 4-6
- Stop Loss: 30-40%
For Altcoins (Higher Volatility):
- DCA Price Deviation: 2.5-3.5%
- DCA Step Scale: 1.9-2.2
- DCA Volume Scale: 1.6-1.9
- Max Safety Orders: 5-8
- Stop Loss: 40-60%
═══════════════════════════════════════════════════════════
🔗 MIZAR SETUP
1. Create a DCA bot on Mizar
2. Copy your Bot ID and API Key
3. Enter them in the "Mizar Webhook" settings
4. Set your Quote Asset (USDC/USDT)
5. Create alert with webhook URL: api.mizar.com
6. Set alert message to {{strategy.order.alert_message}}
7. Make sure "Webhook URL" option is checked
═══════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
- This is a LONG ONLY strategy
- Always backtest on your specific asset/timeframe before going live
- Start with conservative settings and adjust based on results
- Monitor your "Avg Bars in Winning Trades" to optimize entry/exit
- The strategy calculates all percentages from your average entry price
- Recommended timeframes: 15m, 1h, 4h (avoid < 5m due to noise)
═══════════════════════════════════════════════════════════
📈 IDEAL FOR
- Cryptocurrency spot trading
- Medium to long-term position building
- Automated trading via Mizar
- Bull market accumulation strategies
- Traders who want to average into positions systematically
═══════════════════════════════════════════════════════════
💡 TIPS FOR SUCCESS
1. Use higher timeframes for more reliable signals
2. Adjust ATR multiplier based on asset volatility
3. Keep total position size (all DCA orders) within risk tolerance
4. Monitor the "Position Value" in the info table
5. Consider market conditions when setting TP/SL levels
═══════════════════════════════════════════════════════════
Created by Pitchfork| Modified for Mizar DCA Integration
For questions or support, please comment below!
#Mizar #DCA #NadarayaWatson #CryptoStrategy #AutomatedTrading
Universal Signal Trading Tool : Single TargetInternal V 128.0
Overview
This script by maurya_algo_trader is designed for four major things
Connect external buy/sell entry signal (from indicator) as well as optional exit signal (bool as well as limit) if available
SL/Target/TSL : Set various types of Target, Stoploss and trailing stoploss through this script
Trade/Risk Managements : Control the no of trades, day or month profits or loss etc.
Time managements : Sessions for trade timings
Execute trades (Equity, Futures and Options) on various brokers (Currently available for Dhan, Flattrade, 5Paisa, Anand Rathi and Delta exchange) automatically via webhook features through only single alerts
(currently available only for indian market : NSE, BSE, MCX and Delta exchange India crypto)
How to Connect External Signals for Entry, Exit(optional)
To connect external signals it is mandatory that the external signal script must be in the form of an “indicator” (Not in strategy).
In the tradingview community indicator you can find readymade indicator buy/sell signals (e.g. ut bot alerts). Mostly the buy/sell signal plotted via plotshap() function which gives the particular value (mostly: 1). This can be seen in “Data Window” (Right side of Tradingview just below the alert section). When you keep the cursor on the candle at buy or sell signal, it gives the value “1” and on the rest of the candles it will be “0”.
In Settings/Input tab you will find “EXTERNAL ENTRY” section where you can select the buy signal in drop down menu of “External Ling Entry Signal” and in same line default value 1 is already present (You can change it if plotted signal showing any other numbers for Buy signal). Similarly Choose sell signal in drop down menu of “External Short Entry Signal”. It also has the same “1” value by default but if it is different like” -1” you can change it manually.
If you have your own strategy, you need to convert it into an indicator first by removing the strategy function from the entire script (if you know the pine script coding or you can message me for the same). Then set the variable for the logic (bool condition) of long entry and short entry. And then plot the logic by following pine codes :
long_entry_cond = *your long condition logic variables (unique bool condition)*
short_entry_cond = *your short condition logic variables (unique bool condition)*
plot(long_entry_cond ? 1 : 0, '✅✅Long Entry Connector✅✅', display = display.data_window)
plot(short_entry_cond ? 1 : 0, '⛔⛔Short Entry Connector⛔⛔', display = display.data_window)
This will create the external plots which can be retrieved in the dropdown menu of “EXTERNAL ENTRY”.
If you have any external exits (other than opposite entry) you can use them similarly in sections of “EXTERNAL EXIT”. If you have any Take profit or take SL (at limit price) then it can also be retrieved in External TAKE PROFIT and EXTERNAL TAKE SL section by selecting the appropriate option in the dropdown menu.
Once proper signal attachment done with dropdown menu, you can see various entry exit labels like : “Long Entry”, “Short Entry”, “Long Exit” and “Short Exit”.
In addition to original entry, advance entry options are available like : “Entry at second candle of the day if no position”; “Entry at high/low breakout of actual Buy/Sell candle”; and “Add buffer to high/low of buy sell candle in points/percentage (inputs).
SL/Target Settings
By default, target and SL are off.
You can select various target types below and set the value accordingly (additional multiplier input available to optimize various interval of target level) :
Value (INR 1000 : not applicable of Index);
Percentage,
Points,
R:R (Multiplier of SL (Point/Percentage) );
No of Bars: Exit at set no of bars after entry.
Various stoploss types available like :
Value (INR 1000 : not applicable of Index);
Percentage,
Points,
Low/High During entry : A fix SL as low or high of no of candle back
Following options are one kind trailing Stoploss
HH/LL of period of candle : As candle moves ahead fix length of candle’s low or high move a one kind of trailing stoploss
ATR : Supertrend as trailing SL you need to add length and multiplier in respective input tabs
Pivot : This is the pivot point of right and left side candles length (low for long side and high for short) add left and right side candle length in respective input tabs.
Opposite band of Bollinger : Lower Band for Long Side and Upper band for Short side
TSL settings
TSL settings have the following types of options. By default it is off. This section is specifically designed to activate TSL after some market achieved some distance from its entry and TSL can be started from desired distance from entry or SL.
High/Low : It trails by distance of previous to new high created after entry
Step : It trails by by given inputs of distance: at every 50 points trails 50 points
Pivot/HH/LL od period of candle, ATR, opposite band of Bollinger these options are same as available in Stoploss section. The difference is only You can choose where the TSL is activated where it start from that you can decide in section.
Trade/Risk Managements
Trade direction : Both/Only Long/ Only short
Reverse Trade : You can reverse the trade if SL/TSL hit if it is in loss/profit options
Skip Opposite trade: If SL and Target or TSL is set then you can skip opposite trade until your SL/Target or TSL hit
Close trade if profitable at no of candle new highest close (for long) and lowest close (for short)
Max no of orders per day
Max Profit Per day
Max loss per day
Max Profit per month
Max Loss per month
Kill All Trades on chart
This option enables you to take only fresh entries after creating the alert. So many times Trade is running on chart and still we have not taken any order or created alert and I want a fresh entry signal (with any exit signal of previous entry). So for that you need to set the current date and times after the last entry on the chart. This will show you a pink color vertical draggable line. Before the pink line all signals disappear. Only after that you have to create an alert to take trade.
Date Filter
This filter is enabled to backtest from a specific date. But remember that date should not be beyond the unavailable candles on the chart. For Deep backtest you must use the tradingview premium plan feature in the strategy section.
Always unclick this option if you are trading via webhook
Time Management
Auto square off on click option available for NSE, NSE and MCX symbols, where mostly between 15:00 to 15:30 hours for NSE/BSE and 23:00 to 23:30 hours for MCX depending upon timeframe.
Upto two sessions you can set for trading: 0000 to 0000 means continue trading without any time restriction: Always set in 24 hour format. Input always shows in candles opening time instead of closing time.
Example
Trade timing : 09:30 - 15:00 (All entry and exit as per logic)
Squareoff timing : 15:00 – 15:30 (Only Exit happen at first candle close between 15:00 to 15:30, for 1 min TF it square off on 15:01, for 5 min TF 15:05 and for 15 min TF 15:15)
Algo Settings
Select broker : Dhan, Flattrade, 5Paisa,Anand Rathi, Delta Exchange
Instrument: Option, Future, Equity (What are you trading?)
For Future always use 1! (for current month) and 2! (for next month expiry) symbol chart (eg. NIFTY1! Or NIFTY2!)
Order type: Delivery (carry forward), Intraday ( Always set autosquare off of square off settings in time management). This selection also affects signals on the equity chart, Intraday shows both long and short signals while Delivery option shows only long side signals because in equity short trade is not allowed in delivery.
Quantity: for equity use no of shares that you what to trade, for future and options always use no of lot: enter 1 for 1 lot (please do not use lot size).
Client ID: You need to add client Id if you use broker Flattrade or Anand Rathi
Secret key from Json : Paste secret code for Dhan/Flattarde/Anand Rathi while strategy Id for delta exchange, no need of secret code for 5 paisa.
Secret code for Dhan: Order/Webhook/ Manage/ select webhook expiry/ creat webhook/ add any script/ creat json/ copy secret code from json without any inverted coma
Secret code from Flattrade: Order/webhook/login to creat webhook/ copy code from json (longer in character)
Strategy Id for Delta exchange : Algo/trading bot/Creat webhook/OTP-2FA-submit/ copy strategy id from json
deltaexchangeindia.freshdesk.com
Option settings
If you are trading options then select OPTION in instrument.
Option Buyer or seller: If you are option buyer then by default it is OPT BUYING
OPT BUYING: buy CE when long entry and buy PE when short entry on index chart, while it shows only long trades on option premium chart
OPT SELLING: sell PE when long entry and sell CE when short entry on index chart, while it shows only short trade on option premium chart
BOTH: This option is only used when you want to trade both long (Option Buying) and short signal (Option Selling) on option premium charts. Do not use on index chart; this is exclusively for option premium chart.
Strike selection : ATM : At the money, OTM: out of the Money (low Premium), ITM : In the money (Higher Premium)
You can trade the strike in multiple of your choice like in Nifty strike difference is 50 , but if dont want to trade 50 multiple strike 25850 or 25950 and you only want to trade 25800, 25900 then click on that option and enter strike difference 100.
Set expiry: for NSE and BSE according to instrument it has specific expiry day
Current Auto Expiry : Nearest expiry date (tuesday for NSE and thursday for BSE) for nifty50 current week tuesday and for Banknifty Current month last tuesday.
Current week/Next week/Next to Next week : for Nifty50 only
Current Month: Monthly expiry for NSE and BSE
Next Month: Next Monthly Expiry for NSE and BSE
Manual Date Input : Select this option for MCX and delta exchange india as well as NSE/BSE if date is not accurate automatically function. Suppose any Tuesday expiry for NSE is on holiday then you must select Manual date input.
Manual Expiry date: When you select Manual Input Date in above option then only you can select particular date of option expiry.
Delay Entry order by approx seconds: This option exclusively for Future and equity where new entry and previous exit order fire at the same time which cause margin release issues and hence order rejected due to low margin. This option gives signals at the same time but fires order after some seconds. Minimum 5 seconds are set but according to your symbols liquidity increases seconds specifically in MCX market where more than 10 seconds is appropriate. Always monitor such trades.
Consent and disclaimer
Always click this option : 'Trading involves a risk of loss and may not appropriate for every one. Please consider carefully if trading is appropriate for you. Past performance is not indicative of future results. Any signals appear on chart are for education purpose only. This signals can be optimised by yourself changing the variables in the indicator\'s input tab on various instruments and timeframe. It is your responsibility knowing that by clicking you are accepting that indicator would trade on your behalf at your own risk. We are not SEBI registered.'
Show Monthly Performance Table
This option enable the Monthly Performance in table form where month wise profit and loss are showing (on index it shows in point form). Percentage in () depends upon initial capital set in the property tab. Various Statistical parameters are also seen in table like : % profitability, profit factor, No of trades (W winnings and L Lossing), Max Run-Up, Max Drawdown, Initial capital, Backtest Range. This data only shows that shows on strategy tester without any deep backtesting.
Show Small PNL Table
This option enables a small profit and loss table for today’s trade only (except the last candle close)
Show Algo Setting Details Table
This table enables you to show which settings have you done for automation and also guides if you select the wrong option showing in red background color. Symbols, instruments, broker, client id, secret key, position on chart, expiry date (most important for FNO) please verify this date with actual option chain expiry date. Wrong expiry date lead to no execution of trade.
Creat Alert for Automation
At the end of indicator on three dot click on “Add alert on Universal Signal Trading Tool : Single Target”. Which Creat on Pop-Out Page with three different tab:
Settings Message and Notifications
#Settings
Symbols : current symbol
Condition: Universal Signal Trading Tool : Single Target
Interval: Same as chart
#Message
Alert Name: Type your Custom alert name
Message: by default you will this message : {{strategy.order.alert_message}}
Please do not change this message, do not use any json message here
#Notifications
Click on webhook url : (Only available if you have Tradingview subscription and two factor authentication is done) paste brokers valid webhook here (Use only active webhook). Please do not use api webhook, use only tradingview webhook separately available for tradingview User’s broker account.
Play sound as per your need
How to update an alert?
Once you create an alert on the current indicator and current chart with the same timeframe then green color watch you can see next to indicator name on chart. If green watch does not appear then the current indicator setting/symbol/timeframe is different from the setting in alert.
So if you have made any changes then you must update the alert.
See the right top side of the alert in the alert section: pause/ restart, edit and delete option are available. Click on edit option then pop-up window will open, select appropriate symbol if it is different, in condition dropdown menu if indicator name shows two time means second name is the new settings, so select second indicator name and select timeframe as same as chart and then click ok. Check if the green watch appears or not.
Trouble shooting
Q : I am not able to see signals on chart?
Check initial capital on chart, increase zero at end if required.
Always unclick the backtest date filter.
Check entry exit external signal properly selected.
Q: Trade not executing on broker panel?
Is alert generated in alert log? If yes then check secret code, expiry date if trading FNO, valid webhook and symbols. If No then update your alert.
Q: Order fails at broker?
Click on the failed order and see the reason and approach us via message on tradingview.
Note: Strategy used in the above strategy is only for example and demonstration purpose. It does not indicate to use the same strategy.
Results shown here are using the supertrend indicator (attached to this script as external indicator) with ATR length 1 and factor 30 on Nifty 50 index chart on 5 minute timeframe.
Always use your own criteria, risk management and proper backtesting before using the live capital. Do not go for blind trading, always monitor the automated trade in synchronization. Any misbehave by system or technical glitches leads to unwanted loss. So, think first, practice and go according to your analysis.
Your feedback and reporting any kind of bug is appreciable. Please reach us via message, comment or communication method available in our profile.
ATR Trailing Stop + HTF + Pivots (Non-Repainting📌 UT Bot PRO + HTF + Pivots + PP SuperTrend (Non-Repainting)
This indicator is a fully non-repainting trading system designed for intraday and swing traders.
It combines multiple high-probability confirmations into a single, clean signal engine.
🔍 What’s Inside
✔ ATR-based trailing stop (UT-Bot style logic)
✔ Heikin Ashi price smoothing
✔ Heikin Ashi VWAP trend confirmation
✔ Higher-Timeframe EMA filter (no lookahead)
✔ Volume strength confirmation
✔ Auto timeframe Standard Pivot Points (PP, R1, R2, S1, S2)
✔ Pivot Point SuperTrend for market direction
✔ ATR-based Stop Loss & Take Profit levels
🔒 Non-Repainting Guarantee
Signals trigger only on confirmed candle close
Higher timeframe data uses lookahead_off
Pivot calculations are confirmed (no future data)
Signals will not disappear or shift after printing
📈 Trading Logic
BUY Signal
Price crosses above ATR trailing stop
Pivot SuperTrend is bullish
Price above HA VWAP
HTF EMA trend is bullish
Volume above average
SELL Signal
Price crosses below ATR trailing stop
Pivot SuperTrend is bearish
Price below HA VWAP
HTF EMA trend is bearish
Volume above average
⚙️ Recommended Settings
Intraday (5m–15m): HTF = 15m
Scalping (1m–5m): HTF = 5m
Swing (15m–1H): HTF = 1H
SL: 1.5 × ATR
TP: 3 × ATR
🧠 Best Used For
Crypto
Forex
Indices
Stocks
Works best in trending markets. Avoid very low-volume or choppy sessions.
⚠️ Disclaimer
This indicator is for educational purposes only.
No trading strategy guarantees profits. Always use proper risk management and test before live trading.
DewaSMC ELITE DewaSMC ELITE — Prepare Entry + EMA Alerts
DewaSMC ELITE is a Smart Money Concept (SMC) trading indicator designed for scalping and intraday trading on 5-minute and 15-minute timeframes.
It helps traders anticipate entries early, confirm direction with EMA filters, and manage trades with automatic TP/SL levels and advanced JSON alerts.
Key Features
Smart Money Concept (SMC)
- Automatic BOS (Break of Structure) and CHoCH (Change of Character)
- Bullish & bearish market structure detection
- Break confirmation using candle body or wick
Prepare Entry System (Early Warning)
- PREPARE ENTRY zones appear before an actual structure break
- Provides early alerts so traders can get ready before entry
- Prepare zones are automatically removed once a valid entry occurs
EMA Confirmation Filter
- Built-in EMA 9 & EMA 20
- Optional strict EMA alignment:
- LONG: EMA 9 above EMA 20 + price above EMA
- SHORT: EMA 9 below EMA 20 + price below EMA
- EMA confirmation status is shown in the info table and alerts
Automatic TP & SL (ATR-Based)
- Entry is set at the broken structure level
- TP1, TP2, TP3, and Stop Loss are dynamically calculated using ATR
- Visual Risk Zone & Reward Zone
- TP hit tracking with visual check marks (✓)
Trade Information Table
- Displays real-time trade details:
- Trade direction (LONG / SHORT)
- Entry price, Stop Loss, TP1–TP3
- Risk & reward percentages
- EMA confirmation status
- Risk : Reward ratio
Advanced JSON Alerts (No Spam)
- BUY & SELL entry alerts
- Clean JSON format (ready for bots / webhooks)
- Anti-spam signal lock
Filters:
- Timeframe 5m & 15m
- Volatility filter (ATR-based)
- EMA confirmation (YES / NO is always included)
Recommended Timeframes & Markets
Best performance on:
- 5m & 15m timeframes
- Forex, Gold (XAUUSD), and Crypto (BTC, ETH)
ELITE Mode Features:
- Maximum trades per day
- Cooldown between trades
- Kill switch to disable all entry alerts
Who Is This Indicator For?
✔ Scalpers & intraday traders
✔ Smart Money Concept (SMC) traders
✔ Traders who want early entry preparation
✔ Bot & webhook automation users
Disclaimer
This indicator is not financial advice.
Always apply proper risk management.
Trading performance depends on market conditions, spread, and execution quality.
Backtest Pro - The TradingView Backtesting EngineBacktest your indicators — no strategy code required. Backtest Pro is the next-generation backtesting engine for smarter testing. Simply link your signals, set your stops, and start testing.
With its upgraded UI/UX and fundamentally improved stop system, Backtest Pro replaces the legacy PSE (Practical Strategy Engine) and sets a new standard for TradingView backtesting. It delivers more accurate intrabar trailing stops, flexible stop types (Points, ATR Multiplier, %), and a smoother workflow for greater precision and control.
Once loaded on your chart, Backtest Pro appears as BT Pro as the script title and in the Strategy Tester, alerts, and chart labels.
Beyond the core stop and pyramiding logic, Backtest Pro also introduces:
A clearer Data Window for reviewing trade details.
Improved signal labels in the Strategy Tester’s List of Trades for easier log analysis.
Updated chart labels that align better with TradingView’s native style and make signals easy to interpret. Together, these improvements make Backtest Pro the most practical and user-friendly way to backtest indicator-based trading signals in TradingView.
Copyright © 2025 CoinOperator
________________________________________________________________________________
🚀 Why Traders Choose Backtest Pro
Answer in minutes what used to take days of manual testing.
Backtest Pro is a drop-in, ready-to-use backtesting engine that links to your indicator with just a few simple connection lines. It provides more accurate intrabar trailing stops, multiple stop types (Points, ATR Multiplier, %), and a smoother workflow for greater precision and control.
Whether you’re running a quick test or fine-tuning complex strategies, Backtest Pro helps you reach clearer insights faster.
________________________________________________________________________________
👤 Who Backtest Pro Is For
Backtest Pro is designed for traders who already have a trading methodology or entry/exit logic and want professional-grade validation and risk analysis.
Backtest Pro is not a signal service and does not provide discretionary trade recommendations. All entries and exits — including alerts used for automation — are generated solely from user-defined logic.
You bring the logic — Backtest Pro provides the structure, metrics, and discipline.
Backtest Pro helps swing traders, day traders, and strategy developers streamline the backtesting process without sacrificing depth or accuracy. It offers flexible stop management, enhanced Data Window metrics, refined Strategy Tester labeling, and clean on-chart visuals to support consistent evaluation.
Backtest Pro supports trading and backtesting on futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs (tradable if offered by your broker).
________________________________________________________________________________
⚡ Quick Start
Add Backtest Pro to your chart. It appears as BT Pro as the script title and in the Strategy Tester, alerts, and chart labels.
Add a few connector lines to your indicator, then link your custom entry and exit signals.
Adjust position sizing, stops, and pyramiding.
Run the TradingView Strategy Tester for instant results.
________________________________________________________________________________
🔄 From PSE to Backtest Pro
Backtest Pro builds on the foundation of the PSE (Practical Strategy Engine), evolving it into a more refined tool. While PSE introduced flexible stop handling, Backtest Pro enhances the experience with:
More accurate intrabar trailing stops
Expanded stop type options (Points, ATR Multiplier, %)
Upgraded Data Window for easier review
Clearer trade signals in the Strategy Tester
Cleaner, more consistent chart labels
Wash Sale Prevention is Now Optional. If enabled, it only applies to assets of types stock and fund.
🛠 INPUTS TAB SETTING
📅 Trading Window
Enable Trading Window to define the date/time when trading is allowed. Disable to trade the entire market data.
Partition the time when trading is allowed to see if your indicator settings work well across the different ranges. Your resulting metrics should be acceptable across all four (4) ranges: entire range, 1st half, IQR, and 2nd half.
Show Trading Window Lines – Enable to draw vertical lines at the start and end of the trading window for clear visual definition of when trading is allowed.
💰 Position Sizing (Money Management)
Separating the equity risk into initial position and pyramid position allows for greater ability to maximize profits within your acceptable drawdown.
Note : Position sizing is determined on the anticipated fill price which is affected by the maximum of slippage and selected price gap (discussed in the Execution Rules section). Max Equity per Position (%) : This setting applies to each position within a trade group . Limits the position size and will not exceed this amount. Set as desired. Default is 20% for non-leverage trading. For leveraged trading, adjust accordingly. Example: for 3× leverage, enter 300 (3 × 100 = 300).
Max Equity Drawdown Warning (%) : Triggers an alert if the strategy’s equity drawdown exceeds this threshold. Select the method to use for this warning. If BT Pro, then it is based on peak equity at bar-close. If TradingView, then it is based on the built-in variable strategy.max_drawdown_percent. Helps you manage strategy-level risk tolerance.
Scaled Pyramiding : Adjusts position size incrementally for each pyramid entry—either decreasing or increasing exposure relative to the prior entry.
Start Position: The entry number at which scaling begins. For example, 3 means scaling starts on the 2nd pyramid (the 3rd entry overall).
Chg(%): The percentage change applied to each subsequent pyramid entry.
Max(%): The maximum cumulative reduction allowed when scaling downward. Ignored for upward scaling because increases are already capped by Max Equity per Position (%).
⚖️ Execution Rules
Trade Direction : Select either Both , Long Only, or Short Only.
Alert Failed to Trade – Enable to alert you when a trade did not happen due to low equity or low order size. Applicable only for the first position of a trade group.
Cooldown Period : Controls how long the engine waits after an exit before allowing a new trade group. Backtest Pro also applies a small built-in safeguard to prevent unrealistic same-bar flips: ● 1 bar minimum for same-direction entries
● 2 bars minimum for direction changes
Prevent Wash Sales : Enable if you want the Backtest Pro to enforce a minimum cooldown period of 30 days for trade groups that result in a loss. Only applies to assets of types stock and fund.
Pyramid Conditions with Price Gaps : Dwn Gap and Up Gap refer to price gaps. A price gap is the difference between the closing price of the previous candle and the opening price of the current candle, and their value is shown in the Data Window. Selection options include: disabled (the default), median, avg, p80 (for 80th percentile), and p90 (for 90th percentile). The values reflect ~500 most recent bars from the cursor position. Disabled sets the Dwn Gap and Up Gap to zero in the below logic. Pyramids require a tailing stop loss, TSL. The price gaps are used in conditions for pyramids:
To ensure the previous position is protected when opening a pyramid position. A new pyramid position will not open until its trailing stop loss protects the prior position.
To prevent a pyramid position from becoming a loss when too close to a take profit level, TP (if enabled), due to commission cost.
The logic for #1 and #2 is as follows:
For a Long Pyramid: TSL: Stop Price - max(DwnGap, slippage) > LastEntryPrice
TP (if enabled): Long take profit > close + max(UpGap, slippage) AND gain > commission cost
For a Short Pyramid:
TSL: Stop Price + max(UpGap, slippage) < LastEntryPrice
TP (if enabled): Short take profit < close - max(DwnGap, slippage) AND gain > commission cost
Show All Gap Stats in Data Window
Enable to show all price gap statistics in the Data Window to review market conditions.
Disable for the Backtest Pro to run most efficiently.
Note: Statistics selected in Dwn Gap and Up Gap settings are always shown, regardless of this option.
🛑 Exit Strategy (Risk Management)
Backtest Pro supports multiple stop loss styles, giving traders the tools to backtest strategies in TradingView with precision:
The Exit Strategy applies a common protective stop across the entire trade group.
Pyramids require a trailing stop loss. A new pyramid position will not open until its trailing stop loss protects the prior position.
Plot Stop Level : You can plot the stop level either as of bar close (the default) or as of bar open. This only affects the visual plot. The underlying logic does not change. The trades will be the same regardless of the setting.
ATR Length : The ATR Length is used with the ATR multiplier and is common to stop loss, SL, trailing stop loss, TSL, take profit, TP, and the time-based exit option. It is the number of bars (periods) used in ATR calculation.
Price-Based Exits Stop Loss and Trailing Stop Loss options are Points, ATR Multiplier, and %.
The Trailing Stop Loss is activated from entry of the initial position of a trade group.
Take Profit options are Points, ATR Multiplier, %, and R-Multiple. How Trailing Stops Work in the Backtest Pro All trailing stop inputs (Points, ATR Multiplier, or %) are converted at the first entry into a fixed currency offset.
That offset is reactive intrabar and applied as the trailing distance from the most favorable price (highest for longs, lowest for shorts) since the first entry in the trade group.
Even if “%” is selected as the input method, the engine uses the fixed currency offset.
The trailing stop offset (points) is displayed in the Data Window for reference, allowing you to enter that offset directly at your broker if needed.
⚠️ Caution: Always enter a points-based trailing stop at your broker—never a percentage-based trailing stop. Volatility-Based Exit While in a trade, ATR values are accumulated each bar. The position exits once the total exceeds ATR Multiplier × ATR at entry if the Reward/Risk is below the set threshold.
Dividends are not included in reward (i.e., profit).
👉 These flexible stop types solve one of the biggest limitations of the legacy PSE and make Backtest Pro a true TradingView backtesting engine.
📑 Trade Signal Labels in Strategy Tester
Backtest Pro uses standardized trade labels in the Strategy Tester → List of Trades. These labels make it easy to understand the reason behind each entry or exit at a glance. Entry : Standard entry signal when conditions are met.
Stop : Stop-loss exit triggered at your defined stop level.
Pyr-Entry : Pyramid entry, adds to an existing position.
Trail-Stop : Trailing stop exit based on offset logic. Note : If the stop level has been adjusted to equal the trailing stop level, the Strategy Tester may display Stop instead of Trail-Stop. The exit displayed is the one Pine Script evaluates first, but the actual exit behavior remains correct.
Exit : Standard exit signal.
Delay-Exit : One-bar delayed exit, prevents immediate exit when position entry and exit signal occur on the same bar.
TP : Take Profit exit, closes position at your profit target.
RR-Exit : Reward/Risk exit — position closes when ATR accumulation exceeds the set threshold and R/R is below target.
📊 Performance Metrics & Reporting
Include Dividends in Profit
Adjusts ROI, CAGR, Reward/Risk, Avg Invest/Trade-Grp, and Equity.
Assumes dividends are taken as cash (not reinvested). They are applied to Equity on the ex-date instead of the payment date.
Only applies if the security issues dividends and the chart is 1D or lower timeframe; otherwise ignored.
Include Dividends in Profit Factor
Applies only when Include Dividends in Profit is enabled.
Adds dividend income to both gross profits and gross losses when calculating Profit Factor, so PF reflects total return (trading + dividends).
Affects Avg Trade-Grp Loss, Equity Loss from ECL, and Equity Loss from ECL (%).
Show Dividends
Displays the payout in currency/share, as well as the total amount based on the number of shares of the position(s) currently held by the trade group. For long positions you earned the dividends. For short positions you owe the dividends.
Show Metrics Table
The on-chart Metrics Table displays a compact set of key statistics for quick reference and mobile use. Full and expanded metrics are available in the Data Window on desktop or browser. Section groupings may differ between the table and Data Window to optimize readability and presentation in each context.
📊 Data Window
Note : Accessible via a button on the right-hand toolbar of the chart interface. Unlike the Metrics Table, Data Window values update dynamically as you move your cursor across bars. All metrics are based on trade groups.
Trade Information
Enter Price
Stop Price
Favorable Extreme : only shows if trailing stop loss is enabled on Inputs tab. The most favorable price (highest for longs, lowest for shorts) since the first entry in the trade group.
TSL Offset Points : only shows if trailing stop loss is enabled on Inputs tab.
Take Profit : only shows if take profit is enabled on Inputs tab.
Leverage information applies to trade groups.
Fail Pos / Margin (%) : Shows zero if the failed position size was <1, or the margin % that failed to meet the requirement in the Properties tab. A flag appears above the bar where a failed trade occurred. Only applies to the first position of a trade group. Hover over the flag to view the value in the Data Window.
Notional Value : total trade group position size x latest entry price x point value. The equity must be > notional value x margin requirement for a trade to occur.
Current Margin (%) : must be greater than margin requirement set on the Properties tab in order for a trade to occur.
Margin Call Price : when enabled on the Style tab is displayed on both the chart and the Data Window as shown below.
Performance Net Profit (%) : Will include dividends if 'Include Dividends in Profit' is enabled. Only shows in Data Window if 'Include Dividends in Profit' is enabled.
ROI (%) and CAGR (%) : Based on Avg Invest/Trade-Grp. Adjusted for dividends if enabled.
Reward/Risk (profit/risked, expectancy per amount risked): Adjusted for dividends if enabled. Color is green if above breakeven, red if below, and yellow if within ±0.1 tolerance.
Profit Factor (PF) : By default, dividends are not counted in win/loss classification.
Win % : Uses same coloring scheme as Reward/Risk except uses a ±2% tolerance for yellow. Breakeven point is the balance between Reward/Risk and Win %, showing whether the system can be profitable. For example, for a low Win % a high Reward/Risk is needed for the system to be potentially profitable. Equity & Growth
Equity : Your current equity.
Dividend Sum : The amount of total dividends accumulated since entering the market. Only shows in Data Window if 'Include Dividends in Profit' is enabled. Risk & Drawdown
Maximum Drawdown (MDD)
Measures the largest peak-to-trough decline in account equity over the entire backtest.
A new peak is recorded whenever equity reaches a new high; the system then tracks the lowest equity seen until a new peak forms.
This method uses bar-close equity including both realized and unrealized P&L. Therfore, it may not match TradingView’s displayed drawdown values which use a different method.
Maximum Drawdown %
Expresses MDD as a percentage of the equity peak from which the decline occurred.
This normalizes drawdown across different account sizes and assets, making strategy-to-strategy risk comparisons more meaningful.
Maximum Consecutive Losses applies to trade groups.
Equivalent Consecutive Losses (ECL) : Based on Win % and Nbr of Trade-Grp’s.
Simulates a realistic losing streak with intermittent small wins.
Lowered by increasing Win %.
Equity Loss from ECL : Equity drawdown estimated from ECL.
Equity Loss from ECL (%) : Same, expressed as a percentage.
Avg Trade-Grp Loss Trade Structure
Backtesting Years : The trading window in years.
Nbr of Trade-Grp’s : Count of trade groups.
Nbr of Positions : The count of positions shown on the chart.
The TV list of trades in the Strategy Tester may indicate more than what is actually shown on the chart.
Avg Invest/Trade-Grp : Avg money invested per trade group. Adjusted for dividends if enabled.
Avg Trade-Grp Days : The average number of days for trade groups.
Time in Market (%) : The percentage of time in a trade based on the trading window.
Cnt 1st EE Same-Bar is the count of first positions in a trade group that enter and exit on the same bar. Labels appear above for easy reference. Helps assess optimal stop-loss settings.
Cnt Pyr EE Same-Bar is the count of pyramid positions in a trade group that enter and exit on the same bar. Labels appear above for easy reference. Helps assess optimal stop-loss settings. Up Gaps / Dwn Gap (Ticks) ( Show All Gap Stats in Data Window enabled )
Median gap
Avg gap
80 percentile
90 percentile
Price Gap (Ticks) ( Show All Gap Stats in Data Window disabled )
Dwn Gap : Shows selected option if not disabled.
Up Gap : Shows selected option if not disabled.
Data Quality
Tick Resolution measures how many minimum price increments (ticks) fit into the current asset’s price. It is calculated as: Tick Resolution = Price / Minimum Tick Size. This value indicates the precision available for order placement and stop calculations.
Green – High resolution (>= 1000). The strategy’s stop and profit calculations will operate with normal accuracy.
Yellow – Moderate resolution (100-999). Stop levels are still functional but may exhibit minor rounding effects.
Red – Low resolution (< 100). This can distort trailing stops, stop losses, or take profits due to coarse rounding by TradingView’s broker emulator.
⚠️ Caution : When Tick Resolution is in the red zone, results from backtests may differ significantly from live trading because price precision is too low for reliable simulation.
💡 Tip : If low tick resolution is present at the beginning of the chart’s market data (often with very old price history), use the Trading Window to restrict backtesting to later periods where the asset price has risen and tick resolution is higher.
👁 Visualization
Highlight Traded Background
Trade groups are shown in background color of green for long positions and red for short positions. Set as desired.
Show Losing Trade Groups
Losing trade groups are indicated at the exit with label text in the color blue. Used to easily find consecutive losses affecting your strategy’s performance. The dividend payment, if any, is not considered in the calculation of a win or loss.
Show Position Values
Enable to show the currency value of each position in gold color.
Show Max Drawdown (Peak & Trough) Enable to show the peak and trough labels on the price chart. Based on equity at bar close. Use to easily identify the bar associated with the peak and trough of equity.
Select label size for your preference.
Alert on Expiring GTC Orders
Backtest Pro includes an optional alert that warns you when a Good-Til-Canceled (GTC) order is approaching expiration. This feature is designed as a safety net, helping you avoid unprotected trades caused by broker-imposed GTC expirations. This alert is sent a few days before a 60-day time period you’re if still in an open position.
By default, the alert is enabled, offering protection for traders who may not actively monitor order expiry rules.
Professional users who already track expirations can disable the feature in the settings to streamline alerts.
🔌 Signal Connection
Click the dropdown and select the entry and exit signal to establish a connection to your indicator.
Separate Entry and Exit Signal Connections.
Backtest Pro requires separate entry and exit signals. Indicators that already produce distinct events integrate cleanly and make strategies easier to read, debug, and maintain.
If your indicator currently uses a combined signal (e.g., buy = 1, sell = –1, flat = 0), that structure can create overlap or conflicts during backtesting.
Don’t worry — later in this manual, you’ll learn exactly how to adapt your indicator so it outputs clear entry and exit signals compatible with Backtest Pro.
🔌 Configure Your Indicator for Entry and Exit Signals
This section explains how to structure your indicator’s entry and exit signals so they can connect seamlessly with the Backtest Pro engine.
Define your own conditions for when to enter or exit positions using any technical logic you prefer. You can configure exits independently of entries or make them dependent on them—for example, exiting only when the opposite entry condition occurs.
Below are a few examples of how you might define Long and Short Entry Signals before connecting them to Backtest Pro.
________________________________________________________________________________
Examples of Long Entry Signals
ind_sig_long = oscillator > UpperLimit
ind_sig_long = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
ind_sig_long = MACD_hist > 0 Examples of Short Entry Signals
ind_sig_short = oscillator < LowerLimit
ind_sig_short = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))
ind_sig_short = MACD_hist < 0 ________________________________________________________________________________
Combining and Refining Your Signals
If your indicator uses multiple internal conditions, you can combine them using logical operators or threshold rules before connecting to the Backtest Pro engine.
1. Combine multiple conditions
Use logical and / or to merge your conditions into one signal:
Entry_Long = ind_sig_long1 and ind_sig_long2 // both must be true
Entry_Short = ind_sig_short1 or ind_sig_short2 // either may be true ________________________________________________________________________________
2. Require a minimum number of confirming conditions
You can also define a threshold for how many entry conditions must be true before triggering a signal. This can help ensure stronger confirmation.
minNbr_Entries = input.int(defval=1, title='Min Number of Entry Conditions')
// Convert boolean signals to numeric form
longCount = (ind_sig_long1 ? 1 : 0) + (ind_sig_long2 ? 1 : 0)
shortCount = (ind_sig_short1 ? 1 : 0) + (ind_sig_short2 ? 1 : 0)
// Require at least minNbr_Entries to confirm signal
Entry_Long = longCount >= minNbr_Entries
Entry_Short = shortCount >= minNbr_Entries
Do likewise for your Exit conditions to ensure consistency in trade confirmation.
________________________________________________________________________________
Defining Exits
Independent of Entries
Exit_Long = ta.crossunder(ta.rsi(close, 14), 70)
Exit_Short = ta.crossover(ta.rsi(close, 14), 30) Dependent on Entries
Exit_Long = Entry_Short // exit longs when short entry triggers
Exit_Short = Entry_Long // exit shorts when long entry triggers ________________________________________________________________________________
Final Signals to Connect to Backtest Pro
entry_signal = Entry_Long ? 1 : Entry_Short ? -1 : 0
exit_signal = Exit_Long ? 1 : Exit_Short ? -1 : 0
plot(entry_signal, title="entry_signal", color = color.blue, display=display.data_window)
plot(exit_signal, title="exit_signal", color = color.red, display=display.data_window) ________________________________________________________________________________
Notes
You can easily expand this structure to handle three or more conditions by adding them to the count expression.
If your indicator already provides a single entry_signal, you can connect it directly to Backtest Pro without modification.
Always ensure your final Entry_Long, Entry_Short, Exit_Long, and Exit_Short variables are boolean (true / false).
🔒 Connecting Closed-Source Indicators
If your indicator is closed-source (meaning you cannot view or modify its internal code), you’ll need to work with the plotted values it provides.
Create a connection indicator that reads those plotted values and converts them into clear entry and exit signals using the logic described above.
This connection indicator acts as a bridge between the closed-source indicator and Backtest Pro, allowing you to translate its behavior into standardized signal logic that the engine can process.
⚙️ PROPERTIES TAB SETTING
Initial Capital : Set as desired.
Base Currency : Leave as Default. The Backtest Pro is designed to use the instrument’s native currency, so changing this is not necessary.
Order Size : Essentially disabled. Position sizing is handled in the Inputs tab and is based on a percentage of equity.
Pyramiding : Set as desired.
Commission : Enter as a percentage of position value. The Backtest Pro is designed to work only with commission expressed this way.
Verify Price for Limit Orders : Set as desired.
Slippage : Set as desired. See the Dwn/Up Gap values in Data Window to get an idea of possible values to use.
Margin (Leverage Trading):
The Backtest Pro supports both leveraged and non-leveraged trading (default is no leverage).
Note : The following two settings apply at the trade group level . For example, to trade with 5× leverage, enter 20 (1 ÷ 5 × 100 = 20).
Margin for Long Positions : Set as desired. Default is 100%.
Margin for Short Positions : Set as desired. Default is 100%.
Recalculate After Order Is Filled (default is enabled)
Enabling this allows the Backtest Pro to function correctly and to recalculate immediately after an order is filled , which makes it possible to:
Enter and exit on the same bar (because the strategy sees the fill instantly).
Trigger alerts immediately after the fill , instead of waiting for the next bar close.
You may see the following Caution! message in the TradingView Strategy Tester:
This warning occurs because the strategy parameter calc_on_order_fills = true . You can safely close the caution message and know the Backtest Pro will produce realistic backtest results.
Recalculate On every tick : Disable.
Fill Orders
Using Bar Magnifier : Recommended if your TradingView plan supports it. Improves intrabar accuracy, but the strategy can still run without it.
On Bar Close : Must remain disabled. Enabling this prevents the Backtest Pro from working as intended.
⚠️ Caution : Enabling On Bar Close forces all orders to be evaluated only at bar close. This disables intrabar logic, prevents same-bar entries and exits, and breaks trailing stop / pyramid behavior. For the Backtest Pro to work as intended, On Bar Close must remain disabled .
Using Standard OHLC : Recommended if running the strategy on Heikin Ashi charts. Otherwise, set as desired. The default is enabled.
📢 Using The Alert Dialog Box Message Field
When setting alerts, include alert() function calls with order fills to allow notifications for drawdown exceeded, Failed to Trade (if enabled), and to be warned of expiring GTC orders (if enabled).
Example Message for Order Fill Alerts
(This is just an example. Consult TV manual for possible placeholders to use.)
Position: Current = {{strategy.market_position}}, Previous = {{strategy.prev_market_position}}
{{strategy.order.action}} {{strategy.order.contracts}} shares at price = {{strategy.order.price}} on {{exchange}}:{{ticker}} (TF: {{interval}})
Equity_Multiplier = {{strategy.order.contracts}} x {{strategy.order.price}} ÷ {{plot("Equity")}}
{{strategy.order.alert_message}}
Note :
Use a known account equity multiplied by Equity_Multiplier to determine the total currency amount required for position sizing—especially when managing multiple accounts with different equity levels.
What {{strategy.order.alert_message}} Includes
This placeholder automatically inserts the additional information generated for each order fill alert (blank for exits):
Stop Price (on first entries is based on bar close prior to order fill bar)
TSL Offset (Pts) distance from Favorable Extreme (for pyramid entries)
TP (on first entries is based on bar close prior to order fill bar)
Price Gap (Pts) based on your gap selection and slippage entered
Example Message for Bot Trading Alerts
(You must consult your specific bot for configuring the alert message. This is just an example.)
"action": "{{strategy.order.action}}",
“price”: {{strategy.order.price}}
"amount": {{strategy.order.contracts}},
"botId": "1234"
Smart Impulse PRO v1.0Smart Impulse PRO (Invite‑Only) — Comprehensive Guide for TradingView
***
## English Version
Smart Impulse PRO (Invite‑Only) — Comprehensive Guide for TradingView
Strategy Concept & Uniqueness
Smart Impulse PRO is a trend‑following impulse continuation strategy built specifically for volatile crypto pairs . It uses a custom price×volume impulse signal normalized with Z‑score , then filters these impulses through multi‑timeframe trend conditions and a layered guard system that blocks structurally weak trades (flat, overextension, exhaustion).
Backtest Summary (Crypto Pairs)
Smart Impulse PRO was backtested on several volatile crypto perpetual pairs (including ETHUSDT, BTCUSDT and other majors/alts) on 1h charts in the period 01 Jan 2023 – 26 Dec 2025. On this sample, typical results were:
- Total trades per pair : ≈100–130
- Win rate range : ≈ 90–94%
- Profit factor range : ≈ 3.0–3.9
These values are historical backtest metrics on specific symbols and settings and do not guarantee similar performance in the future .
Why It’s Special
✅ Custom price×volume impulse model (Z‑score‑based) : Measures how unusual each bar’s move is in its recent context, not just simple MA/RSI crossovers
✅ 15+ Exhaustion & Structure Guards : Automatically block bad contexts (flat, low vol, overextended candles, climax volume)
✅ Dynamic TP Grid : Take‑profit levels adapt to current impulse strength |Z|
✅ Visual Transparency : Bubbles show exactly why signals were blocked
✅ Invite‑Only Logic : The concrete impulse model and guard interactions are proprietary and therefore published as invite‑only with protected source, as allowed by TradingView’s script rules.
***
### 1. What the Script Does (User View)
Smart Impulse PRO acts as an automated decision engine for volatile crypto pairs (e.g., ETHUSDT, BTCUSDT) on intraday and swing timeframes (15m–4h). It:
- Generates Long/Short entries only when both trend and impulse conditions align.
- Manages exits with a multi‑level TP grid, breakeven logic, optional trailing stop and time‑based exit.
- Visually shows both taken trades and blocked signals , including a short text reason for rejection.
This lets users trade crypto trends with a clear explanation of when and why the strategy chooses to act or stay out.
***
Entry Rules
Long (Buy):
Price is above EMA200 (long‑term trend is up)
Z‑score impulse > Z_threshold (e.g., 1.5)
Volume above recent average
ADX > Min ADX (e.g., 25)
ATR regime OK (ATR > ATR_floor and not in volatility squeeze)
All active guards pass (no overextended candle, no extreme wick against direction, no climax volume lock, no distance violation vs EMA200/VWAP, no Z‑streak lock)
Short (Sell):
Price is below EMA200 (long‑term trend is down)
Z‑score impulse > Z_threshold
Volume above recent average
ADX > Min ADX
ATR regime OK
All active guards pass (same checks, mirrored for shorts)
Logic:
The script first checks that the market is trending (EMA200 side + ADX + volatility filters), then validates that the current bar is a statistically strong price×volume impulse, and finally makes sure the bar is not an exhaustion spike or overextended move according to the guard system. Only if all three layers agree, a trade is opened.
Exit Rules
Stop‑Loss:
Initial stop‑loss is placed at a user‑defined distance (percent or ATR‑based), and position size is calculated so that a full stop equals Max Risk per Trade (%).
Take‑Profit grid:
Up to 10 TP levels.
Step type: Percent, ATR% or Hybrid.
Optional “Breathing grid”: TP distances are increased in proportion to |Z‑score| at entry (capped), so stronger impulses receive wider, more ambitious targets.
TP Profile (Equal / Aggressive / Balanced / Defensive) decides how much size is closed at each level.
Breakeven and Trailing:
Optional breakeven: after TP1 is hit, stop can be moved to entry price plus a small offset.
Optional ATR‑based trailing stop activates only after TP3 to avoid being shaken out too early by noise.
Time‑based Exit:
If enabled, any open trade that does not hit TP or SL within the chosen time limit (bars or minutes) is closed at market, to avoid very long, stagnant positions.
### 2. How the Script Works (Internals)
2.1 Impulse Engine (Custom Z‑Score Model)
At the core is a price×volume impulse series with Z‑score normalisation:
- Raw impulse:
`delta_impulse = (close - close ) * volume`
- Normalisation over N bars (default N = 20):
`zscore = (delta_impulse - avg(delta_impulse, N)) / stdev(delta_impulse, N)`
A bar becomes an impulse candidate only when:
- `abs(zscore) > Z_threshold` (default 1.5), and
- volume is above its recent average.
This is a custom implementation of a price×volume impulse model based on Z‑score; the exact combination of inputs, window, thresholds and how this signal feeds guards and exits is part of the proprietary logic.
2.2 Trend & Volatility Context — Why the Mashup Exists
The strategy combines several classic tools, but each covers a specific failure mode. The mashup is intentional:
| Component | What it checks | Why it is needed |
|----------|----------------|------------------|
| EMA200 | Long‑term bias (price above/below) | Prevents counter‑trend trading |
| EMA200 slope | Steepness of EMA over K bars | Filters flat/ranging phases even above/below EMA |
| VWAP | Distance of price from volume‑weighted fair value | Avoids entering when price is far from value (overextension) |
| ADX | Trend strength | Disables signals in low‑trend, choppy markets |
| ATR vs AvgATR50 | Current volatility vs recent average | Detects volatility squeezes and abnormally calm regimes |
| ATR% floor (Anti‑Flat Gate) | ATR as % of price | Hard “no‑trade” mode in ultra‑tight ranges |
An impulse alone is not sufficient in crypto; only impulses inside a suitable trend and volatility context are allowed to become trades.
2.3 Guard System (Exhaustion & Overextension)
Above trend filters, Smart Impulse PRO adds a guard layer designed from typical crypto problems (late entries, news spikes, “buying the top”):
- Max body / ATR : Rejects abnormally large real bodies (e.g., body > 3× ATR), often at the end of a move.
- Max range / ATR : Blocks extremely long high‑low bars.
- Upper/lower wick filters :
- Longs blocked when upper wick dominates (rejection from above).
- Shorts blocked when lower wick dominates (rejection from below).
- Z‑streak guard : After several consecutive impulse bars in the same direction, new entries in that direction are disabled to avoid chasing.
- Climax volume + cool‑off : When volume spikes above a multiple of its recent average, new trades are paused for N bars.
- Distance guards : Excessive distance (in ATR multiples) from EMA200 and VWAP can block trades.
These checks interact with the impulse model so that the final decision reflects a coherent risk framework rather than a loose collection of filters.
2.4 Dynamic TP Grid (Exit Logic)
- Up to 10 TP levels; step type: Percent, ATR% or Hybrid.
- With Breathing grid , TP spacing is increased by a factor of `k * abs(zscore)` (capped) at entry.
- Stronger impulses (higher |z|) → wider distances between TP levels; weaker impulses → tighter TP spacing.
- TP profiles (Equal / Aggressive / Balanced / Defensive) control how much position size is allocated to early vs late targets.
- Optional breakeven: move SL to entry (plus offset) after TP1.
- Optional trailing: ATR‑based trailing stop activates after TP3.
This links entry strength and exit geometry using the same impulse signal.
***
### 3. How to Use the Script (Practical Guide)
3.1 Quick Start
1. Add Smart Impulse PRO to a volatile crypto pair (e.g., ETHUSDT, BTCUSDT) on 15m–4h.
2. Keep the default preset and observe executed trades and blocked bubbles.
3. Use the dashboard to see which filters are active and which ones are blocking most trades (e.g., ADX, Flat, Exhaust).
4. If there are too few trades, gradually lower Z_threshold or Min ADX , or slightly relax guard limits — change one parameter at a time .
5. Set Max Risk per Trade (%) , stop distance, TP count/profile and optional trailing in line with your risk tolerance.
3.2 Example Profiles
- Aggressive intraday (15m)
- Z‑threshold 1.2
- Min ADX 20
- ATR% floor 0.2%
- Some exhaustion guards disabled (e.g., less strict wick limits).
- Conservative swing (1h–4h)
- Z‑threshold 1.5
- Min ADX 25–30
- ATR% floor 0.3–0.4%
- All guards enabled, higher‑timeframe filters ON.
3.3 Risk Management & Position Sizing
- Max Risk per Trade (%) — percentage of equity at risk if the full stop‑loss is hit.
- Position size is computed automatically from Max Risk %, stop distance and instrument price.
- Breakeven and trailing can be enabled to reduce open risk after partial profit is taken.
- Time‑based exit closes trades that stay open beyond a user‑defined duration without reaching TP or SL.
3.4 Alerts
Alerts use `strategy.order.alert_message` to send JSON containing side (long/short), entry, stop and TP levels. This allows users to connect the strategy with external bots or dashboards without exposing internal code.
***
### 4. Why This Script Is Invite‑Only (Originality Justification)
TradingView asks invite‑only scripts to explain why their logic is original and why source protection is justified. Smart Impulse PRO does that by:
- Implementing a custom price×volume impulse model based on Z‑score normalisation and integrating it with exits through the breathing TP grid.
- Using a coordinated guard framework that explicitly targets typical crypto issues (late chase entries, overextension vs VWAP/EMA200, volatility squeezes, volume spikes).
- Providing a structured indicator mashup where EMA200, VWAP, ADX, ATR and Anti‑Flat Gate each address different dimensions (trend, volatility, structure) and are designed to work together as a context gate for the impulse signal.
On ETHUSDT, BTCUSDT and a group of other volatile crypto pairs, Smart Impulse PRO showed approximately 90–94% win rate and profit factor above 3.0 in 2023–2025 backtests under default risk and filter settings. These numbers are illustrative only and do not promise or guarantee similar live results.
Risk Disclaimer
Trading cryptocurrencies involves substantial risk. Backtests are hypothetical and assume perfect execution without additional slippage, liquidity constraints or exchange issues. Always test the strategy on your own symbols and timeframes and keep risk per trade at a level you are comfortable with.
FAQ
Q: Does the strategy guarantee profit?
A: No. It is a rule‑based decision engine; all results depend on market conditions, parameters and execution, and backtests do not guarantee future performance.
Q: Can I use it on any crypto pair?
A: The logic is designed for volatile crypto pairs. It has been backtested on ETHUSDT, BTCUSDT and several other majors/alts, but each symbol should be tested and, if needed, re‑tuned by the user.
Q: Which timeframe is best?
A: The engine is intended for intraday and swing charts between 15m and 4h. Lower timeframes will generally produce more signals and more noise; higher ones will produce fewer, slower signals.
Q: Can I disable some filters or guards?
A: Yes. Trend filters, the Anti‑Flat Gate and most exhaustion guards can be turned on or off. It is recommended to change one setting at a time and monitor how it affects blocked signals and the equity curve.
Q: How are alerts meant to be used?
A: Alerts send a JSON payload with side, entry, stop and TP levels via strategy.order.alert_message, so users can connect the strategy to external bots or dashboards if they wish.
***
## Русская версия
Smart Impulse PRO (по приглашению) — Полное руководство для TradingView
Концепция и уникальность
Smart Impulse PRO — стратегия продолжения импульсов, разработанная под волатильные криптовалютные пары . В ней используется пользовательская модель импульса “цена×объём”, нормализованная через Z‑score , после чего такие импульсы проходят фильтрацию по тренду на разных таймфреймах и через каскад гардов, блокирующих слабые и рискованные сетапы (флэт, перетянутость, истощение).
Сводка тестов (крипто‑пары)
Стратегия тестировалась на нескольких волатильных крипто‑парах (перпетуальные контракты, включая ETHUSDT, BTCUSDT и ряд других мейджоров/альтов) на часовом таймфрейме за период 01.01.2023 – 26.12.2025. Типичные значения по этим тестам:
- Количество сделок на пару : ≈100–130
- Диапазон винрейта : ≈ 90–94%
- Диапазон фактора прибыли : ≈ 3.0–3.9
Это результаты тестов на истории по конкретным инструментам и настройкам и не гарантируют такой же доходности в будущем .
Почему она оригинальная
✅ Пользовательская модель импульса цена×объём (Z‑score) : измеряет “редкость” бара в его статистическом окружении, а не просто пересечение стандартных индикаторов
✅ 15+ гардов : системно защищают от догоняния, пампов, торговли в “пиле” и на перетянутых уровнях
✅ “Дышащая” TP‑сетка : цели автоматически подстраиваются под силу текущего импульса |Z|
✅ Прозрачность : пузырьки показывают причины каждого отказа от сделки
✅ Формат по приглашению : логика импульса и взаимодействие гардов публикуются как закрытый скрипт с Invite‑Only доступом, что соответствует правилам TradingView.
***
### 1. Что делает скрипт (для пользователя)
Smart Impulse PRO выступает как движок принятия решений для торговли волатильными крипто‑парами (ETHUSDT, BTCUSDT и др.) на таймфреймах от 15 минут до 4 часов:
- Открывает лонги/шорты только при одновременном совпадении трендовых и импульсных условий.
- Управляет выходом через многоуровневую сетку TP, безубыток, по желанию — трейлинг‑стоп и тайм‑стоп.
- Отображает как реальные сделки , так и отклонённые сигналы с короткой подписью причины блокировки.
Задача — структурировать трендовую торговлю криптой и сделать логику решений максимально понятной.
***
### 2. Как работает скрипт (внутренняя логика)
2.1 Импульсное ядро (кастомная модель на Z‑score)
В основе лежит ряд дельта×объём :
- Сырой импульс:
`delta_impulse = (close - close ) * volume`
- Нормализация по окну N баров (по умолчанию 20):
`zscore = (delta_impulse - среднее(delta_impulse, N)) / стд(delta_impulse, N)`
Бар считается кандидатом на импульс , только если:
- `abs(zscore) > Z_threshold` (по умолчанию 1.5);
- объём выше своей недавней средней.
Это собственная реализация импульсного сигнала цена×объём , нормализованного по Z‑score; выбор входных данных, окна, порогов и связка с гардами и выходами формируют проприетарную часть стратегии.
2.2 Зачем нужен “мэшап” индикаторов (тренд и волатильность)
Комбинация EMA200, VWAP, ADX, ATR и Anti‑Flat Gate собрана так, чтобы каждый компонент покрывал отдельный вид риска:
| Компонент | Что проверяет | Зачем нужен |
|----------|---------------|------------|
| EMA200 | Долгосрочный уклон (цена выше/ниже) | Защита от контртрендовых входов |
| Наклон EMA200 | Наклон за K баров | Отсекает участки со слабым трендом (флэт) |
| VWAP | Удалённость цены от “центра объёма” | Не даёт входить в явной перетянутости от справедливой цены |
| ADX | Силу тренда | Запрещает торговлю в пиле и боковике |
| ATR vs AvgATR50 | Текущую волатильность к средней | Находит режимы сжатия и аномально низкой волатильности |
| ATR% пол (Anti‑Flat Gate) | ATR в % от цены | Жёсткий запрет торговли в очень узком диапазоне |
Импульс может быть сильным, но без нормального тренда и адекватной волатильности сделка не допускается.
2.3 Система гардов (истощение, перетянутость)
- Макс тело/ATR : слишком большая свеча относительно ATR трактуется как возможное окончание движения.
- Макс диапазон/ATR : блокирует экстремальные по размеру бары.
- Фильтры по хвостам :
- Лонги блокируются при доминирующем верхнем хвосте (отторжение сверху).
- Шорты — при доминирующем нижнем хвосте.
- Z‑streak : после серии импульсных баров в одну сторону новые входы по этому направлению отключаются.
- Climax‑объём + пауза : при объёме выше кратности к средней входы на несколько баров ставятся на паузу.
- Дистанционные гарды : чрезмерное удаление цены от EMA200 и VWAP в ATR‑мультипликаторах может блокировать вход.
Эти условия работают совместно с импульсным ядром и трендовыми фильтрами, формируя связанную модель риска.
2.4 Динамическая TP‑сетка
- До 10 тейк‑профитов; шаг — в %, ATR% или гибридный.
- При включённой опции “Breathing grid” шаг между TP увеличивается пропорционально `|zscore|` (в пределах лимита).
- Сильные импульсы → более широкая сетка и шанс забрать длинное движение, слабые → более плотная сетка.
- Профили TP (равный / агрессивный / сбалансированный / защитный) задают распределение объёма между ближними и дальними целями.
- Можно включить перевод стопа в безубыток после TP1 и трейлинг‑стоп по ATR после TP3.
***
### 3. Как использовать стратегию (практика)
3.1 Быстрый старт
1. Откройте график волатильной крипто‑пары (ETHUSDT, BTCUSDT и т.п.) на ТФ 15m–4h и добавьте стратегию.
2. Оставьте настройки по умолчанию и наблюдайте маркеры сделок и пузырьки отклонённых сигналов.
3. Через дашборд смотрите, какие фильтры чаще всего блокируют сделки (ADX, Flat, Exhaust и др.).
4. Если сделок мало, по шагу снижайте порог Z‑score или ADX либо ослабляйте некоторые гарды — всегда меняйте только один параметр за раз.
5. Настройте Max Risk per Trade , размер стопа, количество и профиль TP, а также при необходимости безубыток и трейлинг‑стоп.
3.2 Типовые профили
- Агрессивный скальпинг (15m)
- Z‑порог 1.2
- ADX min 20
- ATR% пол 0.2%
- Несколько гардов истощения отключены.
- Консервативный свинг (1h–4h)
- Z‑порог 1.5
- ADX min 25–30
- ATR% пол 0.3–0.4%
- Все гарды включены, HTF‑фильтры активны.
3.3 Риск и размер позиции
- Max Risk per Trade (%) задаёт долю капитала, которую допускается потерять при полном срабатывании стоп‑лосса.
- Стратегия рассчитывает размер позиции из риска, стопа и цены инструмента.
- Можно включить перевод стопа в безубыток после TP1 и трейлинг‑стоп после TP3.
- Тайм‑стоп закрывает сделки, которые слишком долго остаются открытыми без достижения TP/SL.
3.4 Алерты
Алерты формируют JSON‑строку с направлением, ценой входа, стопом и всеми TP‑уровнями через `strategy.order.alert_message`. Это позволяет подключать внешние боты и панели без раскрытия кода.
***
### 4. Почему скрипт по приглашению (обоснование оригинальности)
Стратегия не сводится к “набору индикаторов на графике”. Формат Invite‑Only обоснован тем, что в коде реализованы:
- Пользовательская модель импульса цена×объём на базе Z‑score и использование этого же сигнала для адаптивной TP‑геометрии.
- Связанный набор гардов , построенный вокруг реальных проблем крипто‑торговли (поздние входы после пампов, перетянутость от VWAP/EMA200, режимы сжатия, всплески объёма).
- Логика мэшапа : EMA200, VWAP, ADX, ATR и Anti‑Flat Gate работают согласованно как фильтр контекста для импульса, а не как независимые визуальные индикаторы.
На ETHUSDT, BTCUSDT и ряде других крипто‑пар Smart Impulse PRO показывала ≈90–94% винрейт и фактор прибыли выше 3.0 в тестах 2023–2025 годов при стандартных настройках фильтров и риска. Эти значения служат иллюстрацией поведения стратегии в прошлом и не являются обещанием аналогичных результатов в реальной торговле.
Предупреждение о рисках
Торговля криптовалютами связана с повышенным риском. Результаты бэктестов гипотетичны и предполагают идеальное исполнение без дополнительного проскальзывания и проблем с ликвидностью. Перед использованием стратегии на реальном счёте протестируйте её на своих инструментах и выбирайте риск на сделку в соответствии с личной толерантностью к убыткам.
FAQ
В: Гарантирует ли стратегия прибыль?
О: Нет. Это набор правил для принятия решений; результат зависит от рынка, настроек и исполнения. Любые бэктесты не гарантируют такую же доходность в будущем.
В: Можно ли использовать её на любой крипто‑паре?
О: Логика рассчитана на волатильные криптовалютные пары. Стратегия тестировалась на ETHUSDT, BTCUSDT и нескольких других мейджорах/альтах, но для каждого инструмента параметры желательно проверить и при необходимости подстроить.
В: Какой таймфрейм предпочтителен?
О: Стратегия рассчитана на внутридневную и свинговую торговлю в диапазоне 15m–4h. На младших ТФ сигналов больше и шума выше; на старших — сигналов меньше, но они формируются медленнее.
В: Можно ли отключать отдельные фильтры и гарды?
О: Можно. Трендовые фильтры, Anti‑Flat Gate и большинство гардов истощения включаются и выключаются отдельно. Рекомендуется менять настройки по одной и смотреть, как это влияет на заблокированные сигналы и кривую капитала.
В: Для чего нужны алерты?
О: Алерты отправляют JSON‑сообщение с направлением, ценой входа, стопом и уровнями TP через strategy.order.alert_message, что позволяет при желании подключать внешних ботов и панели управления риском.
Infinity Algo█ OVERVIEW
Infinity Algo is an all-in-one signal system with 5 entry modes, 6 take-profit levels, and built-in Auto-Tune optimization.
Switch between trend-following, contrarian, and sniper modes based on market conditions — all within one indicator. Auto-Tune tests 500+ parameter combinations to selects the best-scoring settings from historical simulations.
Includes on-chart TP/SL visualization, trailing stop modes, and webhook-ready alerts.
█ KEY FEATURES
✅ 5 Signal Modes: Normal, Smart, AI, HL Sniper, AI Sniper
✅ 3 Exit Modes: Percentage targets, Signal step-outs, Opposite signal
✅ 6 Take-Profit Levels with on-chart visualization
✅ Trailing Stop-Loss (Breakeven / Moving Target)
✅ Auto-Tune Parameter Optimization
✅ Visual Helpers: Bar coloring, gradient background, "signal coming" markers
✅ Built-in alert conditions for automation
✅ Designed for crypto, forex, stocks, indices, and commodities
█ WHAT MAKES THIS INDICATOR DIFFERENT
🧠 Auto-Tune Engine
Most indicators use static settings that fail when volatility shifts. Auto-Tune tests 500+ parameter combinations in the background — varying sensitivity, thresholds, and trigger configs — selects the best-scoring settings from historical simulations.
Choose from 12 scoring metrics: Sharpe Ratio, Sortino Ratio, Calmar Ratio, SQN, Martin Ratio, GPR, Win Rate, Total Profit, Average Profit, Profit Factor, and more.
Note: Auto-Tune is systematic parameter optimization on historical data — not predictive AI. Past performance does not guarantee future results.
🎯 Multi-Mode Signal System
One indicator, five signal modes:
Normal: Contrarian entries against the trend filter
Smart: Trend-following entries with the trend filter
Auto-Tune: Auto-optimized momentum signals
HL Sniper: More selective trend triggers
Auto-Tune Sniper: Auto-optimized sniper configuration
🛡️ Adaptive Risk Management
Trailing SL modes that respond to your TP hits — not arbitrary price levels. Lock in breakeven or ratchet your stop as profit grows.
👁️ Anticipation Markers
"Possible Long/Short Coming" labels appear when momentum approaches signal levels — giving you time to prepare before the signal fires.
█ SIGNAL MODES EXPLAINED
Normal + Smart (Default)
The dual-mode system that adapts to market conditions:
Normal Signals: Momentum threshold cross against the trend filter — contrarian plays for reversals and range boundaries
Smart Signals: Momentum threshold cross with the trend filter — trend-following plays for continuation moves
Auto-Tune Mode
Let the optimization engine find best-scoring settings:
Tests 500+ parameter combinations against historical data
Simulates trades using your configured TP/SL levels
Scores each configuration by your chosen metric (Sharpe, Sortino, Win Rate, etc.)
Walk-Forward: Re-optimizes every N bars to adapt to regime changes
Static: Locks in best-scoring settings from full available history
HL Sniper
For traders who prefer quality over quantity:
Trend-trigger mode for more selective entries
Fewer signals, more selective setups
Best suited for volatile markets where patience matters
Auto-Tune Sniper
Combines sniper selectivity with automatic optimization:
Optimizes RSI period, smoothing factor, and trigger sensitivity
Adapts configuration based on historical performance
Selective entries + adaptive parameters
█ EXIT & RISK MANAGEMENT
Percentage Targets
Up to 6 TP levels (TP1…TP6) with on-chart lines and labels
Configure price distance (%) and position size (%) for each level
Designed for scaling out positions systematically
Signal Step-Outs
Momentum-shift condition triggers partial exits
Optional higher-timeframe confirmation for stronger signals
"New TP Must Beat Last" prevents weak consecutive exits
Opposite Signal
Closes/flips position when the next opposite entry signal appears
Simple and effective for trend-following systems
Stop-Loss & Trailing
Fixed SL as % from entry (configurable separately for long/short)
Breakeven: Moves SL to entry price after chosen TP is hit
Moving Target: Advances SL to previous TP level as profit grows
█ VISUAL HELPERS
On-Chart TP/SL Lines: See your targets and stops directly on the chart
Bar Coloring: Candles colored by current signal bias
Background Gradient: Visual confirmation of position direction
"Possible Signal Coming" Markers: Anticipate entries before they trigger
Peak Profit Label: Track maximum unrealized profit during trades
█ AUTO-TUNE DASHBOARD
When Auto-Tune is enabled, the dashboard displays:
Current Parameters: Active sensitivity, thresholds, or sniper config
Simulated Performance: Trade count, win rate, P&L from internal backtest
Confidence Score: Stability indicator based on agreement among top configurations
Note: Auto-Tune is automated parameter selection on historical data — not predictive AI. It cannot guarantee future performance.
█ USE CASES
📈 Trending Markets
Use "Smart" signals + Percentage TPs. Stay aligned with momentum while scaling out at multiple targets. Enable Moving Target trailing to maximize winners.
📉 Ranging / Choppy Markets
Use "Normal" signals (contrarian mode). Catch reversals at range boundaries. Tighter TP targets and quicker exits work best.
⚡ High Volatility / News Events
Use "HL Sniper" for selective entries. Fewer signals, more selective. Wider SL to accommodate volatility.
🧪 New Asset / Unfamiliar Market
Enable "AI" mode and let Auto-Tune find optimal parameters. Great for exploring new markets without manual optimization.
🤖 Automation & Bots
Structured alert payloads work with popular bot platforms and custom webhooks. Entry + 6 TPs + SL in one alert.
█ HOW TO USE
Apply to your chart (any timeframe, any market)
Choose your signal mode based on market conditions
Pick your direction (Long / Short / Both)
Select exit mode: Percentage, Signals, or Opposite Signal
Configure TP levels and position sizing
Enable Stop-Loss and choose a trailing mode
Optional: Enable Auto-Tune for adaptive optimization
Set alerts for signals and TP/SL events
█ ALERTS
Built-in alert conditions for:
All entry signal types (Normal, Smart, AI, HL Sniper, AI Sniper)
TP hits (percentage levels or signal-based steps)
SL touch events
"Possible Long/Short Coming" anticipation markers
Tip: Create separate alerts for each condition. Use TradingView placeholders ({{ticker}}, {{close}}) in your alert messages.
█ WORKS ON
Crypto
Forex
Stocks
Indices
Commodities
█ REALISTIC EXPECTATIONS
No indicator wins 100% of the time — this is no exception
Signals should be combined with your own analysis
Auto-Tune optimizes on past data — it cannot predict the future
Always use proper position sizing and risk management
Paper trade or backtest before risking real capital
█ LIMITATIONS
Signals and overlays are decision-support tools — they cannot eliminate losses
Auto-Tune can overfit if used without out-of-sample validation
Multi-timeframe logic confirms on higher-TF closes — slight delay is expected
Best evaluated on standard candles with realistic fee/slippage assumptions
█ DISCLAIMER
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Past performance is not indicative of future results. Trading involves substantial risk of loss, and you are solely responsible for your own trading decisions.
JFX Smart ORBJFX Smart ORB is a complete visual trading framework built around the classic
Opening Range Breakout (ORB) concept, enhanced with:
Fixed position sizing (lots)
Automatic Martingale-style size increase after full SL only
A full, event-based alert system for entries, targets, stops, and break-even exits
All of that, plus a clean dual-language HUD (AR/EN) directly on your chart.
What JFX Smart ORB Does
🔹 Smart Opening Range (ORB)
Automatically defines the opening range via:
Fixed timeframe (e.g., 30 minutes), or
Custom session window (e.g., 09:30–09:45) with configurable time zone (UTC-5, etc.).
Plots ORH / ORL and the midline, and shades the OR building zone for visual clarity.
🔹 Regime Detection (Context)
Background shading tells you where price is trading:
📈 Green: Above ORH (bullish regime)
📉 Red: Below ORL (bearish regime)
🔵 Neutral: Inside the OR range
This gives you an instant read on context before you even think about entries.
🔹 Trade Logic & Multi-Target Management
Automatic entry when:
Price breaks ORH for long trades
Price breaks ORL for short trades
Stop loss on the opposite side of the range.
Targets calculated in R-multiples:
TP1 = 0.5R
TP2 = 1R
TP3 = 2R
Position is split across TP1 / TP2 / TP3 according to user-defined percentages, normalized automatically.
💰 Fixed Size + Martingale After Loss Only
Inputs:
Capital ($) – for display/analysis
Base Position Size (lots) – your standard trade size
Contract per 1.00 lot – to convert price movement to P/L in dollars
If a trade hits a full stop loss before TP1, the indicator:
Doubles the position size for the next trade (Martingale factor).
If the trade hits any profit (TP1, TP2, TP3) or closes at Break-Even, the:
Martingale factor resets back to 1× (base size).
Everything is tracked and shown on the chart: current trade size, P/L per trade, and net P/L.
🧠 Session Protection & Inner-Range Logic
Optional session block:
After a strong winning trade (e.g., TP2 or TP3), you can block any further trades for the rest of the ORB session to avoid overtrading.
Inner-range logic after TP1:
Prevents immediate re-entry in the same direction after a BE exit from TP1.
Waits for price to return into a defined inner range around the OR midline, filtering out random noise.
📊 On-Chart HUD / Stats (AR & EN)
The built-in info panel shows in real time:
Session status:
✅ Trading enabled
🚫 Trading disabled until a new ORB
⏳ Waiting for two bars back inside the range
Current price regime (Above ORH / Below ORL / Inside OR).
Entry price, stop loss, TP1, TP2.
Total trades, losing trades, and win rate.
Counts of TP1 / TP2 / TP3 hits.
Reported capital, current position size (lots).
Current trade P/L and total net P/L in dollars.
🔔 Full Alert System (Ready for Webhooks/Bots)
The indicator generates per-bar event flags that feed into alertcondition() so you can build any alert setup you want (pop-up, email, SMS, webhook, bot, EA, etc.).
Available alerts:
Buy Entry: JFX_ORB_BUY_ENTRY
Sell Entry: JFX_ORB_SELL_ENTRY
Stop Loss Hit: JFX_ORB_SL_HIT
TP1 Hit: JFX_ORB_TP1
TP2 Hit: JFX_ORB_TP2
TP3 Hit: JFX_ORB_TP3
Break-Even Exit: JFX_ORB_BE_EXIT
Simply create alerts in TradingView based on these conditions and messages, or plug them into your automation via webhooks.
Who Is JFX Smart ORB For?
Day traders and scalpers who like structured ORB strategies instead of random entries.
Traders who want clear, rule-based entries, well-defined stops and multi-target exits.
Anyone looking to combine ORB + position management + Martingale logic + Alerts in a single, professional tool.
Disclaimer:
This indicator is a professional analysis and trade-management tool, not a guarantee of profit.
Always test on demo first and adapt the position sizing and Martingale behavior to your own risk management and trading plan.






















