LeafAlgo Premium Macro StrategiesA "macro score", as defined here, is created by giving various weights to different signals and adding them together to get one smooth score. Positive or negative values are assigned to each of the signals depending on if the statement is true or false (e.g. DPO > 0: +1, DPO < 0: -1). This manner of strategy allows for a subset of the available signals to be present at one time as opposed to every technical signal having to be active in order for a long/short signal to trigger.
This strategy contains SIX different macro score strategies -- "Base DFMA", "Base DFMG", "Ichimoku", "TSI", "Donchian DFMA", and "Donchian DFMG". These strategies have the signals and weights pre-determined in the code. The "Base DFMA" strategy is based on our Democratic Fibonacci Moving Average (DFMA) indicator; the "Donchian DFMA" is the same as the base DFMA strategy, but with a signal from our Donchian Cloud Score indicator as added confluence. The "Base DFMG" strategy is based on our Democratic Fibonacci McGinley Dynamics (DFMG) indicator; the "Donchian DFMG" is the same, but with the Donchian Cloud Score as added confluence. The "Ichimoku" strategy is based on the major sub-indicators found within an Ichimoku Cloud in addition to our Donchian Cloud Score. The "TSI" strategy is based on the True Strength Index.
The ability to select your strategy of choice can be found at the top of the strategy settings under "Strategy Options", then in the drop-down menu labeled "Strategy Choice".
The DFMA - Democratic Fibonacci Moving Average - is a separate indicator that we have released that takes 10 different Fibonacci MAs (lengths of 3 to 233, at Fibonacci intervals) and averages them to form the DFMA line. This helps by creating a consensus on the trend based on moving averages alone. Crossovers of the DFMA with the various Fib MA lengths as well as a cross of the price source and these lines can provide adequate long and short signals. In the two DFMA strategies, the heaviest weights have been given to crosses of the DFMA line/Fib MA (233) as well as the crosses of the Fib MA (3)/DFMA. Additionally, there are thresholds for DPO ( Detrended Price Oscillator , above or below 0), CMO ( Chande Momentum Oscillator , above or below 0), Jurik Volatility Bands (above or below 0), and Stoch RSI (above or below 50). These four signals hold a lighter weight than the MA cross signals. The macro score itself ranges between -10 and 10. In addition to the macro score line, a momentum line (sourced by the macro score itself) has been included. A crossover/crossunder of the macro score and the macro momentum line is included into the long/short signal syntax in addition to a threshold for the macro score.
The DFMG - Democratic Fibonacci McGinley Dynamics - is a separate indicator that we have released that takes 10 different Fibonacci McGinley Dynamic liness (lengths of 3 to 233, at Fibonacci intervals) and averages them to form the DFMG line. This helps by creating a consensus on the trend based on moving averages alone. Crossovers of the DFMG with the various Fib MG lengths as well as a cross of the price source and these lines can provide adequate long and short signals. This strategy has the signals and weights pre-determined in the code. Heaviest weights have been given to crosses of the DFMG line/ McGinley (233) as well as the crosses of the McGinley (3)/DFMG. Additionally, there are thresholds for DPO ( Detrended Price Oscillator , above or below 0), CMO ( Chande Momentum Oscillator , above or below 0), Jurik Volatility Bands (above or below 0), and Stoch RSI (above or below 50). These four signals hold a lighter weight than the McGinley cross signals. The macro score itself ranges between -10 and 10. In addition to the macro score line, a momentum line (sourced by the macro score itself) has been included. A crossover/crossunder of the macro score and the macro momentum line is included into the long/short signal syntax in addition to a threshold for the macro score.
For the Ichimoku macro score, five signals were considered and weighted equally:
- Kijun-sen < Ichimoku Source
- Tenkan-sen < Ichimoku Source
- Kijun-sen > Chikou-span
- Tenkan-sen > Kijun-sen
- Senkou Span A > Senkou Span B
In addition to these factors, the Ichimoku strategy utilizes the Donchian Cloud Score in the long and short entry signals. Thus, the Donchian Cloud settings are applicable to this strategy.
For the True Strength Index strategy, the heaviest weights have been given to various TSI signals, including a crossover/crossunder of TSI signal and TSI value, a threshold for the TSI Signal (above or below 0), and a crossover/crossunder of the CMO ( Chande Momentum Oscillator ) and the TSI signal line. Additionally, there are thresholds for DPO ( Detrended Price Oscillator , above or below 0), Jurik Volatility Bands (above or below 0), and Stoch RSI (above or below 50). These three signals hold a lighter weight than the three TSI signals. The macro score itself ranges between -10 and 10. In addition to the macro score line, a momentum line (sourced by the macro score itself) has been included. A crossover/crossunder of the macro score and the macro momentum line is included into the long/short signal syntax in addition to a threshold for the macro score.
The Donchian Cloud Score is derived from a set of 5 Donchian channels (upper, lower, and basis plotted) defaulted to lengths of 25, 50, 100, 150, and 200. A set of conditions associated with the channels aims to determine ranging versus trending markets. Weights are given to these conditions accordingly, then tallied up to determine the "cloud score", ranging between -25 and 25. In general, a ranging market is determined by a cloud score between -10 and 10, while a positive trending market has a score higher than 10 and a negative trending market has a score lower than -10. That said, long and short thresholds similar to the macro score itself are included in the user settings and set to a default of 5 or -5. The cloud score is plotted as a line in the underlay with coloration reflecting ranging or trending markets (green color above the long threshold, gray between the thresholds, and red below the short threshold). The cloud score is incorporated into the strategy syntax for long and short positions in that the score must be above or below the set threshold for a trade to be placed. A breakdown for the Donchian scoring is as follows:
- Broke the 25-length DC (DC(25)) upper band in the previous 3 bars - +1 if true, 0 if false
- Broke the DC(50) upper band in the previous 3 bars - +2 if true, 0 if false
- Broke the DC(100) upper band in the previous 3 bars - +3 if true, 0 if false
- Broke the DC(150) upper band in the previous 3 bars - +4 if true, 0 if false
- Broke the DC(200) upper band in the previous 3 bars - +5 if true, 0 if false
- Broke the DC(25) lower band in the previous 3 bars - -1 if true, 0 if false
- Broke the DC(50) lower band in the previous 3 bars - -2 if true, 0 if false
- Broke the DC(100) lower band in the previous 3 bars - -3 if true, 0 if false
- Broke the DC(150) lower band in the previous 3 bars - -4 if true, 0 if false
- Broke the DC(200) lower band in the previous 3 bars - -5 if true, 0 if false
- DC(25) basis line above the DC(50) basis line - +1 if true, -1 if false
- DC(25) basis line above the DC(100) basis line - +1 if true, -1 if false
- DC(25)basis line above the DC(150) basis line - +1 if true, -1 if false
- DC(25) basis line above the DC(200) basis line - +1 if true, -1 if false
- DC(50) basis line above the DC(100) basis line - +1 if true, -1 if false
- DC(50) basis line above the DC(150) basis line - +1 if true, -1 if false
- DC(50) basis line above the DC(200) basis line - +1 if true, -1 if false
- DC(100) basis line above the DC(150) basis line - +1 if true, -1 if false
- DC(100) basis line above the DC(200) basis line - +1 if true, -1 if false
- DC(150) basis line above the DC(200) basis line - +1 if true, -1 if false
Thresholds for both the respective macro score and the Donchian Cloud score have been included. Entry signals for each strategy require the score to be >= the respective thresholds for longs and <= the respective thresholds for shorts.
Additionally, a normalized z-score has been included. The z-score does not affect the entry and exit signals, however, it is displayed on the chart in the form of bar coloration. The z-score has been normalized to a range of -1 to +1. A z-score under -0.60 is displayed as a red bar color, a score between -0.60 and -0.2 is displayed as an orange bar color, a score between -0.2 and 0.2 is displayed as a gray bar color, a score between 0.2 and 0.6 is displayed as a lime bar color, and a score over 0.6 is displayed in green.
Data for each respective strategy will be displayed in an overlaid table. This includes the factors that comprise the macro score of choice, the values of each signal that adds up to the macro score, the macro score itself, the value of the momentum line of the macro score, the normalized z-score value, and the Donchian Cloud score (if applicable). Green coloration notes bullish sentiment within the signals or values, gray coloration is neutral, and red coloration notes bearish sentiment.
Take profit, stop loss, and trailing percentages are also included, found at the bottom of the Input tab under “TT and TTP” as well as “Stop Loss”. The take profit and stop loss levels will be reflected as green and red lines respectively on the chart as they occur. Make sure to understand the TP/SL ratio that you desire before use, as the desired hit rate/profitability percentage will be affected accordingly. The option for adding in a trailing stop has also been included, with options to choose between an ATR-based trail or a percentage-based trail. This strategy does NOT guarantee future returns. Apply caution in trading regardless of discretionary or algorithmic. Understand the concepts of risk/reward and the intricacies of each strategy choice before utilizing them in your personal trading.
Profitview/Pineconnector Settings:
If you wish to utilize Profitview’s automation system, find the included “Profitview Settings” under the Input tab of the strategy settings menu. If not, skip this section entirely as it can be left blank. Options will be “OPEN LONG TITLE”, “OPEN SHORT TITLE”, “CLOSE LONG TITLE”, and “CLOSE SHORT TITLE”. If you wished to trade SOL, for example, you would put “SOL LONG”, “SOL SHORT”, “SOL CLOSE LONG”, and “SOL CLOSE SHORT” in these areas. Within your Profitview extension, ensure that your Alerts all match these titles. To set an alert for use with Profitview, go to the “Alerts” tab in TradingView, then create an alert. Make sure that your desired asset and timeframe are currently displayed on your screen when creating the alert. Under the “Condition” option of the alert, select the strategy, then select the expiration time. If using TradingView Premium, this can be open-ended. Otherwise, select your desired expiration time and date. This can be updated whenever desired to ensure the strategy does not expire. Under “Alert actions”, nothing necessarily needs to be selected unless so desired. Leave the “Alert name” option empty. For the “Message”, delete the generated message and replace it with {{strategy.order.alert_message}} and nothing else. If using Pineconnector, follow the same directions for setting up an alert, but use the ",buy,,risk=" syntax as noted in the tooltips.
Search in scripts for "momentum"
Investments/swing trading strategy for different assetsStop worrying about catching the lowest price, it's almost impossible!: with this trend-following strategy and protection from bearish phases, you will know how to enter the market properly to obtain benefits in the long term.
Backtesting context: 1899-11-01 to 2023-02-16 of SPX by Tvc. Commissions: 0.05% for each entry, 0.05% for each exit. Risk per trade: 2.5% of the total account
For this strategy, 5 indicators are used:
One Ema of 200 periods
Atr Stop loss indicator from Gatherio
Squeeze momentum indicator from LazyBear
Moving average convergence/divergence or Macd
Relative strength index or Rsi
Trade conditions:
There are three type of entries, one of them depends if we want to trade against a bearish trend or not.
---If we keep Against trend option deactivated, the rules for two type of entries are:---
First type of entry:
With the next rules, we will be able to entry in a pull back situation:
Squeeze momentum is under 0 line (red)
Close is above 200 Ema and close is higher than the past close
Histogram from macd is under 0 line and is higher than the past one
Once these rules are met, we enter into a buy position. Stop loss will be determined by atr stop loss (white point) and break even(blue point) by a risk/reward ratio of 1:1.
For closing this position: Squeeze momentum crosses over 0 and, until squeeze momentum crosses under 0, we close the position. Otherwise, we would have closed the position due to break even or stop loss.
Second type of entry:
With the next rules, we will not lose a possible bullish movement:
Close is above 200 Ema
Squeeze momentum crosses under 0 line
Once these rules are met, we enter into a buy position. Stop loss will be determined by atr stop loss (white point) and break even(blue point) by a risk/reward ratio of 1:1.
Like in the past type of entry, for closing this position: Squeeze momentum crosses over 0 and, until squeeze momentum crosses under 0, we close the position. Otherwise, we would have closed the position due to break even or stop loss.
---If we keep Against trend option activated, the rules are the same as the ones above, but with one more type of entry. This is more useful in weekly timeframes, but could also be used in daily time frame:---
Third type of entry:
Close is under 200 Ema
Squeeze momentum crosses under 0 line
Once these rules are met, we enter into a buy position. Stop loss will be determined by atr stop loss (white point) and break even(blue point) by a risk/reward ratio of 1:1.
Like in the past type of entries, for closing this position: Squeeze momentum crosses over 0 and, until squeeze momentum crosses under 0, we close the position. Otherwise, we would have closed the position due to break even or stop loss.
Risk management
For calculating the amount of the position you will use just a small percent of your initial capital for the strategy and you will use the atr stop loss for this.
Example: You have 1000 usd and you just want to risk 2,5% of your account, there is a buy signal at price of 4,000 usd. The stop loss price from atr stop loss is 3,900. You calculate the distance in percent between 4,000 and 3,900. In this case, that distance would be of 2.50%. Then, you calculate your position by this way: (initial or current capital * risk per trade of your account) / (stop loss distance).
Using these values on the formula: (1000*2,5%)/(2,5%) = 1000usd. It means, you have to use 1000 usd for risking 2.5% of your account.
We will use this risk management for applying compound interest.
In settings, with position amount calculator, you can enter the amount in usd of your account and the amount in percentage for risking per trade of the account. You will see this value in green color in the upper left corner that shows the amount in usd to use for risking the specific percentage of your account.
Script functions
Inside of settings, you will find some utilities for display atr stop loss, break evens, positions, signals, indicators, etc.
You will find the settings for risk management at the end of the script if you want to change something. But rebember, do not change values from indicators, the idea is to not over optimize the strategy.
If you want to change the initial capital for backtest the strategy, go to properties, and also enter the commisions of your exchange and slippage for more realistic results.
If you activate break even using rsi, when rsi crosses under overbought zone break even will be activated. This can work in some assets.
---Important: In risk managment you can find an option called "Use leverage ?", activate this if you want to backtest using leverage, which means that in case of not having enough money for risking the % determined by you of your account using your initial capital, you will use leverage for using the enough amount for risking that % of your acount in a buy position. Otherwise, the amount will be limited by your initial/current capital---
Some things to consider
USE UNDER YOUR OWN RISK. PAST RESULTS DO NOT REPRESENT THE FUTURE.
DEPENDING OF % ACCOUNT RISK PER TRADE, YOU COULD REQUIRE LEVERAGE FOR OPEN SOME POSITIONS, SO PLEASE, BE CAREFULL AND USE CORRECTLY THE RISK MANAGEMENT
Do not forget to change commissions and other parameters related with back testing results!
Some assets and timeframes where the strategy has also worked:
BTCUSD : 4H, 1D, W
SPX (US500) : 4H, 1D, W
GOLD : 1D, W
SILVER : 1D, W
ETHUSD : 4H, 1D
DXY : 1D
AAPL : 4H, 1D, W
AMZN : 4H, 1D, W
META : 4H, 1D, W
(and others stocks)
BANKNIFTY : 4H, 1D, W
DAX : 1D, W
RUT : 1D, W
HSI : 1D, W
NI225 : 1D, W
USDCOP : 1D, W
Alpha Trigger CoreAlpha Trigger Core — Trend Momentum Strategy with Dual Take Profit System
Alpha Trigger Core is a precision-engineered trend-following strategy developed for crypto and altcoin markets. Unlike simple indicator mashups, this system was built from the ground up with a specific logic framework that integrates trend, momentum, volatility, and structure validation into a single unified strategy.
It is not a random combination of indicators, but rather a coordinated system of filters that work together to increase signal quality and minimize false positives. This makes it especially effective on trending assets like BTC, ETH, AVAX, and SOL on the 1-hour chart.
🔍 How It Works
This strategy fuses multiple advanced filters into a cohesive signal engine:
🔹 Trend Identification
A hybrid model combining:
Kalman Filter — Smooths price noise with predictive tracking.
SuperTrend Overlay — Confirms directional bias using ATR.
ZLEMA Envelope — Defines dynamic upper/lower bounds based on price velocity.
🔹 Momentum Filter
Uses a ZLEMA-smoothed CCI to identify accelerating moves.
Long entries require a rising 3-bar CCI sequence.
Short entries require a falling 3-bar CCI sequence.
🔹 Volatility Strength Filter (Vortex Indicator)
Validates entries only when Vortex Diff exceeds a customizable threshold.
Prevents low-volatility "chop zone" trades.
🔹 Wick Trap Filter
Filters out false breakouts driven by liquidity wicks.
Validates that body structure supports the breakout.
📈 Entry & Exit Logic
Long Entry: All trend, momentum, volatility filters must align bullishly and wick traps must be absent.
Short Entry: All filters must align bearishly, with no wick rejection.
Early Exit: Uses ZLEMA slope crossover to exit before a full trend reversal is confirmed.
🎯 Take Profit System
TP1: Takes 50% profit at a user-defined % target.
TP2: Closes remaining 100% at second target.
Cooldown: Prevents immediate reentry and ensures clean position transitions.
📊 Real-Time Strategy Dashboard
Tracks and displays:
Position status (Long, Short, Flat)
Entry Price
TP1/TP2 Hit status
Win Rate (%)
Profit Factor
Bars Since Entry
Fully customizable position & font size
🤖 Bot-Ready Multi-Exchange Alerts
Compatible with WonderTrading, 3Commas, Binance, Bybit, and more.
Customizable comment= tags for entry, exit, TP1, and TP2.
Fully alert-compatible for webhook integrations.
📌 Suggested Use
Best used on trending crypto pairs with moderate-to-high volatility. Recommended on the 1H timeframe for altcoins and majors. Can be used for manual confirmation or automated trading.
🔒 Script Transparency
This is a closed-source script. However, the description above provides a transparent breakdown of the strategy’s core logic, filters, and execution model — ensuring compliance with TradingView’s publishing guidelines.
⚠️ Trading Disclaimer
This script is for educational purposes only and is not financial advice. Always conduct your own analysis before making investment decisions. Past performance does not guarantee future results. Use this strategy at your own risk.
MZ HTF HFT ROCit Bot - Non Repainting Scalper v1.2 ADX RSI MOM This is a new iteration based on my Momentum trading bot.
This is an original script meant to be a high frequency trader that works on higher time frame calculations.
I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame. Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same pane. To counter this, I have a showdata toggle to give you values of the indicators at each entry.
This version has two main entry settings toggled with a checkbox. There is the ROC (rate of change) version and the MOM (momentum) entry signals.
The rate of change version is meant to take a look at your moving average and try to trigger when it hits a certain rate of change point. This can be helpful if you rather play it safer. I have noticed that you can get slightly better entry points but also does not give you as many entries. The momentum algorithm will give you faster entry points and might work best with a slight offset (use your back test to help you figure it out).
I have started to add tooltips to help you along. If you have suggestions please let me know.
How does it work?
Let's just assume that you are looking at a one minute chart. I recommend using the one minute for bots because it will give you the fastest execution for entries. Pinescript has an issue where the signal is not usually sent until the end of the bar/beginning of next bar. If the signal was triggered at the beginning of a 15 minute bar, it might not actually send the signal until the following 15 minute bar. If you are trading on small time frames, this can make all the difference. If you are using an algo platform that trailing stops, stop losse, take profits, etc. I would recommend you use that platform to close your trade. The close trade message will work, but pinescript does not know the exact entry price you received, so if you are trying to collect small profits, it is best that intermediary platform does that calculation for you. If you are dealing with larger moves, instead of small 1-3% scalps, you are probably fine to use the close message setting from pinescript.
Ok, so to take an example. I like to use the 3L and 3S tokens on Kucoin. This gives you a lot of volatility to work with compared to other tokens and coins. However, it can also meas that you are likely taking a higher risk. However, there are some things that can help with that (more on that later).
So we have a token we want to run, and have it on the 1m chart.
First, be sure that all of your filters are OFF when you start playing with the back test. This allows you to see how to best optimize the bot.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
www.dropbox.com
Find the source of your data with the variant drop down. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation. I have been finding that Open and SMA work well, but feel free to explore. If you use a source like open, close, high, low, etc - the interval will not change anything further. If you use a variant such as an sma, you should try to find an interval that works well for that token. For instance, try an sma of 8-11 minutes and see which gives you the best backtest result without changing anything else. Offset ALMA/LSMA parameters are only used for those specific variants. These specific parameters will also affect the ALMA and LSMA if you use that variant in the trend filter. In other words, you can skip these if you are not using those types of moving averages.
www.dropbox.com
Configure the ROC and MOM intervals. If you are using a source such as open, close, etc- this is where you set the interval for your change. So consider using OHLC4 or a interval of 5 thru 15 and see what works best. The Momentum inverval usually works best in the 2-5 bars. There is a custom calculation I added in to try to filter out false entries as momentum is waning. This calculation works best in 2-5 bar interval.
Configure the trigger point and offset. If you are using rate of change, the best settings will likely be between -1 to 0.5. If you are using momentum, you will likely want -20 to 10. This is where you will notice the entries will shift a bit. Try to find a balance between your backtest settings and actually finding what you thin will be the best entries based on a slight delay from trading view, to algo, to your trading platform. This can likely be a minute (maybe even) or so- so be sure to not get too caught up between the backtest results and be sure to finesse the entries to actually fit nicely - maybe a bar earlier than you would likely think. If your entries are coming in too early, you can use the offset to delay your entry by a few bars. This is both science and an art form- don't get too caught up on the back test results as that is based on having all the data tha already transpired, it's not based on how it will actually perform during deployment.
Take profit and stop loss. This should be self explanatory. This script can toggle between static take profit and a trailing profit. For scalping, you will likely want to limit it below 2% to get a good win ratio. Stop loss should be at least 5-6% for these types of 3L/3S tokens to give the strategy some room to move (if the token goes down 2% before it shoots back up, the price will go down 6%). This does not yield the best R/R ratio from a traditional trader perspective, but the statistical probabilities are in your favor for these events will happen. If you have better ideas for how to set this all up, feel free to contribute your ideas in the comments as we can all learn from each other. You can definitely set a much tighter stop loss with a larger take profit to get a lower win rate but in turn might get much better returns. It's all up to you.
FILTERS www.dropbox.com
These filters require you to know a bit about each indicator and how you want to use them. I will only go over the general idea.
Variant Filter - this is especially useful if you want to trade above a moving average. Say for instance you only want to take trades when we are over the 100 Day moving average. Or above a 30 minute, 30 bar EMA, etc. Although originally ported over from my other scripts, this is not a filter that I use often in conjunction with this script.
RSI - perhaps you want to buy when we are below the 30 line on the 30 minute RSI, or we want only want to have the strategy work when we are above the 50 RSI, this can all be configured here. I typically like to try a few different rationales here.
Now with brand NEW ADX filter - this is a brand new idea that seems to work rather well. Based on your ADX settings you can also turn on the "only uptrend" which will try to calculate if you are in an uptrend based on your ADX config. Please keep in mind that uptrend is based relatively on the ADX settings.
- There is a sprinkle of RSI magic in the entry signal to make sure that rsi is not declining in the calculation, so this can affect how many entries you get.
Some other tips:
Forward test.
Set up your algo bot on a one minute interval.
Set up take profit and stop loss on your algo trading platform.
Don't use the exact settings as your backtest, maybe try a slightly more conservative approach from the algo trading platform to make sure you are within range of triggering your events with a slight delay from signal to execution. If you have a 1.6% take profit, perhaps try 1.5% on your platform first.
By using these scripts you agree that you are trading at your own risk. I make no guarantees of returns or results. I just provide tools to help you trade better. However, I hope this ROCit will take you to the moon. And if it does, be sure to give me a shout as well as some tips of your own.
Send me a message with any questions or suggestions.
MarketCipher B Wavetrend DivergencesCreated for the MarketCipher Community and friends :)
I have published this before but it was taken down by Tradingview and PineCoders because they wanted a more in depth description so here it is:
This strategy is mainly based on Wavetrend Oscillator by LazyBear / blue momentum waves on MarketCipher B.
The Wavetrend indicator is a combination of 2 oscillator lines that signals the short term direction of the price once the lines cross. The Wavetrend indicator is useful but only once a divergence has been identified based on the crosses and the price which is what this strategy partly uses to open trades.
Here is a list and description of the different conditions that goes into the entries and exits.
Long trade:
1) Bullish divergence, regular or hidden
2) Price is above Exponential Moving Average
3) Chande Momentum Oscillator value is above x
Short trade:
1) Bearish divergence, regular or hidden
2) Price is below Exponential Moving Average
3) Chande Momentum Oscillator value is below x
The Exponential Moving Average (EMA) is a type of moving average that is price based, lagging (or reactive) indicator that displays the average price of a security over a set period of time. The EMA is however different from a normal moving average and values the recent price action. A Moving Average is a good way to confirm trends which is what it is used for in this strategy. If enabled the strategy will only open long trades above the EMA and only short trades below the EMA.
The Chande Momentum Oscillator is a technical momentum indicator and was designed specifically to track the movement and momentum of a security. The oscillator calculates the difference between the sum of both recent gains and recent losses, then dividing the result by the sum of all price movement over the same period. In this strategy it is used like the EMA to filter out bad trades that goes against the trend. The EMA is better at trading the overall trend but the Chande Momentum Oscillator is a lot better at identifying short term market conditions that are favorable for entering at divergences.
One of the most important aspects when creating a trading strategy is to know when to take profit and to make it as dynamic as possible so that it changes to the market conditions. This is what i have tried to do and the reason why this divergence trading strategy works well.
These are the 3 different exit conditions:
1) A dynamic take profit that will signal a short term trend reversal that is based on pivot points and moving averages.
2) Another dynamic take profit based on pivot points that like the previous take profit is used to determine and anticipate potential changes in market price and reversals.
3) A normal % fixed take profit
Photo of what the dynamic take profit looks like on the chart:
The pivot pointexit comes from this indicator that i have helped update and modify from the original script:
When you have found the right settings you can insert the messages from your automatic trading platform at the bottom of the inputs and then create an alert with your unique webhook address along with the alert message below:
{{strategy.order.alert_message}}
I hope this strategy will be useful to automate part of your trading or help you identify and backtest divergences for your manual trading.
Future updates to come.
Enjoy!
MACandles-LinearRegression-StrategyThis is combination of multiple indicators and strategies. Mainly useful for indexes and to time the entry and exits of indexes. No stoploss used - makes it less desirable for leveraged trades or trading individual stocks.
Let us rewind and look back at some of the indicators/strategies published earlier.
1. Moving Average Candles - this is one of my favourite tool for general trend filtering. Applying supertrend on moving average candles is one of the easiest ways to find reversal in trending market without exiting positions too early. Few scripts published on this basis are:
MA Candles Supertrend
MA Candles Supertrend Strategy
2. VixFix and Linear Regression - this itself is combination of two indicators.
Williams-Vix-Fix-Finds-Market-Bottoms - by @ChrisMoody
Squeeze-Momentum-Indicator - by @LazyBear
I have combined these two indicators to derive VIX-Fix linear regression to find absolute market bottoms. More description here:
VixFixLinReg-Strategy
VixFixLinReg-Indicator
Now, in this strategy, we combine all these together.
Derive moving average candles
Derive momentum of moving average candles
Derive Linear regression on momentum
Optionally, also calculate VIX Fix and Linear regression on VixFix momentum
To find market bottom:
There are two options
1. Use when momentum of MA candles hit bottom (red) and slowly turn up (orange). In aggressiveLong mode, signals are also generated when momentum starts going positive from negative.
2. Use Vix Fix linear regression of MA candles as described in the original script of VixFixLinReg-Strategy
To find market top
Here only Ma candles momentum decreasing is used as signal. If looking for longTrades , exit signal is generated only when momentum is turning negative extreme(orange). Or else, exit signal is generated when momentum has turned neutral.
At this stage, it is very much experimental - use it with caution :)
DEMA/EMA & VOLATILITY (VAMS)The biggest issue with momentum following strategies is over signaling during whipsaw periods. I created this strategy that measure momentum with DEMA (Fast Moving) and EMA (Slow moving). In order to mitigate over signaling during whipsaw periods I implemented the average true range percentage (ATRP) to measure realized volatility. If momentum is picking up while volatility is under a certain threshold it purchases the security. If momentum slows while volatility picks up it sells the security. Additionally, if momentum picks up, but volatility is high, it stays out of the security. This follows the theory that during sustained uptrends volatility will decrease, and during market corrections the volatility picks up. Following the old adage that markets climb up the stairs, and fall out the window. Note that this strategy does repaint due to it entering and closing positions at the close of the bars. I forgot to mention how volatility is measured high vs low. If the ATRP is above the EMA of the ATRP the strategy interprets the volatility is increasing and does not enter the security & Vice Versa for selling (with momentum signal of MAs)
This is just my first strategy, any feedback would be much appreciated.
TopTenAlgo 10. SQZMOM Algorithmic Strategy with Alerts & SignalsEN: This Algorithm is a derivative of John Carter's "TTM Squeeze" volatility indicator. Many strategists have taken the indicator on Tradingview with simple moving averages and have looked at the biggest mistake only by dealing with squeeze and exit processes to squeeze. But I used the algorithm to determine where the markets would actually explode. For example, instead of using SMAs , I tested them on the Linear Regression Curve using Volume Weighted Moving Averages and Hull MAs. This gave me the opportunity to develop a more responsive algorithm and identify where the actual explosion would occur. The Gray Circles in the midline show that the market is entering a new jam (in the Bollinger Bands and Keltner Channel). This means low volatility , the market prepares itself for an explosive move (up or down). White Circles mean that it is about to get out of the jam. The Blue Circles, which no one can calculate, now inform that the exit is no longer jammed and that the explosion has taken place.
Mr. Carter recommends that you wait until the first gray after a gray cross and take a position in the momentum direction (for example, if the momentum value is above zero, relax). Exit position when the momentum changes (increase or decrease, this is indicated by a color change). In this algorithm, I tried to achieve good entry points using an additional indicator such as ADX and WaveTrend. To draw the histogram, I used a different method based on Linear Regression . Mr.Carter uses a simple momentum indicator. Strategy, alarms and signals have been added to the indicator so that you can optimize in algorithmic trading.
In summary, this algorithm is a strict algorithm in which additional 4-5 indicators are blended. Conveniences for Everyone ...
TR: Bu Algoritma John Carter'ın "TTM Squeeze" volatilite göstergesinin bir türevidir. Bir çok stratejist Tradingview' de gösterge' yi basit hareketli ortalamalarla ele almış ve en büyük hatayı sadece sıkışma ve sıkışmadan çıkış süreçlerini ele alarak bakmışlardır. Fakat ben algoritmayı piyasaların asıl patlama yapacağı yeri tespit etmek için kullandım. Örneğin SMA' ları kullanmak yerine Hacim Ağırlıklı Hareketli Ortalamaları ve Hull MA' ları kullanarak onları Linerar Regresyon Eğrisinde stress testine tabi tuttum. Buda bana daha duyarlı bir algoritma geliştirmem ve asıl patlamanın olacağı yerleri tespit etmem için fırsat verdi. Orta hattaki Gri Daireler, piyasanın yeni bir sıkışmaya girdiğini gösteriyor ( Bollinger Bantları ve Keltner Kanalı'nda). Bu, düşük volatilite anlamına gelir, piyasa kendisini patlayıcı bir harekete hazırlar (yukarı veya aşağı). Beyaz Daireler ise sıkışmadan çıkmak üzere olduğu anlamına gelir. Hiç kimsenin hesap edemediği Mavi Daireler ise artık sıkışmadan çıkıldığını ve patlamanın gerçekleştiğini haber verir.
Mr.Carter, gri bir çarpı işaretinden sonra ilk griye kadar beklemenizi ve momentum yönünde bir pozisyon almanızı önerir (örneğin, momentum değeri sıfırın üstünde ise, rahat olun). Momentum değiştiğinde pozisyondan çıkın (artırma veya azaltma, bunu o bir renk değişikliği ile belirtilir). Bu algoritmada ben, ADX ve WaveTrend gibi ek bir gösterge kullanarak iyi giriş noktalarıelde etmeye çalıştım. Histogramı çizmek için ise Linear Regresyon tabanlı farklı bir yöntem kullandım. Mr.Carter basit bir momentum göstergesi kullanır. Göstergeye algoritmik işlemlerde optimizasyon yapabilmeniz için strateji, alrmlar ve sinyaller eklenmiştir.
Özetle bu algoritma ek 4-5 göstergenin harmanlandığı sıkı bir algoritmadır. Herkese Kolaylıklar dilerim...
S&P Bear Warning IndicatorTHIS SCRIPT HAS BEEN BUILT TO BE USED AS A S&P500 SPY CRASH INDICATOR ON A DAILY TIME FRAME (should not be used as a strategy).
THIS SCRIPT HAS BEEN BUILT AS A STRATEGY FOR VISUALIZATION PURPOSES ONLY AND HAS NOT BEEN OPTIMIZED FOR PROFIT.
The script has been built to show as a lower indicator and also gives visual SELL signal on top when conditions are met. BARE IN MIND NO STOP LOSS, NOR ADVANCED EXIT STRATEGY HAS BEEN BUILT.
As well as the chart SELL signal an alert option has also been built into this script.
The script utilizes a VIX indicator (maroon line) and 50 period Momentum (blue line) and Danger/No trade zone(pink shading).
When the Momentum line crosses down across the VIX this is a sell off but in order to only signal major sell offs the SELL signal only triggers if the momentum continues down through the danger zone.
A SELL signal could be given earlier by removing the need to wait for momentum to continue down through the Danger Zone however this is designed only to catch major market weakness not small sell offs.
As you can see from the picture between the big October 2018 and March 2020 market declines only 2 additional SELLS were triggered.
To use this indicator to identify ideal buying then you should only buy when Momentum line is crossed above the VIX and the Momentum line is above the Danger Zone (ideally 3 - 5 days above danger zone)
TRIX strategy (lirshah)TRIX is an indicator that combines trend with momentum. The triple smoothed moving average covers the trend, while the 1-period percentage change measures momentum. In this regard, TRIX is similar to MACD and PPO. The standard setting for TRIX is 15 for the triple smoothed EMA and 9 for the signal line.
this strategy gives signals according to TRIX plot movement and has good resaults on xbtusd,btcusd, ethusd ,and ...
Algoway V4.2📌 Algoway V4.2 — Multi-layered Strategy Powered by ADX, MACD & PSO
Overview
Algoway V4.2 is a layered algorithmic strategy designed for volatility-rich assets like cryptocurrencies. While some core components (such as PSO, MACD, and ADX oscillators) are adapted from known indicator models, the original logic, state tracking, and Candle Strength Oscillator (CSO) are fully custom-developed.
This strategy is not a simple combination of tools — it implements a conditional entry-exit logic system based on ADX zone transitions, momentum structure, and MACD/PSO signal synchronization, enhanced by custom-built CSO filtering.
🧠 Key Modules and How They Work Together
PSO (Premium Stochastic Oscillator)
Used to confirm local oversold/overbought pressure. Acts as a directional filter.
MACD (Normalized)
Volatility-normalized MACD values allow consistent signal detection even on volatile pairs. It triggers entries when momentum begins shifting.
ADX Zonal Logic
Divides the market into Range / MidRange / Trend Peak zones. Entries are allowed only under specific transitions — e.g., long entries only in yellow (low volatility) zones or in trend climax zones under certain pullbacks.
CSO (Candle Strength Oscillator) — Custom Module
Designed to measure real candle momentum and price structure consistency. It avoids false breakouts and filters trend fatigue.
🔁 How Logic Works
Strategy maintains state variables to track entry type and zone.
Exit conditions depend on the entry origin: entries from "Range" exit in "Peak", while "Peak" entries exit during pullbacks or mid-strength trend reversals.
Additional logic prevents entries when signals are not aligned across modules, minimizing noise.
Optional CSO module acts as a final microstructure confirmation before executing MACD-based midpoint entries.
📊 Example Parameters (for 5M crypto scalping)
Each module is tuned to respond to 5-minute crypto volatility:
Stochastic: fast response, tight thresholds
MACD: shortened EMAs, normalized
ADX: traditional smoothing, custom thresholds for zone switching
CSO: candle-based dynamic filter with visual zone mapping
🧪 Conclusion
Algoway V4.2 is not a script merger — it is a custom logic engine using familiar technical components but governed by a proprietary decision model, with additional filters and dynamic variable tracking.
It’s suitable for scalping or swing setups, and the internal logic is optimized for real trading conditions, not just visual backtests.
Antony.N4A -NQ ORB Quartile Str v6.3Antony.N4A – NQ ORB Quartile Strategy v6.3
A precision-engineered intraday breakout system built for the Nasdaq futures market, combining the Opening Range Breakout (ORB) logic with dynamic standard deviation targets, structural filters, and multi-layer risk management.
🧠 Key Features
Opening Range Breakout (ORB):
Automatically defines a breakout window (default: 09:30–09:45) and triggers entries when price breaks the high or low of that range.
Standard Deviation Profit Targets:
Supports SD0.5, SD1.0, SD1.5, and SD2.0 targets relative to the ORB range.
EMA Filtering (200-period):
Filters trades based on EMA direction and price position to validate breakout direction and avoid false entries.
Range Filtering:
Detects directional bias and volatility trends using smoothed range logic.
Momentum Triggering:
Validates breakout momentum and allows entries when directional momentum is positive and increasing.
⚙️ User Inputs
ORB Settings: Timeframe, session, and timezone customization
Entry Window: Define when trades are allowed to trigger
Day Filters: Enable/disable trading by weekday
SD Targets: Configure exit % and active levels (SD0.5 – SD2.0)
EMA Filter & Sensitivity
Cross Filter (Anti-chop logic)
Range Filter Parameters
Visual Toggles: ORB range, SD levels, EMA clouds
🎯 Trade Management Rules
Entry:
Triggered at the close of a 5-minute candle confirming a breakout of the ORB range.
Stop Loss:
Defined by structural invalidation (quartile boundaries & mid-range buffers).
Take Profit Strategy:
75% closed at SD1.0 level
Remaining 25% trailed to further SD2 target
SL is moved to breakeven after partial exit
Execution Controls:
No pyramiding
No re-entries (cooldown enforced)
🔧 Trading Modes
✅ Safe Mode
EMA Filter: Enabled
EMA Sensitivity: 19
Range Filter: Disabled
Ideal for conservative setups and reduced noise environments
🔥 Aggressive Mode
EMA Filter: Enabled
EMA Sensitivity: 5
Range Filter: Disabled
Suited for high-frequency setups and faster breakouts
📊 Backtest Performance (7-Month Sample)
Safe Mode:
Win Rate: 66%
Total Trades: 29
Net PnL: +21.79R (~$4,357 with R = $200)
Max Red Days: 3
Max Drawdown: -$663
Best Month: +9R, Worst Month: -2R
Aggressive Mode:
Win Rate: 63%
Total Trades: 52
Net PnL: +30R (~$6,080)
Max Red Days: 6
Max Drawdown: -$1,357
Best Month: +12R, Worst Month: -3.2R
👨💻 Developed by Antony.N4A
This tool is crafted for strategic intraday traders, system developers, and backtesters.
For access, customization, or licensing options, contact the developer directly.
Protected script. Redistribution or reuse without permission is prohibited.
Advanced Holy Grail Strategy with filtersAdvanced Holy Grail Strategy with Filters
This strategy is a robust trend-trading system designed for TradingView, leveraging a unique combination of momentum, volatility, volume, and institutional pivot filters to maximize high-probability entries and exits.
Key Features:
Multi-Timeframe MACD & RSI Filters:
Uses MACD and RSI on user-selected timeframes for advanced momentum confirmation. Long trades require both bullish MACD and RSI above 50; short trades require bearish MACD and RSI below 40.
Camarilla Pivots Integration:
Filters entries based on price location relative to Camarilla R3 (for longs) and S3 (for shorts), helping to align trades with institutional-level support/resistance.
Volume Filter:
Confirms trades only when volume exceeds its 20-bar simple moving average, adding a participation/confirmation filter.
Fake Rally Detection:
Identifies and visually marks “fake rallies” (sudden moves exceeding a configurable ATR-based threshold) to help traders avoid chasing unsustainable moves.
Configurable Cooldown:
Prevents overtrading by spacing out entries.
Intelligent Exits:
Uses both RSI and MACD momentum shifts for closing trades, aiming to capture larger trend moves while protecting gains.
Visuals & Alerts:
Plots fake rally bars (FR) directly on the chart for both long and short scenarios.
Customizable alerts for entries and exits (long, short, close), ready for automation or notifications.
Customizable Inputs:
User can configure MACD, RSI, ATR, fake rally threshold, and volume filter parameters, as well as MACD and RSI timeframes.
Use Case:
Ideal for traders seeking a confluence-based system that filters out weak or risky setups, with added institutional logic and protection against news-driven price spikes or “fakeouts.”
Disclaimer: No strategy is guaranteed. Test thoroughly before live trading. Use position sizing and risk management at all times.
Smart AI Reversal Hunter🧠 Smart AI Reversal Hunter: Precision Trading with Adaptive Intelligence
In the fast-moving world of technical trading, reacting swiftly isn’t enough—you must adapt intelligently. Enter the Smart AI Reversal Hunter, a next-generation trading strategy engineered to identify key market reversals with surgical accuracy, powered by adaptive volatility logic, multi-timeframe awareness, and a deep understanding of market structure.
Whether you're a scalper, swing trader, or systems developer, this strategy offers a powerful edge—filtering out market noise and zeroing in on high-conviction turning points without emotional bias.
________________________________________
🚀 Why Smart AI Reversal Hunter Stands Out
📈 Built for Turning Points
This strategy excels at catching early reversals, allowing you to enter positions before the crowd, with smart confirmation from momentum, fractals, and volume surges.
🧠 Adaptive Intelligence at the Core
At the heart of the system lies a dynamic trend engine that automatically recalibrates itself based on prevailing volatility. It slows down in quiet markets and speeds up in wild ones—mimicking how a human would adjust instinctively, but with mathematical consistency.
🧩 Multi-Layered Filtering
The strategy doesn’t rely on a single signal. Instead, it layers multiple confirmation systems to validate each trade:
Directional momentum
Breakout fractal structure
Volatility regime analysis
Volume confirmation
Macro-trend alignment from a higher timeframe
📊 Built-In Visual Dashboard
A sleek diagnostics panel sits quietly in the corner, showing you all the internal metrics—volatility state, momentum shifts, higher timeframe bias, and volume strength—so you’re never guessing.
________________________________________
🔍 Technical Description
📌 Core Engine: Adaptive Reversal Detector
Based on a custom smoothed trend indicator with triple-weighted filtering logic (a proprietary formula deliberately concealed here for uniqueness).
The length of this engine adapts to market volatility using a real-time ATR-to-SMA ratio, then clamps the value between minimum and maximum bounds to prevent overfitting.
This ensures the trend detector is neither too sluggish in explosive markets nor too reactive during sideways zones.
⚙️ Entry Logic
Bullish Entry: Triggered when the adaptive trend line crosses above its own historical value, alongside:
Positive momentum (Rate of Change > 0)
Price above recent fractal high
Price above lower Keltner Channel boundary
Not in a low-volatility regime
Higher timeframe confirming a bullish bias
Current volume exceeding average volume × multiplier
Bearish Entry: Symmetric to the above, in reverse.
🧰 Customization Tools
Toggle each filter (momentum, fractals, volume, etc.) individually
Choose between “Only Long”, “Only Short”, or “Long & Short” trading styles
Adjustable timeframes for higher-timeframe confirmation
Reversible volume strength criteria
📈 Exit Logic
Longs are closed on bearish signals (and vice versa), with optional logic for one-sided trading.
________________________________________
📌 Final Thoughts
In an era of overcomplicated indicators and noise-heavy signals, the Smart AI Reversal Hunter brings clarity and logic to the chart. It doesn’t chase candles. It listens, adapts, and then strikes with conviction.
Whether you're automating your trades or visually analyzing reversals, this strategy equips you with everything needed to stay ahead of the curve—and let your strategy think before it trades.
⚠️ Safety & Disclaimer Notice
The Smart AI Reversal Hunter strategy is designed for educational and research purposes only. While every effort has been made to optimize its logic for identifying potential market reversals, past performance is not indicative of future results.
Please keep the following safety points in mind before using this or any trading strategy:
📌 Not Financial Advice
This script does not constitute financial, investment, or trading advice. Always perform your own due diligence.
📌 No Guaranteed Profits
Markets are inherently uncertain. This strategy uses probabilistic logic—not prediction. Losses are possible, and trading carries risk.
📌 Consult a Professional Advisor
Before taking any live positions, especially with real capital, consult with a certified financial or technical advisor who understands your risk profile and financial goals.
📌 Test Before You Trade
Always backtest thoroughly and paper trade in real-time market conditions before deploying on live accounts.
📌 Understand the Logic
Blindly using automated strategies without understanding their conditions can lead to significant loss. Read the code, understand the filters, and adapt to your own trading style if necessary.
Trend Surge with Pullback FilterTrend Surge with Pullback Filter
Overview
Trend Surge with Pullback Filter is a price action-based strategy designed to enter strong trends not at the breakout, but at the first controlled pullback after a surge. It filters out noise by requiring momentum confirmation and low volatility conditions, aiming for better entry prices and reduced risk exposure.
How It Works
A strong upward trend is identified when the Rate of Change (ROC) exceeds a defined percentage (e.g., 2%).
Instead of jumping into the trend immediately, the strategy waits for a pullback: the price must drop at least 1% below its recent high (over the past 3 candles).
A low volatility environment is also required for entry — measured using ATR being below its 20-period average multiplied by a safety factor.
If all three conditions are met (trend + pullback + quiet volatility), the system enters a long position.
The trade is managed using a dynamic ATR-based stop-loss and a take-profit at 2x ATR.
An automatic exit occurs after 30 bars if neither SL nor TP is hit.
Key Features
- Momentum-triggered trend detection via ROC
- Smart pullback filter avoids overbought entries
- Volatility-based filter to eliminate noise and choppy conditions
- Dynamic risk-reward ratio with ATR-driven exit logic
- Time-limited exposure using bar-based exit
Parameter Explanation
ROC Length (10): Looks for short-term price surges
ROC Threshold (2.0%): Trend is considered valid if price increased more than 2%
Pullback Lookback (3): Checks last 3 candles for price retracement
Minimum Pullback % (1.0%): Entry only if price pulled back at least 1%
ATR Length (14): Measures current volatility
Low Volatility Multiplier (1.2): ATR must be below this multiple of its 20-period average
Risk-Reward (2.0): Target is set at 2x the stop-loss distance
Max Bars (30): Trade is closed automatically after 30 bars
Originality Statement
This strategy doesn’t enter at the trend start, unlike many momentum bots. Instead, it waits for the first market hesitation — a minor pullback under low volatility — before entering. This logic mimics how real traders often wait for a better entry after a breakout, avoiding emotional overbought buys. The combined use of ROC, dynamic pullback detection, and ATR-based environment filters makes it both practical and original for real-world trading.
Disclaimer
This strategy is intended for educational and research purposes. Backtest thoroughly and understand the logic before using with real capital.
Gelişmiş Al/Sat Stratejisi + Break-Even SatışStrategy Name: Advanced Buy/Sell Strategy (HMA + VWMA + TSI + Break-Even + Trailing Stop)
🎯 Strategy Objective:
This strategy aims to maximize performance in highly volatile markets (such as crypto) by combining trend-based entries, momentum confirmations, volume-backed filtering, and automated position protection mechanisms.
⚙️ Indicators Used and Their Role:
HMA (Hull Moving Average):
Detects price trends with minimal lag.
Trend direction is determined through the crossover of short and long HMA.
VWMA (Volume Weighted Moving Average):
Gives more weight to prices with higher volume.
Confirms whether price action is supported by strong trading activity.
TSI (True Strength Index):
Measures the strength and direction of price movement.
Ideal for detecting momentum-based trade entries.
✅ Buy Signal Conditions:
A buy signal is generated only when all 4 of the following conditions are met:
Short HMA crosses above long HMA (bullish trend)
Price is above VWMA (volume-backed upward move)
Current volume is at least 30% higher than its average
TSI is positive and above threshold (strong momentum confirmation)
❌ Sell Signal Conditions:
A sell signal is triggered under either of the two scenarios:
Any 3 out of the 4 conditions from above are met (trend weakening or reversing)
The break-even condition is met (price returns to entry level after profit)
🛡️ Break-Even Exit Logic:
After entering a long position, if the price rises and then returns to the original entry level, the strategy will exit the position automatically.
This avoids turning profitable trades into losses.
The break-even level is reset with each new entry.
📉 Trailing Stop Logic:
A percentage-based trailing stop (e.g., 2%) is applied.
The stop-loss level moves upward as the price rises.
If the price reverses and drops by that trailing amount, the position is closed.
This system locks in profits and eliminates the need for manual exit decisions.
📊 Why This Strategy?
Combines trend direction, volume validation, and momentum strength
Filters out many false signals in noisy markets
Prevents overtrading by blocking signal repetition
Protects active positions with automated break-even and trailing mechanisms
Intraday Trading Hit and Run# Strategy Overview
This is a short-term trading system designed for quick entries/exits (intraday). It uses multiple technical indicators to identify momentum trades in the direction of the trend, with built-in risk management through trailing stops.
# Main Components
1. Trend Filter
Uses two EMAs (10-period "fast" blue line and 100-period "slow" red line)
Only trades when:
Long: Price AND fast EMA are above slow EMA
Short: Price AND fast EMA are below slow EMA
2. Main Signal
////Stochastic Oscillator (14-period):
Buy when %K line crosses above %D line
Sell when %K crosses below %D
////Trend Strength Check
Smoothed ADX indicator (5-period EMA of ADX):
Requires ADX value ≥ 25 to confirm strong trend
3. Confirmation using Volume Filter (Optional)
Checks if current volume is 1.5× greater than 20-period average volume
# Entry Rules
A trade is only taken when:
All 3 indicators agree (EMA trend, Stochastic momentum, ADX strength)
Volume filter is satisfied (if enabled)
# Exit Rules
1. Emergency Exit:
Close long if price drops below fast EMA
Close short if price rises above fast EMA
2. Trailing Stop:
Actively protects profits by moving stop-loss:
Maintains 0.1% distance from highest price (longs) or lowest price (shorts)
# Risk Management
Only use 10% of account per trade
Includes 0.04% commission cost in calculations
All trades monitored with trailing stops
# How It Operates
The strategy looks for strong, high-volume momentum moves in the direction of the established trend (as determined by EMAs). It jumps in quickly ("hit") when conditions align, then protects gains with an automatic trailing stop ("run"). Designed for fast markets where trends develop rapidly.
You can use it on 15m, 1h or 4h
G-Bot v3Overview:
G-Bot is an invite-only Pine Script tailored for traders seeking a precise, automated breakout strategy. This closed-source script integrates with 3Commas via API to execute trades seamlessly, combining classic indicators with proprietary logic to identify high-probability breakouts. G-Bot stands out by filtering market noise through a unique confluence of signals, offering adaptive risk management, and employing advanced alert deduplication to ensure reliable automation. Its purpose-built design delivers actionable signals for traders prioritizing consistency and efficiency in trending markets.
What It Does and How It Works:
G-Bot generates trade signals by evaluating four key market dimensions—trend, price action, momentum, and volume—on each 60-minute bar. The script’s core components and their roles are:
Trend Detection (EMAs): Confirms trend direction by checking if the 5-period EMA is above (bullish) or below (bearish) the 6-period EMA, with the price positioned accordingly (above the 5-period EMA for longs, below for shorts). The tight EMA pairing is optimized for the 60-minute timeframe to capture sustained trends while minimizing lag.
Price Action Trigger (Swing Highs/Lows): Identifies breakouts when the price crosses above the previous swing high (for longs) or below the previous swing low (for shorts), using a period lookback to focus on recent price pivots. This ensures entries align with significant market moves.
Momentum Filter (RSI): Validates breakouts by requiring RSI to fall within moderated ranges. These ranges avoid overbought/oversold extremes, prioritizing entries with balanced momentum to enhance trade reliability.
Volume Confirmation (3-period SMA): Requires volume to exceed its 3-period SMA, confirming that breakouts are driven by strong market participation, reducing the risk of false moves.
Risk Management (14-period ATR): Calculates stop-loss distances (ATR) and trailing stops (ATR and ATR-point offset) to align trades with current volatility, protecting capital and locking in profits.
These components work together to create a disciplined system: the EMAs establish trend context, swing breaks confirm price momentum, RSI filters for optimal entry timing, and volume ensures market conviction. This confluence minimizes false signals, a critical advantage for hourly breakout trading.
Why It’s Original and Valuable:
G-Bot’s value lies in its meticulous integration of standard indicators into a non-standard, automation-focused system. Its unique features include:
Curated Signal Confluence: Unlike generic breakout scripts that rely on single-indicator triggers (e.g., EMA crossovers), G-Bot requires simultaneous alignment of trend, price action, momentum, and volume. This multi-layered approach, reduces noise and prioritizes high-conviction setups, addressing a common flaw in simpler strategies.
Proprietary Alert Deduplication: G-Bot employs a custom mechanism to prevent redundant alerts, using a 1-second minimum gap and bar-index tracking. This ensures signals are actionable and compatible with 3Commas’ high-frequency automation, a feature not found in typical Pine Scripts.
Adaptive Position Sizing: The script calculates trade sizes based on user inputs (1-5% equity risk, max USD cap, equity threshold) and ATR-derived stop distances, ensuring positions reflect both account size and market conditions. This dynamic approach enhances risk control beyond static sizing methods.
3Commas API Optimization: G-Bot generates JSON-formatted alerts with precise position sizing and exit instructions, enabling seamless integration with 3Commas bots. This level of automation, paired with detailed Telegram alerts for monitoring, streamlines the trading process.
Visual Clarity: On-chart visuals—green triangles for long entries, red triangles for shorts, orange/teal lines for swing levels, yellow circles for price crosses—provide immediate insight into signal triggers, allowing traders to validate setups without accessing the code.
G-Bot is not a repackaging of public code but a specialized tool that transforms familiar indicators into a robust, automated breakout system. Its originality lies in the synergy of its components, proprietary alert handling, and trader-centric automation, justifying its invite-only status.
How to Use:
Setup: Apply G-Bot to BITGET’s BTCUSDT.P chart on a 60-minute timeframe.
3Commas Configuration: Enter your 3Commas API Secret Key and Bot UUID in the script’s input settings to enable webhook integration.
Risk Parameters: Adjust Risk % (1-5%), Max Risk ($), and Equity Threshold ($) to align position sizing with your account and risk tolerance.
Webhook Setup: Configure 3Commas to receive JSON alerts for automated trade execution. Optionally, connect Telegram for detailed signal notifications.
Monitoring: Use on-chart visuals to track signals:
Green triangles (below bars) mark long entries; red triangles (above bars) mark shorts.
Orange lines show swing highs; teal lines show swing lows.
Yellow circles indicate price crosses; purple crosses highlight volume confirmation.
Testing: Backtest G-Bot in a demo environment to validate performance and ensure compatibility with your trading strategy.
Setup Notes : G-Bot is a single, self-contained script for BTCUSDT.P on 60-minute charts, with all features accessible via user inputs. No additional scripts or passwords are required, ensuring compliance with TradingView’s single-publication rule.
Disclaimer: Trading involves significant risks, and past performance is not indicative of future results. Thoroughly test G-Bot in a demo environment before deploying it in live markets.
Full setup support will be provided
Bober XM v2.0# ₿ober XM v2.0 Trading Bot Documentation
**Developer's Note**: While our previous Bot 1.3.1 was removed due to guideline violations, this setback only fueled our determination to create something even better. Rising from this challenge, Bober XM 2.0 emerges not just as an update, but as a complete reimagining with multi-timeframe analysis, enhanced filters, and superior adaptability. This adversity pushed us to innovate further and deliver a strategy that's smarter, more agile, and more powerful than ever before. Challenges create opportunity - welcome to Cryptobeat's finest work yet.
## !!!!You need to tune it for your own pair and timeframe and retune it periodicaly!!!!!
## Overview
The ₿ober XM v2.0 is an advanced dual-channel trading bot with multi-timeframe analysis capabilities. It integrates multiple technical indicators, customizable risk management, and advanced order execution via webhook for automated trading. The bot's distinctive feature is its separate channel systems for long and short positions, allowing for asymmetric trade strategies that adapt to different market conditions across multiple timeframes.
### Key Features
- **Multi-Timeframe Analysis**: Analyze price data across multiple timeframes simultaneously
- **Dual Channel System**: Separate parameter sets for long and short positions
- **Advanced Entry Filters**: RSI, Volatility, Volume, Bollinger Bands, and KEMAD filters
- **Machine Learning Moving Average**: Adaptive prediction-based channels
- **Multiple Entry Strategies**: Breakout, Pullback, and Mean Reversion modes
- **Risk Management**: Customizable stop-loss, take-profit, and trailing stop settings
- **Webhook Integration**: Compatible with external trading bots and platforms
### Strategy Components
| Component | Description |
|---------|-------------|
| **Dual Channel Trading** | Uses either Keltner Channels or Machine Learning Moving Average (MLMA) with separate settings for long and short positions |
| **MLMA Implementation** | Machine learning algorithm that predicts future price movements and creates adaptive bands |
| **Pivot Point SuperTrend** | Trend identification and confirmation system based on pivot points |
| **Three Entry Strategies** | Choose between Breakout, Pullback, or Mean Reversion approaches |
| **Advanced Filter System** | Multiple customizable filters with multi-timeframe support to avoid false signals |
| **Custom Exit Logic** | Exits based on OBV crossover of its moving average combined with pivot trend changes |
### Note for Novice Users
This is a fully featured real trading bot and can be tweaked for any ticker — SOL is just an example. It follows this structure:
1. **Indicator** – gives the initial signal
2. **Entry strategy** – decides when to open a trade
3. **Exit strategy** – defines when to close it
4. **Trend confirmation** – ensures the trade follows the market direction
5. **Filters** – cuts out noise and avoids weak setups
6. **Risk management** – controls losses and protects your capital
To tune it for a different pair, you'll need to start from scratch:
1. Select the timeframe (candle size)
2. Turn off all filters and trend entry/exit confirmations
3. Choose a channel type, channel source and entry strategy
4. Adjust risk parameters
5. Tune long and short settings for the channel
6. Fine-tune the Pivot Point Supertrend and Main Exit condition OBV
This will generate a lot of signals and activity on the chart. Your next task is to find the right combination of filters and settings to reduce noise and tune it for profitability.
### Default Strategy values
Default values are tuned for: Symbol BITGET:SOLUSDT.P 5min candle
Filters are off by default: Try to play with it to understand how it works
## Configuration Guide
### General Settings
| Setting | Description | Default Value |
|---------|-------------|---------------|
| **Long Positions** | Enable or disable long trades | Enabled |
| **Short Positions** | Enable or disable short trades | Enabled |
| **Risk/Reward Area** | Visual display of stop-loss and take-profit zones | Enabled |
| **Long Entry Source** | Price data used for long entry signals | hl2 (High+Low/2) |
| **Short Entry Source** | Price data used for short entry signals | hl2 (High+Low/2) |
The bot allows you to trade long positions, short positions, or both simultaneously. Each direction has its own set of parameters, allowing for fine-tuned strategies that recognize the asymmetric nature of market movements.
### Multi-Timeframe Settings
1. **Enable Multi-Timeframe Analysis**: Toggle 'Enable Multi-Timeframe Analysis' in the Multi-Timeframe Settings section
2. **Configure Timeframes**: Set appropriate higher timeframes based on your trading style:
- Timeframe 1: Default is now 15 minutes (intraday confirmation)
- Timeframe 2: Default is 4 hours (trend direction)
3. **Select Sources per Indicator**: For each indicator (RSI, KEMAD, Volume, etc.), choose:
- The desired timeframe (current, mtf1, or mtf2)
- The appropriate price type (open, high, low, close, hl2, hlc3, ohlc4)
### Entry Strategies
- **Breakout**: Enter when price breaks above/below the channel
- **Pullback**: Enter when price pulls back to the channel
- **Mean Reversion**: Enter when price is extended from the channel
You can enable different strategies for long and short positions.
### Core Components
### Risk Management
- **Position Size**: Control risk with percentage-based position sizing
- **Stop Loss Options**:
- Fixed: Set a specific price or percentage from entry
- ATR-based: Dynamic stop-loss based on market volatility
- Swing: Uses recent swing high/low points
- **Take Profit**: Multiple targets with percentage allocation
- **Trailing Stop**: Dynamic stop that follows price movement
## Advanced Usage Strategies
### Moving Average Type Selection Guide
- **SMA**: More stable in choppy markets, good for higher timeframes
- **EMA/WMA**: More responsive to recent price changes, better for entry signals
- **VWMA**: Adds volume weighting for stronger trends, use with Volume filter
- **HMA**: Balance between responsiveness and noise reduction, good for volatile markets
### Multi-Timeframe Strategy Approaches
- **Trend Confirmation**: Use higher timeframe RSI (mtf2) for overall trend, current timeframe for entries
- **Entry Precision**: Use KEMAD on current timeframe with volume filter on mtf1
- **False Signal Reduction**: Apply RSI filter on mtf1 with strict KEMAD settings
### Market Condition Optimization
| Market Condition | Recommended Settings |
|------------------|----------------------|
| **Trending** | Use Breakout strategy with KEMAD filter on higher timeframe |
| **Ranging** | Use Mean Reversion with strict RSI filter (mtf1) |
| **Volatile** | Increase ATR multipliers, use HMA for moving averages |
| **Low Volatility** | Decrease noise parameters, use pullback strategy |
## Webhook Integration
The strategy features a professional webhook system that allows direct connectivity to your exchange or trading platform of choice through third-party services like 3commas, Alertatron, or Autoview.
The webhook payload includes all necessary parameters for automated execution:
- Entry price and direction
- Stop loss and take profit levels
- Position size
- Custom identifier for webhook routing
## Performance Optimization Tips
1. **Start with Defaults**: Begin with the default settings for your timeframe before customizing
2. **Adjust One Component at a Time**: Make incremental changes and test the impact
3. **Match MA Types to Market Conditions**: Use appropriate moving average types based on the Market Condition Optimization table
4. **Timeframe Synergy**: Create logical relationships between timeframes (e.g., 5min chart with 15min and 4h higher timeframes)
5. **Periodic Retuning**: Markets evolve - regularly review and adjust parameters
## Common Setups
### Crypto Trend-Following
- MLMA with EMA or HMA
- Higher RSI thresholds (75/25)
- KEMAD filter on mtf1
- Breakout entry strategy
### Stock Swing Trading
- MLMA with SMA for stability
- Volume filter with higher threshold
- KEMAD with increased filter order
- Pullback entry strategy
### Forex Scalping
- MLMA with WMA and lower noise parameter
- RSI filter on current timeframe
- Use highest timeframe for trend direction only
- Mean Reversion strategy
## Webhook Configuration
- **Benefits**:
- Automated trade execution without manual intervention
- Immediate response to market conditions
- Consistent execution of your strategy
- **Implementation Notes**:
- Requires proper webhook configuration on your exchange or platform
- Test thoroughly with small position sizes before full deployment
- Consider latency between signal generation and execution
### Backtesting Period
Define a specific historical period to evaluate the bot's performance:
| Setting | Description | Default Value |
|---------|-------------|---------------|
| **Start Date** | Beginning of backtest period | January 1, 2025 |
| **End Date** | End of backtest period | December 31, 2026 |
- **Best Practice**: Test across different market conditions (bull markets, bear markets, sideways markets)
- **Limitation**: Past performance doesn't guarantee future results
## Entry and Exit Strategies
### Dual-Channel System
A key innovation of the Bober XM is its dual-channel approach:
- **Independent Parameters**: Each trade direction has its own channel settings
- **Asymmetric Trading**: Recognizes that markets often behave differently in uptrends versus downtrends
- **Optimized Performance**: Fine-tune settings for both bullish and bearish conditions
This approach allows the bot to adapt to the natural asymmetry of markets, where uptrends often develop gradually while downtrends can be sharp and sudden.
### Channel Types
#### 1. Keltner Channels
Traditional volatility-based channels using EMA and ATR:
| Setting | Long Default | Short Default |
|---------|--------------|---------------|
| **EMA Length** | 37 | 20 |
| **ATR Length** | 13 | 17 |
| **Multiplier** | 1.4 | 1.9 |
| **Source** | low | high |
- **Strengths**:
- Reliable in trending markets
- Less prone to whipsaws than Bollinger Bands
- Clear visual representation of volatility
- **Weaknesses**:
- Can lag during rapid market changes
- Less effective in choppy, non-trending markets
#### 2. Machine Learning Moving Average (MLMA)
Advanced predictive model using kernel regression (RBF kernel):
| Setting | Description | Options |
|---------|-------------|--------|
| **Source MA** | Price data used for MA calculations | Any price source (low/high/close/etc.) |
| **Moving Average Type** | Type of MA algorithm for calculations | SMA, EMA, WMA, VWMA, RMA, HMA |
| **Trend Source** | Price data used for trend determination | Any price source (close default) |
| **Window Size** | Historical window for MLMA calculations | 5+ (default: 16) |
| **Forecast Length** | Number of bars to forecast ahead | 1+ (default: 3) |
| **Noise Parameter** | Controls smoothness of prediction | 0.01+ (default: ~0.43) |
| **Band Multiplier** | Multiplier for channel width | 0.1+ (default: 0.5-0.6) |
- **Strengths**:
- Predictive rather than reactive
- Adapts quickly to changing market conditions
- Better at identifying trend reversals early
- **Weaknesses**:
- More computationally intensive
- Requires careful parameter tuning
- Can be sensitive to input data quality
### Entry Strategies
| Strategy | Description | Ideal Market Conditions |
|----------|-------------|-------------------------|
| **Breakout** | Enters when price breaks through channel bands, indicating strong momentum | High volatility, emerging trends |
| **Pullback** | Enters when price retraces to the middle band after testing extremes | Established trends with regular pullbacks |
| **Mean Reversion** | Enters at channel extremes, betting on a return to the mean | Range-bound or oscillating markets |
#### Breakout Strategy (Default)
- **Implementation**: Enters long when price crosses above the upper band, short when price crosses below the lower band
- **Strengths**: Captures strong momentum moves, performs well in trending markets
- **Weaknesses**: Can lead to late entries, higher risk of false breakouts
- **Optimization Tips**:
- Increase channel multiplier for fewer but more reliable signals
- Combine with volume confirmation for better accuracy
#### Pullback Strategy
- **Implementation**: Enters long when price pulls back to middle band during uptrend, short during downtrend pullbacks
- **Strengths**: Better entry prices, lower risk, higher probability setups
- **Weaknesses**: Misses some strong moves, requires clear trend identification
- **Optimization Tips**:
- Use with trend filters to confirm overall direction
- Adjust middle band calculation for market volatility
#### Mean Reversion Strategy
- **Implementation**: Enters long at lower band, short at upper band, expecting price to revert to the mean
- **Strengths**: Excellent entry prices, works well in ranging markets
- **Weaknesses**: Dangerous in strong trends, can lead to fighting the trend
- **Optimization Tips**:
- Implement strong trend filters to avoid counter-trend trades
- Use smaller position sizes due to higher risk nature
### Confirmation Indicators
#### Pivot Point SuperTrend
Combines pivot points with ATR-based SuperTrend for trend confirmation:
| Setting | Default Value |
|---------|---------------|
| **Pivot Period** | 25 |
| **ATR Factor** | 2.2 |
| **ATR Period** | 41 |
- **Function**: Identifies significant market turning points and confirms trend direction
- **Implementation**: Requires price to respect the SuperTrend line for trade confirmation
#### Weighted Moving Average (WMA)
Provides additional confirmation layer for entries:
| Setting | Default Value |
|---------|---------------|
| **Period** | 15 |
| **Source** | ohlc4 (average of Open, High, Low, Close) |
- **Function**: Confirms trend direction and filters out low-quality signals
- **Implementation**: Price must be above WMA for longs, below for shorts
### Exit Strategies
#### On-Balance Volume (OBV) Based Exits
Uses volume flow to identify potential reversals:
| Setting | Default Value |
|---------|---------------|
| **Source** | ohlc4 |
| **MA Type** | HMA (Options: SMA, EMA, WMA, RMA, VWMA, HMA) |
| **Period** | 22 |
- **Function**: Identifies divergences between price and volume to exit before reversals
- **Implementation**: Exits when OBV crosses its moving average in the opposite direction
- **Customizable MA Type**: Different MA types provide varying sensitivity to OBV changes:
- **SMA**: Traditional simple average, equal weight to all periods
- **EMA**: More weight to recent data, responds faster to price changes
- **WMA**: Weighted by recency, smoother than EMA
- **RMA**: Similar to EMA but smoother, reduces noise
- **VWMA**: Factors in volume, helpful for OBV confirmation
- **HMA**: Reduces lag while maintaining smoothness (default)
#### ADX Exit Confirmation
Uses Average Directional Index to confirm trend exhaustion:
| Setting | Default Value |
|---------|---------------|
| **ADX Threshold** | 35 |
| **ADX Smoothing** | 60 |
| **DI Length** | 60 |
- **Function**: Confirms trend weakness before exiting positions
- **Implementation**: Requires ADX to drop below threshold or DI lines to cross
## Filter System
### RSI Filter
- **Function**: Controls entries based on momentum conditions
- **Parameters**:
- Period: 15 (default)
- Overbought level: 71
- Oversold level: 23
- Multi-timeframe support: Current, MTF1 (15min), or MTF2 (4h)
- Customizable price source (open, high, low, close, hl2, hlc3, ohlc4)
- **Implementation**: Blocks long entries when RSI > overbought, short entries when RSI < oversold
### Volatility Filter
- **Function**: Prevents trading during excessive market volatility
- **Parameters**:
- Measure: ATR (Average True Range)
- Period: Customizable (default varies by timeframe)
- Threshold: Adjustable multiplier
- Multi-timeframe support
- Customizable price source
- **Implementation**: Blocks trades when current volatility exceeds threshold × average volatility
### Volume Filter
- **Function**: Ensures adequate market liquidity for trades
- **Parameters**:
- Threshold: 0.4× average (default)
- Measurement period: 5 (default)
- Moving average type: Customizable (HMA default)
- Multi-timeframe support
- Customizable price source
- **Implementation**: Requires current volume to exceed threshold × average volume
### Bollinger Bands Filter
- **Function**: Controls entries based on price relative to statistical boundaries
- **Parameters**:
- Period: Customizable
- Standard deviation multiplier: Adjustable
- Moving average type: Customizable
- Multi-timeframe support
- Customizable price source
- **Implementation**: Can require price to be within bands or breaking out of bands depending on strategy
### KEMAD Filter (Kalman EMA Distance)
- **Function**: Advanced trend confirmation using Kalman filter algorithm
- **Parameters**:
- Process Noise: 0.35 (controls smoothness)
- Measurement Noise: 24 (controls reactivity)
- Filter Order: 6 (higher = more smoothing)
- ATR Length: 8 (for bandwidth calculation)
- Upper Multiplier: 2.0 (for long signals)
- Lower Multiplier: 2.7 (for short signals)
- Multi-timeframe support
- Customizable visual indicators
- **Implementation**: Generates signals based on price position relative to Kalman-filtered EMA bands
## Risk Management System
### Position Sizing
Automatically calculates position size based on account equity and risk parameters:
| Setting | Default Value |
|---------|---------------|
| **Risk % of Equity** | 50% |
- **Implementation**:
- Position size = (Account equity × Risk %) ÷ (Entry price × Stop loss distance)
- Adjusts automatically based on volatility and stop placement
- **Best Practices**:
- Start with lower risk percentages (1-2%) until strategy is proven
- Consider reducing risk during high volatility periods
### Stop-Loss Methods
Multiple stop-loss calculation methods with separate configurations for long and short positions:
| Method | Description | Configuration |
|--------|-------------|---------------|
| **ATR-Based** | Dynamic stops based on volatility | ATR Period: 14, Multiplier: 2.0 |
| **Percentage** | Fixed percentage from entry | Long: 1.5%, Short: 1.5% |
| **PIP-Based** | Fixed currency unit distance | 10.0 pips |
- **Implementation Notes**:
- ATR-based stops adapt to changing market volatility
- Percentage stops maintain consistent risk exposure
- PIP-based stops provide precise control in stable markets
### Trailing Stops
Locks in profits by adjusting stop-loss levels as price moves favorably:
| Setting | Default Value |
|---------|---------------|
| **Stop-Loss %** | 1.5% |
| **Activation Threshold** | 2.1% |
| **Trailing Distance** | 1.4% |
- **Implementation**:
- Initial stop remains fixed until profit reaches activation threshold
- Once activated, stop follows price at specified distance
- Locks in profit while allowing room for normal price fluctuations
### Risk-Reward Parameters
Defines the relationship between risk and potential reward:
| Setting | Default Value |
|---------|---------------|
| **Risk-Reward Ratio** | 1.4 |
| **Take Profit %** | 2.4% |
| **Stop-Loss %** | 1.5% |
- **Implementation**:
- Take profit distance = Stop loss distance × Risk-reward ratio
- Higher ratios require fewer winning trades for profitability
- Lower ratios increase win rate but reduce average profit
### Filter Combinations
The strategy allows for simultaneous application of multiple filters:
- **Recommended Combinations**:
- Trending markets: RSI + KEMAD filters
- Ranging markets: Bollinger Bands + Volatility filters
- All markets: Volume filter as minimum requirement
- **Performance Impact**:
- Each additional filter reduces the number of trades
- Quality of remaining trades typically improves
- Optimal combination depends on market conditions and timeframe
### Multi-Timeframe Filter Applications
| Filter Type | Current Timeframe | MTF1 (15min) | MTF2 (4h) |
|-------------|-------------------|-------------|------------|
| RSI | Quick entries/exits | Intraday trend | Overall trend |
| Volume | Immediate liquidity | Sustained support | Market participation |
| Volatility | Entry timing | Short-term risk | Regime changes |
| KEMAD | Precise signals | Trend confirmation | Major reversals |
## Visual Indicators and Chart Analysis
The bot provides comprehensive visual feedback on the chart:
- **Channel Bands**: Keltner or MLMA bands showing potential support/resistance
- **Pivot SuperTrend**: Colored line showing trend direction and potential reversal points
- **Entry/Exit Markers**: Annotations showing actual trade entries and exits
- **Risk/Reward Zones**: Visual representation of stop-loss and take-profit levels
These visual elements allow for:
- Real-time strategy assessment
- Post-trade analysis and optimization
- Educational understanding of the strategy logic
## Implementation Guide
### TradingView Setup
1. Load the script in TradingView Pine Editor
2. Apply to your preferred chart and timeframe
3. Adjust parameters based on your trading preferences
4. Enable alerts for webhook integration
### Webhook Integration
1. Configure webhook URL in TradingView alerts
2. Set up receiving endpoint on your trading platform
3. Define message format matching the bot's output
4. Test with small position sizes before full deployment
### Optimization Process
1. Backtest across different market conditions
2. Identify parameter sensitivity through multiple tests
3. Focus on risk management parameters first
4. Fine-tune entry/exit conditions based on performance metrics
5. Validate with out-of-sample testing
## Performance Considerations
### Strengths
- Adaptability to different market conditions through dual channels
- Multiple layers of confirmation reducing false signals
- Comprehensive risk management protecting capital
- Machine learning integration for predictive edge
### Limitations
- Complex parameter set requiring careful optimization
- Potential over-optimization risk with so many variables
- Computational intensity of MLMA calculations
- Dependency on proper webhook configuration for execution
### Best Practices
- Start with conservative risk settings (1-2% of equity)
- Test thoroughly in demo environment before live trading
- Monitor performance regularly and adjust parameters
- Consider market regime changes when evaluating results
## Conclusion
The ₿ober XM v2.0 represents a significant evolution in trading strategy design, combining traditional technical analysis with machine learning elements and multi-timeframe analysis. The core strength of this system lies in its adaptability and recognition of market asymmetry.
### Market Asymmetry and Adaptive Approach
The strategy acknowledges a fundamental truth about markets: bullish and bearish phases behave differently and should be treated as distinct environments. The dual-channel system with separate parameters for long and short positions directly addresses this asymmetry, allowing for optimized performance regardless of market direction.
### Targeted Backtesting Philosophy
It's counterproductive to run backtests over excessively long periods. Markets evolve continuously, and strategies that worked in previous market regimes may be ineffective in current conditions. Instead:
- Test specific market phases separately (bull markets, bear markets, range-bound periods)
- Regularly re-optimize parameters as market conditions change
- Focus on recent performance with higher weight than historical results
- Test across multiple timeframes to ensure robustness
### Multi-Timeframe Analysis as a Game-Changer
The integration of multi-timeframe analysis fundamentally transforms the strategy's effectiveness:
- **Increased Safety**: Higher timeframe confirmations reduce false signals and improve trade quality
- **Context Awareness**: Decisions made with awareness of larger trends reduce adverse entries
- **Adaptable Precision**: Apply strict filters on lower timeframes while maintaining awareness of broader conditions
- **Reduced Noise**: Higher timeframe data naturally filters market noise that can trigger poor entries
The ₿ober XM v2.0 provides traders with a framework that acknowledges market complexity while offering practical tools to navigate it. With proper setup, realistic expectations, and attention to changing market conditions, it delivers a sophisticated approach to systematic trading that can be continuously refined and optimized.
Parabolic RSI Strategy [ChartPrime × PineIndicators]This strategy combines the strengths of the Relative Strength Index (RSI) with a Parabolic SAR logic applied directly to RSI values.
Full credit to ChartPrime for the original concept and indicator, licensed under the MPL 2.0.
It provides clear momentum-based trade signals using an innovative method that tracks RSI trend reversals via a customized Parabolic SAR, enhancing traditional oscillator strategies with dynamic trend confirmation.
How It Works
The system overlays a Parabolic SAR on the RSI, detecting trend shifts in RSI itself rather than on price, offering early reversal insight with visual and algorithmic clarity.
Core Components
1. RSI-Based Trend Detection
Calculates RSI using a customizable length (default: 14).
Uses upper and lower thresholds (default: 70/30) for overbought/oversold zones.
2. Parabolic SAR Applied to RSI
A custom Parabolic SAR function tracks momentum within the RSI, not price.
This allows the system to capture RSI trend reversals more responsively.
Configurable SAR parameters: Start, Increment, and Maximum acceleration.
3. Signal Generation
Long Entry: Triggered when the SAR flips below the RSI line.
Short Entry: Triggered when the SAR flips above the RSI line.
Optional RSI filter ensures that:
Long entries only occur above a minimum RSI (e.g. 50).
Short entries only occur below a maximum RSI.
Built-in logic prevents new positions from being opened against trend without prior exit.
Trade Modes & Controls
Choose from:
Long Only
Short Only
Long & Short
Optional setting to reverse positions on opposite signal (instead of waiting for a flat close).
Visual Features
1. RSI Plotting with Thresholds
RSI is displayed in a dedicated pane with overbought/oversold fill zones.
Custom horizontal lines mark threshold boundaries.
2. Parabolic SAR Overlay on RSI
SAR dots color-coded for trend direction.
Visible only when enabled by user input.
3. Entry & Exit Markers
Diamonds: Mark entry points (above for shorts, below for longs).
Crosses: Mark exit points.
Strategy Strengths
Provides early momentum reversal entries without relying on price candles.
Combines oscillator and trend logic without repainting.
Works well in both trending and mean-reverting markets.
Easy to configure with fine-tuned filter options.
Recommended Use Cases
Intraday or swing traders who want to catch RSI-based reversals early.
Traders seeking smoother signals than price-based Parabolic SAR entries.
Users of RSI looking to reduce false positives via trend tracking.
Customization Options
RSI Length and Thresholds.
SAR Start, Increment, and Maximum values.
Trade Direction Mode (Long, Short, Both).
Optional RSI filter and reverse-on-signal settings.
SAR dot color customization.
Conclusion
The Parabolic RSI Strategy is an innovative, non-repainting momentum strategy that enhances RSI-based systems with trend-confirming logic using Parabolic SAR. By applying SAR logic to RSI values, this strategy offers early, visualized, and filtered entries and exits that adapt to market dynamics.
Credit to ChartPrime for the original methodology, published under MPL-2.0.
Trend Surge Wick SniperTrend Surge Wick Sniper | Non-Repainting Trend + Momentum Strategy with TP1/TP2 & Dashboard
Trend Surge Wick Sniper is a complete crypto trading strategy designed for high-precision entries, smart exits, and non-repainting execution. It combines trend slope, wick rejection, volume confirmation, and CCI momentum filters into a seamless system that works in real-time conditions — whether you're manual trading or sending alerts to multi-exchange bots.
🧩 System Architecture Overview
This is not just a mashup of indicators — each layer is tightly integrated to filter for confirmed, high-quality setups. Here’s a detailed breakdown:
📈 Trend Logic
1. McGinley Dynamic Baseline
A responsive moving average that adapts to market speed better than EMA or SMA.
Smooths price while staying close to real action, making it ideal for basing alignment or trend context.
2. Gradient Slope Filter (ATR-normalized)
Calculates the difference between current and past McGinley values, divided by ATR for normalization.
If the slope exceeds a configurable threshold, it confirms an active uptrend or downtrend.
Optional loosened sensitivity allows for more frequent but still valid trades.
🚀 Momentum Timing
3. Smoothed CCI (ZLEMA / Hull / VWMA options)
Traditional CCI is enhanced with smoothing for stability.
Signals trades only when momentum is strong and accelerating.
Optional settings let users tune how responsive or smooth they want the CCI behavior to be.
🔒 Entry Filtering & Rejection Logic
4. Wick Trap Detection
Prevents entry during manipulated candles (e.g. stop hunts, wick traps).
Measures wick-to-body ratio against a minimum body size normalized by ATR.
Only trades when the candle shows a clean body and no manipulation.
5. Price Action Filters (Optional)
Long trades require price to break above previous high (or skip this with a toggle).
Short trades require price to break below previous low (or skip this with a toggle).
Ensures you're trading only when price structure confirms the breakout.
6. McGinley Alignment (Optional)
Price must be on the correct side of the McGinley line (above for longs, below for shorts).
Ensures that trades align with baseline trend, preventing early or fading entries.
📊 Volume Logic
7. Volume Spike Detection
Confirms that a real move is underway by requiring volume to exceed a moving average by a user-defined multiplier.
Uses SMA / EMA / VWMA for customizable behavior.
Optional relative volume mode compares volume against typical volume at that same time of day.
8. Volume Trend Filter
Compares fast vs. slow EMA of the volume spike ratio.
Ensures volume is not just spiking, but also increasing overall.
Prevents trades during volume exhaustion or fading participation.
9. Volume Strength Label
Classifies each bar’s volume as: Low, Average, High, or Very High
Shown in the dashboard for context before entries.
🎯 Entry Conditions
An entry occurs when all of the following align:
✅ Trend confirmed via gradient slope
✅ Momentum confirmed via smoothed CCI
✅ No wick trap pattern
✅ Price structure & McGinley alignment (if toggled on)
✅ Volume confirms participation
✅ 1-bar cooldown since last exit
💰 TP1 & TP2 Exit System
TP1 = 50% of position closed using a limit order at a % profit (e.g., 2%)
TP2 = remaining 50% closed at a second profit level (e.g., 4%)
These are set as limit orders at the time of entry and work even on backtest.
Alerts are sent separately for TP1 and TP2 to allow bot handling of staggered exits.
🧠 Trade Logic Controls
✅ process_orders_on_close=true ensures non-repainting behavior
✅ 1-bar cooldown after any exit prevents same-bar reversals
✅ Built-in canEnter condition ensures trades are separated and clean
✅ Alerts use customizable strings for entry/exit/TP1/TP2 — ready for webhook automation
📊 Real-Time On-Chart Dashboard
Toggleable, movable dashboard shows live trading stats:
🔵 Current Position: Long / Short / Flat
🎯 Entry Price
✅ TP1 / TP2 Hit Status
📈 Trend Direction: Up / Down / Flat
🔊 Volume Strength: Low / Average / High / Very High
🎛 Size and corner are adjustable via input settings
⚠️ Designed For:
1H / 4H Crypto Trading
Manual Traders & Webhook-Connected Bots
Scalability across volatile market conditions
Full TradingView backtest compatibility (no repainting / no fake signals)
📌 Notes
You can switch CCI smoothing type, volume MA type, and other filters via the settings panel.
Default TP1/TP2 levels are set to 2% and 4%, but fully customizable.
🛡 Disclaimer
This script is for educational purposes only and not financial advice. Use with backtesting and risk management before live deployment.
Trend Harvester PRO Trend Harvester PRO – Adaptive Trend-Following Strategy for Crypto
Trend Harvester PRO is a fully systematic trend-following strategy built for cryptocurrency markets on intraday timeframes — particularly optimized for the 1-hour chart. The script combines ZLEMA-based trend tracking, momentum confirmation, and a volatility-aware filter to detect high-probability directional moves with clarity and precision.
This is not a mashup of random indicators — each component serves a specific purpose in validating trends, avoiding choppy zones, and timing entries responsibly.
🔍 Strategy Logic Overview
The core objective is to detect sustainable, real-time trends and exit with multi-stage profit targets. To do this, the script uses several layers of confirmation:
1. 📊 ZLEMA Trend Engine (Zero Lag EMA)
This is the backbone of the strategy.
ZLEMA (Zero-Lag EMA) is a moving average that minimizes lag by adjusting for past data offset.
The strategy uses a fast ZLEMA and a slow ZLEMA, combined with a slope calculation, to assess the current trend.
When:
Fast ZLEMA > Slow ZLEMA
The ZLEMA is rising (positive slope)
→ The market is considered in an uptrend.
Conversely, if:
Fast ZLEMA < Slow ZLEMA
The slope is negative
→ The market is considered in a downtrend.
This setup detects not just direction, but also whether the trend has meaningful acceleration.
2. ⚡ Momentum Confirmation
Trend direction alone isn’t enough — we also need momentum agreement.
The script calculates a smoothed Rate of Change (ROC) to evaluate if momentum supports the direction of the ZLEMA trend.
For long trades: ROC must be positive
For short trades: ROC must be negative
This prevents taking trades where price is crossing moving averages but lacks follow-through power.
3. 🌪️ Volatility Filter
Choppy markets are common in crypto. To reduce false signals:
The script compares short-term volatility (10-bar standard deviation of price changes) to longer-term volatility.
If the ratio is too high (i.e., short-term volatility is spiking), the strategy avoids entry.
This ensures trades are only taken when the market is relatively calm and directional — avoiding false breakouts.
4. 🧠 Confirmation Bars + Trend State
Signals only trigger after a certain number of consecutive bars confirm trend direction (confirmBars).
This prevents reacting to just 1 candle and requires consistent evidence of trend.
A state machine is used to track current trend status:
+1 = confirmed uptrend
-1 = confirmed downtrend
0 = neutral / no trade
This trend state changes only after all conditions are met and confirmation bars pass.
5. 🧊 Cooldown Enforcement
After a trade exits (from TP or a trend reversal), the strategy enforces a cooldown period before new entries are allowed. This:
Prevents back-to-back entries on trend flips
Reduces overtrading
Helps avoid whipsaws or same-bar reversal trades
6. 🎯 Multi-Level Take Profits (TP1 & TP2)
Once a trade is entered:
Two limit exits are set automatically:
TP1: Closes 50% of the position at a configurable profit level
TP2: Closes the remaining 50%
If the trend weakens before TP2 is reached, the position is closed early.
Both long and short trades use the same logic, with user-defined percentages.
This system allows for partial profit-taking while keeping a portion of the trade running.
7. 🧾 Built-in Dashboard
The script includes a real-time dashboard showing:
Trend direction: Bullish, Bearish, or Neutral
Whether TP1 / TP2 was hit
Entry price
If currently in a trade
How many bars the trade has been open
This helps monitor strategy performance at a glance without needing extra labels.
8. 🔔 Webhook-Compatible Alerts
The strategy includes custom alerts that can be used for:
Long and Short entries
TP1 and TP2 hits
Exiting trades
These can be integrated into automated bot systems or used manually.
🔒 Non-Repainting Logic
The strategy uses only confirmed bar data (i.e., values from closed bars).
There are no repainting indicators.
Entries and exits are placed using strategy.entry and strategy.exit on confirmed conditions.
✅ How to Use It
Apply the strategy to 1H altcoin charts (BTC, ETH, SOL, etc.).
Tune the TP percentages (longTP1Pct, longTP2Pct, etc.) based on volatility.
Use the dashboard to monitor trend state and trade progress.
Combine with additional tools (like support/resistance or volume) for higher confluence.
Use the date filter to run backtests over defined periods.
⚠️ Risk Management Notice
This strategy does not include stop losses by default. It is designed to exit based on trend reversal or take-profit limits.
Always backtest thoroughly and use realistic sizing.
Do not risk more than 5–10% of your account on any trade.
Past results do not guarantee future performance. This tool is for educational and research purposes.
🧬 What Makes This Original
Trend Harvester PRO was built from scratch with tightly integrated logic:
ZLEMA tracks early trend direction with low lag
ROC confirms momentum in the same direction
Volatility filter avoids false setups
Multi-bar confirmation and cooldown logic control trade pacing
Dual TP exits manage partial profit-taking
A live dashboard makes real-time tracking intuitive
Unlike mashups of indicators with no synergy, each component here directly supports the quality of trade decisions, and the logic is modular, transparent, and non-repainting.
Prime Trend ReactorIntroduction
Prime Trend Reactor is an advanced crypto trend-following strategy designed to deliver precision entries and exits based on a multi-factor trend consensus system.
It combines price action, adaptive moving averages, momentum oscillators, volume analysis, volatility signals, and higher timeframe trend confirmation into a non-repainting, fully systematic approach.
This strategy is original: it builds a unique trend detection matrix by blending multiple forms of price-derived signals through weighted scoring, rather than simply stacking indicators.
It is not a mashup of public indicators — it is engineered from the ground up using custom formulas and strict non-repainting design.
It is optimized for 1-hour crypto charts but can be used across any asset or timeframe.
⚙️ Core Components
Prime Trend Reactor integrates the following custom components:
1. Moving Averages System
Fast EMA (8), Medium EMA (21), Slow EMA (50), Trend EMA (200).
Detects short-term, medium-term, and long-term trend structures.
EMA alignment is scored as part of the trend consensus system.
2. Momentum Oscillators
RSI (Relative Strength Index) with Smoothing.
RMI (Relative Momentum Index) custom-calculated.
Confirms price momentum behavior aligned with trend.
3. Volume Analysis
CMF (Chaikin Money Flow) for accumulation/distribution pressure.
OBV (On Balance Volume) EMA Cross for volume flow confirmation.
4. Volatility and Price Structure
Vortex Indicator (VI+ and VI-) for trend strength and directional bias.
Mean-Extreme Price Engine blends closing price with extremes (high/low) based on user-defined ratio.
5. Structure Breakout Detection
Detects structure breaks based on highest high/lowest low pivots.
Adds weight to trend strength on fresh breakouts.
6. Higher Timeframe Confirmation (HTF)
Uses higher timeframe EMAs and close to confirm macro-trend direction.
Smartly pulls HTF data with barmerge.lookahead_off to avoid repainting.
🔥 Entry and Exit Logic
Long Entry: Triggered when multi-factor trend consensus turns strongly bullish.
Short Entry: Triggered when consensus flips strongly bearish.
Take Profits (TP1/TP2):
TP1: Partial 50% profit at small target.
TP2: Full 100% close at larger target.
Exit on Trend Reversal:
If trend consensus reverses before hitting TP2, the strategy exits early to protect capital.
TP Hits and Trend Reversals fire real-time webhook-compatible alerts.
🧩 Trend Consensus Matrix (Original Concept)
Instead of relying on a single indicator, Prime Trend Reactor calculates a weighted score using:
EMA Alignment
Momentum Oscillators (RSI + RMI)
Volume Analysis
Volatility (Vortex)
Higher Timeframe Bias
Each component adds a weighted contribution to the final trend strength score.
Only when the weighted score exceeds a user-defined threshold does the system allow entries.
This multi-dimensional scoring system is original and engineered specifically to avoid noisy or lagging traditional signals.
📈 Visualization and Dashboard
Custom EMA Clouds dynamically fill between Fast/Medium EMAs.
Colored Candles show real-time trend direction.
Dynamic Dashboard displays:
Current Position (Long/Short/Flat)
Entry Price
TP1 and TP2 Hit Status
Bars Since Entry
Win Rate (%)
Profit Factor
Current Trend Signal
Consensus Score (%)
🛡️ Non-Repainting Design
All trend calculations are based on current and confirmed past data.
HTF confirmations use barmerge.lookahead_off.
No same-bar entries and exits — enforced logic prevents overlap.
No lookahead bias.
Strict variable handling ensures confirmed-only trend state transitions.
✅ 100% TradingView-approved non-repainting behavior.
📣 Alerts and Webhooks
This strategy includes full TradingView webhook support:
Long/Short Entries
TP1 Hit (Partial Exit)
TP2 Hit (Full Exit)
Exit on Trend Reversal
All alerts use constant-string JSON formatting compliant with TradingView multi-exchange bots:
📜 TradingView Mandatory Disclaimer
This strategy is a tool to assist in market analysis. It does not guarantee profitability. Trading financial markets involves risk. You are solely responsible for your trading decisions. Past performance does not guarantee future results.
Sniper Core XT🔫 SNIPER CORE XT — ZLEMA-Based Trend + Momentum Strategy for Crypto
⚙️ How It Works (What Makes It Unique):
Sniper Core XT is a fully automated, non-repainting crypto strategy that combines a purpose-built trend detection system with volatility, volume, and momentum confirmation. It is designed from scratch in Pine Script v5 and optimized for bot deployment, copy trading, or semi-manual execution on the 1H timeframe.
Unlike a simple indicator mashup, this strategy builds its logic around one core component — ZLEMA (Zero-Lag Exponential Moving Average) — and then selectively adds only supporting filters that refine trend detection and execution logic.
🧠 Core Logic & Components:
ZLEMA Trend Engine:
The main trend signal comes from a fast vs. slow ZLEMA crossover. ZLEMA is chosen for its responsiveness and minimal lag, giving traders earlier entries without the noise of standard EMAs.
Vortex Direction & Strength Filter:
Uses Vortex Indicator internals to measure directional conviction. The strategy only enters if the vortex aligns with ZLEMA direction and shows minimum strength based on a customizable threshold.
Volume Confirmation via ZLEMA of Volume:
Filters out weak moves by confirming that current volume exceeds the ZLEMA-smoothed average of volume, creating adaptive volume thresholds.
Adaptive Momentum Filter:
Momentum is measured by a normalized rate-of-change adjusted for volatility (ATR). This helps avoid flat market entries and overextends.
Hardcoded Stop Loss (2%) and Dual TP:
TP1: 50% profit scale-out
TP2: Full closure
Stop loss exits on bar close, not using built-in SL/TP orders — this allows reentry if conditions remain favorable.
Real-Time Non-Canvas Dashboard:
A lightweight table shows entry price, trend direction, TP1/TP2/SL hit status, and bars in trade — all configurable for screen position and font size.
One-Bar Cooldown Mechanism:
Prevents entering and exiting on the same bar. Reinforces realistic execution logic and avoids repaint artifacts.
🧪 Strategy Use & Applications:
Designed for 1H trading of trending crypto pairs
Works well in medium-to-high volatility conditions
Fully supports multi-exchange alerts for integration with:
WunderTrading
3Commas
Cornix
PineConnector
🛡️ Strategy Style:
Feature Value
Repainting ❌ Never
Entry Cooldown ✅ 1-Bar
SL Handling ✅ 2% from entry (hardcoded)
TP1/TP2 ✅ Built-in (limit orders)
Alert Compatible ✅ Fully supported
Timeframe 🕒 1H recommended
⚠️ Disclaimer:
This is not financial advice. All signals are based on historical logic and may differ in live markets. Always use proper position sizing and risk management.
📌 Publishing Notes
This strategy is original and built from scratch. While it uses ZLEMA and Vortex as components, all logic — including volume filters, momentum filters, TP/SL logic, and dashboard — has been custom-coded and tested specifically for crypto trend-following on the 1H timeframe.