Bollinger Band with RSI
Using combination bollinger band and RSI indicator as guide to predict price volatility and the best entry point. The strategy logic is pretty straightforward where we're interested with close price that touches the lower bollinger band ; there are only two scenarios that will happened after the price reaches the lower band; the price might rebound from the lower bollinger band or drop lower and continue downtrend. To confirm the price movement, we use a second indicator which is the RSI to further investigate the price trend. For example, if the price reaches the lower bollinger band but the RSI value is not in the oversold region, we can conclude that the price will go lower and continue downtrend. If the RSI value is in the oversold region, we can use this price area as our entry point.
Stop loss is necessary to avoid losing too much capital if the RSI value lingers too long in the oversold region.
Best take profit area is when the price rebound above the middle bollinger band area/upper bollinger band or when the RSI reaches overbought region; whichever comes first.
Long entry:
RSI < 30 & close price < lower bollinger band
Exit entry:
RSI > 70
Default stop loss: -25%
Cerca negli script per "stop loss"
JFRewards Indi Channel <Heikin> v4.0<>
SOP guidelines only given to JF members .
The ideas are:
1) Finding where to enter position of buying and sell.
2) Finding where is the realistic take profit target within 24 hours with maximum profits.
3) Finding Trailing STOP LOSS, Trailing Take Profit, Take Profit, STOP LOSS.
Fully tested with @Binance Exchanger with numerous of stablecoins and altcoins as well as BTC , ETH.
Performance cannot be shown due to non standard chart of Heikin Ashi.
MACD 50x Leveraged Short Strategy with Real Equity
Hello there ,
Short version of the Macd Long strategy.
MACD Long strategy:
Adding margin: Forbidden or not specified. (Add Margin : No)
Position size: (for each trade) 1%
Stop-Loss: (2% Above Entry Level)
Long: macd crossunder
Exit: macd crossover
Or ofc touching the stop-Loss value as predicted.
These strategies are just examples.
The goal is to observe true equity and equity change.
Warning: This strategy simulation is for Short direction only.
Regards.
MACD 50x Leveraged Long Strategy Results with Real Equity Hello there.
I was looking for a way to simulate leveraged transactions in Tradingview and this script came out.
You can examine the equity graph without looking at the strategy results.
Thus, the facts will come to light.
Strategy parameters:
Adding margin: Forbidden or not specified. (Add Margin : No)
Position size: (for each trade) 1%
Stop-Loss: (2%)
Long: macd crossover
Exit: macd crossunder
Or ofc touching the stop-Loss value as predicted.
Warning: This strategy simulation is for Long direction only.
Regards.
Buy the Dips (by Coinrule)Taking your first steps into automated trading may be challenging. Coinrule's mission is to make it as easy as possible, also for beginners.
Here follows the best trading strategy to get started with Coinrule. This strategy doesn't involve complex indicators, yet was proved to be effective in the long term for many coins. Results seem to be improved when trading a coin vs Bitcoin.
The strategy buys the dips of a coin to sell with a profit. A stop-loss protects every trade.
Crypto markets offer high volatility and, thus, excellent opportunities for trading. Excluding times of severe downtrend, buying the dip is a simple and effective long-term trading strategy. The buy-signal is set to a 2% drop in a 30-minutes time frame.
Each trade comes with a take profit and a stop loss. Both set at 2%.
You can adjust these percentages to the market volatility as an advanced setup. You can backtest the outcomes using the backtesting tool from Tradingview
The strategy assumes each order to trade 30% of the available capital. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
Low volatility Buy w/ TP & SL (Coinrule)The compression of volatility usually leads to expansion. When the breakout comes, it can ignite strong trends. One way to catch a coin trading in an accumulation area is to spot three moving averages with values close to each other. The strategy uses a combination of Moving Averages to spot the best time to buy a coin before its breakout.
Buy Condition
The MA200 is greater than the MA100
The MA50 is greater than the MA100
According to backtesting results, the 1-hour time frame is the best to run this strategy.
Sell Condition
Take Profit: the price increases 8% from the entry price
Stop Loss: the price drops 4% from the entry price
The strategy has a profitability of 40-60% (depending on the market conditions). Having a ratio of two between Take profit and Stop Loss helps keeping the strategy profitable in the long term.
Triple EMA Scalper low lag stratHi all,
This strategy is based on the Amazing scalper for majors with risk management by SoftKill21
The change is in lines 11-20 where the sma's are replaced with Triple ema's to
lower the lag.
The original author is SoftKill21. His explanation is repeated below:
Best suited for 1M time frame and majors currency pairs.
Note that I tried it at 3M time frame.
Its made of :
Ema ( exponential moving average ) , long period 25
Ema ( exponential moving average ) Predictive, long period 50,
Ema ( exponential moving average ) Predictive, long period 100
Risk management , risking % of equity per trade using stop loss and take profits levels.
Long Entry:
When the Ema 25 cross up through the 50 Ema and 100 EMA . and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Short Entry:
When the Ema 25 cross down through the 50 Ema and 100 EMA , and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Exit:
TargetPrice: 5-10 pips
Stop loss: 9-12 pips
TrendMaAlignmentStrategy - Long term tradesThis is another strategy based on moving average alignment and HighLow periods. This is more suitable for long term trend traders and mainly for stocks.
Candle is colored lime if : Lookback Period has at least one bar with moving averages fully aligned OR None of the bars in Lookback periods has negatively aligned moving averages (More than half are positively aligned).
Candle is colored orange if : Lookback Period has at least one bar with moving averages fully aligned in negative way OR none of the bars in lookback has positively aligned moving averages (More than half are negatively aligned).
If either of above conditions are met, candle is colored silver.
Moving average alignment parameters:
Moving Average Type : MA Type for calculating Aligned Moving Average Index
Lookback Period : Lookback period to check highest and lowest Moving Average index.
HighLow parameters:
Short High/Low Period: Short period to check highs and lows
Long High/Low Period: Longer Period to check highs and lows.
If short period high == long period high, which means, instrument has made new high in the short period.
ATR Parameters:
ATR Length: ATR periods
StopMultiplyer: To set stop loss.
ReentryStopMultiplyer: This is used when signal is green buy stop loss on previous trade is hit. In such cases, new order will not be placed until it has certain distance from stop line.
Trade Prameters:
Exit on Signal : To be used with caution. Enabling it will allow us to get out on bad trades early and helps exit trades in long consolidation periods. But, this may also cause early exit in the trend. If instrument is trending nicely, it is better to keep this setting unchecked.
Trade direction : Default is long only. Short trades are not so successful in backtest. Use it with caution.
Backtest years : limit backtesting to certain years.
Part of the logic used from study's below:
Other strategies based on these two studies are below (which are meant for short - medium terms):
2 Candles Inside ATR2 agitated candles falling inside ATR range, awaiting possibly a big move.
Buy / Sell signals at combined high / low can be used as order with other as stop loss.
Counter trade, when this minimal stop loss is hit, is also as useful. However, wait till the SL candle closes, before opening position on the other side.
Works quite well on 15 mins chart, with settings of ATR duration 25 and multiplier 0.6. These settings are configurable, so feel free.
Amazing scalper for majors with risk managementHello,
Today I am glad to bring you an amazing simple and efficient scalper strategy.
Best suited for 1M time frame and majors currency pairs.
Its made of :
Ema (exponential moving average) , long period 25
Ema(exponential moving average) Predictive, long period 50,
Ema(exponential moving average) Predictive, long period 100
Risk management , risking % of equity per trade using stop loss and take profits levels.
Long Entry:
When the Ema 25 cross up through the 50 Ema and 100 EMA. and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Short Entry:
When the Ema 25 cross down through the 50 Ema and 100 EMA, and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Exit:
TargetPrice: 5-10 pips
Stop loss: 9-12 pips
Hope you enjoy it :)
[HTI2] Hiubris Trend Indicator 2 StrategyThis is the Strategy version of the HTI2 Indicator
After testing several strategies for months and comparing them to the standard 'Buy and Hold' method, we've found the best performing strategy for BTCUSDT
We simplified it to make it more user-friendly (We've only added 1 optional exit: a % SL) and left all the inputs adjustable, so it can be optimized for ANY pair!
This is a Trend Indicator! This means that the '% Profitable Trades' is not the main focus, but catching every trend swing. When trying to catch every trend swing, naturally alot of the them might be unprofitable, especially in sideways markets. The idea behind this strategy is to catch all the significant trend movements, which are alot more profitable than all the 'sideway market' losses
For that reason, we recomment backtesting on Timeframes greater than 15min. Initially we suggest you backtest without a Stop-Loss, trying multiple combinations of the 2 inputs (Length 9 to 32 / Multiplier 2 to 12)
After you found a profitable enough combination, you should look at the 'Average Losing Trade' and the 'Largest Losing Trade', then try further improving the results by setting up a Stop-Loss accordingly (if needed)
In our case, we've found that having a 2% SL (on BTCUSDT) really helps alot with those sideways market trend swings. This also allows us to comfortably us a 10x leverage
*** When using the Re-Entry feature, make sure to change the order size to contracts! Do not leave is as '% of Account' !!! ***
Some of our backtesting results
BTCUSDT 30-5 30min, 2% SL vs 'Buy and Hold'
2019 - present 697.42% vs 250%
2018 - 2019 119.42% vs -75%
EURUSD 18-6 30min, 0.6% SL
2019 - present 12.4%
AMZN 13-2 30min, 2% SL
2019- present 279.44%
XAUUSD 18-3 30min, 1.75% SL
2019- present 53.43%
BA 20-6 30min, 1.5% SL
2019- present 251.35%
Lowkey System (Strategy)View study version
A long-only strategy that aim to detect the beginning of new bullish trends and their ends.
For entering a new position this script is waiting for a moving average crossover then wait for a volume increase relative to the current volatility.
For closing a position it's simply waiting for a crossunder of whether the MA or if enabled the stop loss.
This strategy is already configured to run on BTCUSD in a 4h timeframe but you can customize the moving average and the stop loss parameters to suit your needs.
I've worked a lot to write this script so I'm not giving it for free but you can try it for 10 days.
Contact me for more details.
Have fun!
PS: I'm french so please excuse me if I've made some grammar errors ;)
cryptomars 1.0 signal Concussion trend
Description:
1. In the indicator, there is an orange signal that fluctuates linearly. It is a buy signal when it goes from bottom to top. When the signal line remains in the upper position, it indicates a multi-party trend.
2. When it goes from top to bottom, it indicates a sell signal. When the signal line remains below, it indicates a sales trend.
3. Depending on the time level, when the position of the signal line changes, determine whether the current candle is completed or not according to the time level of the chart you selected to determine the signal. For example, if you select a chart level of 5 meters, then when the signal line changes, for example, it will send a sell signal from top to bottom. At this time, please do not rush to sell. You should wait for this 5 meter candlestick to complete. When the candle is over and the next candle is started, if the signal line remains in the top-down form, the sell signal is normal and you can sell it.
Because the position of the signal appears, it is the location of the sale. During the completion of the candlestick , the signal may disappear after disappearing. We only have to wait for a while to get a more stable deal.
4. The alarm setting is very simple. There are two lines in the indicator. One is the orange signal line that fluctuates up and down, and the other is the fixed zero line of “zero”.
We set it in the alarm. When the signal line passes "zero" from the top, the short signal is sent only when the candle map is completed. When the signal line passes "zero" from "up" below, the signal is sent for a long time when the candlestick is completed.
One trick, the appearance of the signal, is that the price runs in one direction for a while, so it appears at or near the bottom. Because, when we have already made a profit in the transaction, we can make a profit in advance, and we do not need to wait for the opposite signal to stop the profit and reduce the risk of profit retracement.
Because in this market, the fluctuations are very large, and the people who compete are also very fierce. What we need to do is to make every transaction as possible, and we are all profitable. If we sell and find that the price is still rising, please don't feel sorry, don't consider eating all the profits.
6. When the signal appears, in most cases, even in the impact trend, it will still run a distance in the direction of the signal, that is, you will profit, so please close the position and make a profit in time. Otherwise, when the price volatility is too small, you miss the profit point, the price starts to run in the opposite direction, and you may change from profit to loss.
BITMEX's trailing stop loss is a great feature, please use it flexibly.
7, if it is a shock trend, please try not to trade.
8. We recommend that you turn on the “cryptomars 3.0” and “cryptomars 2.0” indicators. No matter who signs the trade first, you can trade, which can help you get more profit.
9. Remember, I hope this indicator will be your powerful assistant, but please don't rely on it completely. Learning more trading knowledge and skills is even more important. Therefore, when we consider the profitable position, you can use your trading skills, MACD , KDJ, etc. to assist and profit in a more suitable position.
cryptomars signal short 2.0Description:
1. In the indicator, there is an orange signal that fluctuates linearly. It is a buy signal when it goes from bottom to top. When the signal line remains in the upper position, it indicates a multi-party trend.
2. When it goes from top to bottom, it indicates a sell signal. When the signal line remains below, it indicates a sales trend.
3. Depending on the time level, when the position of the signal line changes, determine whether the current candle is completed or not according to the time level of the chart you selected to determine the signal. For example, if you select a chart level of 5 meters, then when the signal line changes, for example, it will send a sell signal from top to bottom. At this time, please do not rush to sell. You should wait for this 5 meter candlestick to complete. When the candle is over and the next candle is started, if the signal line remains in the top-down form, the sell signal is normal and you can sell it.
Because the position of the signal appears, it is the location of the sale. During the completion of the candlestick , the signal may disappear after disappearing. We only have to wait for a while to get a more stable deal.
4. The alarm setting is very simple. There are two lines in the indicator. One is the orange signal line that fluctuates up and down, and the other is the fixed zero line of “zero”.
We set it in the alarm. When the signal line passes "zero" from the top, the short signal is sent only when the candle map is completed. When the signal line passes "zero" from "up" below, the signal is sent for a long time when the candlestick is completed.
One trick, the appearance of the signal, is that the price runs in one direction for a while, so it appears at or near the bottom. Because, when we have already made a profit in the transaction, we can make a profit in advance, and we do not need to wait for the opposite signal to stop the profit and reduce the risk of profit retracement.
Because in this market, the fluctuations are very large, and the people who compete are also very fierce. What we need to do is to make every transaction as possible, and we are all profitable. If we sell and find that the price is still rising, please don't feel sorry, don't consider eating all the profits.
6. When the signal appears, in most cases, even in the impact trend, it will still run a distance in the direction of the signal, that is, you will profit, so please close the position and make a profit in time. Otherwise, when the price volatility is too small, you miss the profit point, the price starts to run in the opposite direction, and you may change from profit to loss.
BITMEX's trailing stop loss is a great feature, please use it flexibly.
7, if it is a shock trend, please try not to trade.
8. We recommend that you turn on the “cryptomars 3.0” and “cryptomars 1.0” indicators. No matter who signs the trade first, you can trade, which can help you get more profit.
9. Remember, I hope this indicator will be your powerful assistant, but please don't rely on it completely. Learning more trading knowledge and skills is even more important. Therefore, when we consider the profitable position, you can use your trading skills, MACD , KDJ, etc. to assist and profit in a more suitable position.
cryptomars signal 3.0Description:
1. In the indicator, there is an orange signal that fluctuates linearly. It is a buy signal when it goes from bottom to top. When the signal line remains in the upper position, it indicates a multi-party trend.
2. When it goes from top to bottom, it indicates a sell signal. When the signal line remains below, it indicates a sales trend.
3. Depending on the time level, when the position of the signal line changes, determine whether the current candle is completed or not according to the time level of the chart you selected to determine the signal. For example, if you select a chart level of 5 meters, then when the signal line changes, for example, it will send a sell signal from top to bottom. At this time, please do not rush to sell. You should wait for this 5 meter candlestick to complete. When the candle is over and the next candle is started, if the signal line remains in the top-down form, the sell signal is normal and you can sell it.
Because the position of the signal appears, it is the location of the sale. During the completion of the candlestick , the signal may disappear after disappearing. We only have to wait for a while to get a more stable deal.
4. The alarm setting is very simple. There are two lines in the indicator. One is the orange signal line that fluctuates up and down, and the other is the fixed zero line of “zero”.
We set it in the alarm. When the signal line passes "zero" from the top, the short signal is sent only when the candle map is completed. When the signal line passes "zero" from "up" below, the signal is sent for a long time when the candlestick is completed.
One trick, the appearance of the signal, is that the price runs in one direction for a while, so it appears at or near the bottom. Because, when we have already made a profit in the transaction, we can make a profit in advance, and we do not need to wait for the opposite signal to stop the profit and reduce the risk of profit retracement.
Because in this market, the fluctuations are very large, and the people who compete are also very fierce. What we need to do is to make every transaction as possible, and we are all profitable. If we sell and find that the price is still rising, please don't feel sorry, don't consider eating all the profits.
6. When the signal appears, in most cases, even in the impact trend, it will still run a distance in the direction of the signal, that is, you will profit, so please close the position and make a profit in time. Otherwise, when the price volatility is too small, you miss the profit point, the price starts to run in the opposite direction, and you may change from profit to loss.
BITMEX's trailing stop loss is a great feature, please use it flexibly.
7, if it is a shock trend, please try not to trade.
8. We recommend that you turn on the “cryptomars 2.0” and “cryptomars 1.0” indicators. No matter who signs the trade first, you can trade, which can help you get more profit.
9. Remember, I hope this indicator will be your powerful assistant, but please don't rely on it completely. Learning more trading knowledge and skills is even more important. Therefore, when we consider the profitable position, you can use your trading skills, MACD , KDJ, etc. to assist and profit in a more suitable position.
[BoTo] Pump&Dump StrategyThis strategy uses only long positions. It isn't used short positions, it doesn't use marginal trade, it doesn't use a pyramiding.
It is strategy uses only one indicator. Ourselves have constructed the indicator for cryptocurrencies. We called it 'Pump&Dump Ocsilator'. You can read as this indicator works here:
Not usual stop
Strategy uses 2 ways for closing of an unprofitable position. But it is possible to use only one way.
Way 1: if the indicator has distinguished a dump, then the long position needs to be closed when the candle is closed (for an example: to close a position when time 00:00 if you have chosen daily timeframe)
Way 2: the user himself chooses the size in settings of this script. Percent. If the user has chosen 100%, means isn't used absolutely. Because the price will never fall by 100%. If the user has chosen less than 100%, for example 5%, then the long position needs to be closed if the low of a candle was less than this price level of choosed stop-loss. But the position needs to be closed too when the candle is closed.
Strategy
A pump-signal: if the candle green and her body is 3 times more than norm
A dump-signal: on the contrary, if the candle red and her body is 3 times more than norm
For opening of a long position: it is necessary any pump-signal (if the position hasn't been open yet)
For closing of a long position: several ways:
1) Or any dump-signal is necessary
2) Or a stop-loss which was chosen by the user is necessary
Millionare tool1. No lag, proprietary algorithm gives signal when position is triggered.
2. Ideal for ones who have tight stop losses but book profits very soon and miss the BIG move.
3. Works on Intraday/ positional/investment long term
4. Works on INDEX/ EQUITY/ FOREX/ CRYPTO CURRENCY
5. Works in any market all over the world, USA,LONDON, JAPAN,INDIA etc
6. 5d,1m,3m ,6m,1yr,5yr no problem.
7. Ideal for trend traders who want to catch the biggest move
8. All human emotions/temptations, silly indicators are out, get the signal? take the entry. simple as ABC
9.Use a breakeven stop loss or max 0.3%, never have a big loss, only big profits
*BUY on long signal, book profits when content, or on next short signal, can initiate fresh shorts too.
*Works in all markets mentioned
*Its your best friend to catch the trend. money
Some examples-
1) postimg.org
2) postimg.org
3) postimg.org
4) postimg.org
5) postimg.org
MACDouble & StochRSI w/ safeties and variable time interval v0.3UPDATE:
IMPORTANT!!! MAKE SURE "RECALCULATE AFTER ORDER FILLED" IS CHECKED. I will have it on by default in the future.
This is a continuation of my previous scripts of two MACD indicators with a Stochastic RSI indicator.
New features:
- Alternate MACD time interval
You can now set the time interval for the second MACD indicator to a different resolution than the displayed chart.
Uncheck the box and select the desired interval. For example, if your chart is set to 15min then first MACD will be set at 15 min and you can select 5 min for the second MACD.
- Alternate StoRSI time interval
You can (and should) set the StochRSI to a different time interval as well. StochRSI hasn't worked great with previous versions. Now you can set it to a different time resolution as well. I strongly recommend you set it at a higher (slower) resolution; for example if your chart is set at 15min then you should test setting the StochRSI at 30 or 45min.
- ' True" StochRSI logic
Trading logic for StochRSI is now a true StochRSI, instead of just reading "k" and ignoring "d", K now has to be greater than D to buy and less than to sell.
- Safeties
A primitive but low risk safety in the form of an uptrend/downtrend price safety. If current close+high isn't greater than the previous close and high then the buy order will not be executed. The same applies for sell orders.
- Cap on losses from short positions
A stop loss safety set to 9000 for exiting sell positions. This will need refinement in the future but this puts a cap on losses from any sell position. At an initial currency of 10,000 this translates to 90.00. If it is giving you problems simply delete line 78 from the source code.
Please feel free to ask any questions or send me suggestions. This is still very much a work in progress and I'll try to polish up the rough spots but it is fully functional. With a slower StochRSI and the safeties I have gotten it to consistently outperform the old 2x MACD strategy script---typically by 3-fold.
Apex Confluence Strategy [Multi-Asset Pro] v4.0Stop using a crypto strategy for stocks. Introducing the Apex Confluence Strategy —the first truly adaptive trading system designed for the modern, multi-market trader. This is not just another strategy; it's an institutional-grade framework that automatically adjusts its core logic to the unique personality of the asset you are trading, whether it's Crypto, Forex, Indices, or Stocks.
At its heart is a powerful Dual Scoring Engine that quantifies trade probability by analyzing a confluence of professional-grade signals. A trade is only taken when the score is high, the macro trend is aligned, and the position size is mathematically calculated for precision risk control.
The Multi-Asset Advantage: Why This is a Game-Changer
Most strategies fail because they treat all markets the same. The Apex Strategy recognizes this is a critical flaw. Our Asset Profile system automatically tunes the strategy's parameters for you:
📈 Stocks & Indices: Deploys tighter stop losses and aims for higher risk-reward ratios to capitalize on smoother trending behavior, with session filters automatically active.
₿ Crypto: Switches to wider, volatility-based stop losses to survive sharp swings and disables session filters for the 24/7 market.
🌍 Forex: Uses parameters optimized for its tendency towards mean-reversion and respects the critical London/New York session overlaps.
⚙️ Custom: For the professional trader who wants full control, the Custom profile lets you override all presets and fine-tune every parameter manually.
This adaptive logic ensures you are always using a tool that is specifically calibrated for the environment you are trading in, dramatically increasing its relevance and effectiveness.
Core Features: The Pillars of a Professional System
🏆 The Dual Scoring Engine: Logically sound and accurate. A buy signal is only scored on bullish criteria (Hammers, Bullish Divergence, RSI Oversold), and a sell signal is only scored on bearish criteria. No mixed signals, ever.
⚙️ True Risk-Based Position Sizing: The gold standard in risk management. Define your exact risk per trade (e.g., 1% of capital), and the strategy calculates the precise position size to ensure your risk is identical on every trade, regardless of market volatility.
🔬 True RSI Divergence Engine: A robust pivot-based engine that identifies structural divergence between price and the RSI—a classic signal used by professionals to spot trend exhaustion and high-probability reversals.
📊 The "Signal Checklist" Dashboard: An intelligent dashboard that shows you what matters. In an uptrend, it displays the live Long Score building toward your entry threshold. In a downtrend, it shows the Short Score. It's a clean, dynamic checklist that includes the active Asset Profile.
🔧 Fully Modular & Backtest-Ready: You are in control. Enable or disable any confirmation signal (Candlesticks, Divergence, Volume, etc.) to see how it impacts the strategy's performance on different assets
How to Use This Strategy
Select Your Asset Profile: This is your most important first step. Choose the profile from the dropdown that matches the asset on your chart.
Define Your Risk: Set your "Risk per Trade (%)" in the settings. This is the cornerstone of your long-term capital management.
Backtest: Use TradingView's Strategy Tester to analyze the performance. Compare how the different Asset Profiles perform on the same chart to understand the impact of the adaptive logic.
Analyze the Dashboard: Use the live dashboard to monitor the current trend and see how close the score is to triggering a signal.
Disclaimer: This tool is for educational and analytical purposes only. All trading involves substantial risk. The author, IndicatorEdge By SG, is not liable for any financial losses incurred. Past performance and backtest results are not indicative of future results. Please trade responsibly.
Divergence Strategy [Trendoscope®]🎲 Overview
The Divergence Strategy is a sophisticated TradingView strategy that enhances the Divergence Screener by adding automated trade signal generation, risk management, and trade visualization. It leverages the screener’s robust divergence detection to identify bullish, bearish, regular, and hidden divergences, then executes trades with precise entry, stop-loss, and take-profit levels. Designed for traders seeking automated trading solutions, this strategy offers customizable trade parameters and visual feedback to optimize performance across various markets and timeframes.
For core divergence detection features, including oscillator options, trend detection methods, zigzag pivot analysis, and visualization, refer to the Divergence Screener documentation. This description focuses on the strategy-specific enhancements for automated trading and risk management.
🎲 Strategy Features
🎯Automated Trade Signal Generation
Trade Direction Control : Restrict trades to long-only or short-only to align with market bias or strategy goals, preventing conflicting orders.
Divergence Type Selection : Choose to trade regular divergences (bullish/bearish), hidden divergences, or both, targeting reversals or trend continuations.
Entry Type Options :
Cautious : Enters conservatively at pivot points and exits quickly to minimize risk exposure.
Confident : Enters aggressively at the latest price and holds longer to capture larger moves.
Mixed : Combines conservative entries with delayed exits for a balanced approach.
Market vs. Stop Orders: Opt for market orders for instant execution or stop orders for precise price entry.
🎯 Enhanced Risk Management
Risk/Reward Ratio : Define a risk-reward ratio (default: 2.0) to set profit targets relative to stop-loss levels, ensuring consistent trade sizing.
Bracket Orders : Trades include entry, stop-loss, and take-profit levels calculated from divergence pivot points, tailored to the entry type and risk-reward settings.
Stop-Loss Placement : Stops are strategically set (e.g., at recent pivot or last price point) based on entry type, balancing risk and trade validity.
Order Cancellation : Optionally cancel pending orders when a divergence is broken (e.g., price moves past the pivot in the wrong direction), reducing invalid trades. This feature is toggleable for flexibility.
🎯 Trade Visualization
Target and Stop Boxes : Displays take-profit (lime) and stop-loss (orange) levels as boxes on the price chart, extending 10 bars forward for clear visibility.
Dynamic Trade Updates : Trade visualizations are added, updated, or removed as trades are executed, canceled, or invalidated, ensuring accurate feedback.
Overlay Integration : Trade levels overlay the price chart, complementing the screener’s oscillator-based divergence lines and labels.
🎯 Strategy Default Configuration
Capital and Sizing : Set initial capital (default: $1,000,000) and position size (default: 20% of equity) for realistic backtesting.
Pyramiding : Allows up to 4 concurrent trades, enabling multiple divergence-based entries in trending markets.
Commission and Margin : Accounts for commission (default: 0.01%) and margin (100% for long/short) to reflect trading costs.
Performance Optimization : Processes up to 5,000 bars dynamically, balancing historical analysis and real-time execution.
🎲 Inputs and Configuration
🎯Trade Settings
Direction : Select Long or Short (default: Long).
Divergence : Trade Regular, Hidden, or Both divergence types (default: Both).
Entry/Exit Type : Choose Cautious, Confident, or Mixed (default: Cautious).
Risk/Reward : Set the risk-reward ratio for profit targets (default: 2.0).
Use Market Order : Enable market orders for immediate entry (default: false, uses limit orders).
Cancel On Break : Cancel pending orders when divergence is broken (default: true).
🎯Inherited Settings
The strategy inherits all inputs from the Divergence Screener, including:
Oscillator Settings : Oscillator type (e.g., RSI, CCI), length, and external oscillator option.
Trend Settings : Trend detection method (Zigzag, MA Difference, External), MA type, and length.
Zigzag Settings : Zigzag length (fixed repaint = true).
🎲 Entry/Exit Types for Divergence Scenarios
The Divergence Strategy offers three Entry/Exit Type options—Cautious, Confident, and Mixed—which determine how trades are entered and exited based on divergence pivot points. This section explains how these settings apply to different divergence scenarios, with placeholders for screenshots to illustrate each case.
The divergence pattern forms after 3 pivots. The stop and entry levels are formed on one of these levels based on Entry/Exit types.
🎯Bullish Divergence (Reversal)
A bullish divergence occurs when price forms a lower low, but the oscillator forms a higher low, signaling a potential upward reversal.
💎 Cautious:
Entry : At the pivot high point for a conservative entry.
Exit : Stop-loss at the last pivot point (previous low that is higher than the current pivot low); take-profit at risk-reward ratio. Canceled if price breaks below the pivot (if Cancel On Break is enabled).
Behavior : Enters after confirmation and exits quickly to limit downside risk.
💎Confident:
Entry : At the last pivot low, (previous low which is higher than the current pivot low) for an aggressive entry.
Exit : Stop-loss at recent pivot low, which is the lowest point; take-profit at risk-reward ratio. Canceled if price breaks below the pivot. (lazy exit)
Behavior : Enters early to capture trend continuation, holding longer for gains.
💎Mixed:
Entry : At the pivot high point (conservative).
Exit : Stop-loss at the recent pivot point that has resulted in lower low (lazy exit). Canceled if price breaks below the pivot.
Behavior : Balances entry caution with extended holding for trend continuation.
🎯Bearish Divergence (Reversal)
A bearish divergence occurs when price forms a higher high, but the oscillator forms a lower high, indicating a potential downward reversal.
💎Cautious:
Entry : At the pivot low point (lower high) for a conservative short entry.
Exit : Stop-loss at the previous pivot high point (previous high); take-profit at risk-reward ratio. Canceled if price breaks above the pivot (if Cancel On Break is enabled).
Behavior : Enters conservatively and exits quickly to minimize risk.
💎Confident:
Entry : At the last price point (previous high) for an aggressive short entry.
Exit : Stop-loss at the pivot point; take-profit at risk-reward ratio. Canceled if price breaks above the pivot.
Behavior : Enters early to maximize trend continuation, holding longer.
💎Mixed:
Entry : At the previous piot high point (conservative).
Exit : Stop-loss at the last price point (delayed exit). Canceled if price breaks above the pivot.
Behavior : Combines conservative entry with extended holding for downtrend gains.
🎯Bullish Hidden Divergence (Continuation)
A bullish hidden divergence occurs when price forms a higher low, but the oscillator forms a lower low, suggesting uptrend continuation. In case of Hidden bullish divergence, b]Entry is always on the previous pivot high (unless it is a market order)
💎Cautious:
Exit : Stop-loss at the recent pivot low point (higher than previous pivot low); take-profit at risk-reward ratio. Canceled if price breaks below the pivot (if Cancel On Break is enabled).
Behavior : Enters after confirmation and exits quickly to limit downside risk.
💎Confident:
Exit : Stop-loss at previous pivot low, which is the lowest point; take-profit at risk-reward ratio. Canceled if price breaks below the pivot. (lazy exit)
Behavior : Enters early to capture trend continuation, holding longer for gains.
🎯Bearish Hidden Divergence (Continuation)
A bearish hidden divergence occurs when price forms a lower high, but the oscillator forms a higher high, suggesting downtrend continuation. In case of Hidden Bearish divergence, b]Entry is always on the previous pivot low (unless it is a market order)
💎Cautious:
Exit : Stop-loss at the latest pivot high point (which is a lower high); take-profit at risk-reward ratio. Canceled if price breaks above the pivot (if Cancel On Break is enabled).
Behavior : Enters conservatively and exits quickly to minimize risk.
💎Confident/Mixed:
Exit : Stop-loss at the previous pivot high point; take-profit at risk-reward ratio. Canceled if price breaks above the pivot.
Behavior : Uses the late exit point to hold longer.
🎲 Usage Instructions
🎯Add to Chart:
Add the Divergence Strategy to your TradingView chart.
The oscillator and divergence signals appear in a separate pane, with trade levels (target/stop boxes) overlaid on the price chart.
🎯Configure Settings:
Adjust trade settings (direction, divergence type, entry type, risk-reward, market orders, cancel on break).
Modify inherited Divergence Screener settings (oscillator, trend method, zigzag length) as needed.
Enable/disable alerts for divergence notifications.
🎯Interpret Signals:
Long Trades: Triggered on bullish or bullish hidden divergences (if allowed), shown with green/lime lines and labels.
Short Trades: Triggered on bearish or bearish hidden divergences (if allowed), shown with red/orange lines and labels.
Monitor lime (target) and orange (stop) boxes for trade levels.
Review strategy performance metrics (e.g., profit/loss, win rate) in the strategy tester.
🎯Backtest and Optimize:
Use TradingView’s strategy tester to evaluate performance on historical data.
Fine-tune risk-reward, entry type, position sizing, and cancellation settings to suit your market and timeframe.
For questions, suggestions, or support, contact Trendoscope via TradingView or official support channels. Stay tuned for updates and enhancements to the Divergence Strategy!
Long Explosive V1The “Long Explosive V1” strategy calculates the percentage change in price from the last closing price of the candlestick, so that if it increases by a certain percentage it goes long, but if it decreases by another percentage it sends an exit order, so that the percentage limits above and below the current price function as inherent stop loss and take profit, with the benefit of taking advantage of the volatility of the bull market.
Entries and exits are always at the market and based on percentage changes in the price. Of course, the default configuration of the strategy considers a position with a 5% risk control, modest initial capital and standard commissions, which helps to obtain realistic results and protect the user from unexpectedly controlled potential losses.
It is again emphasized that it is always advisable to adjust the parameters of the strategy well, so that the risk-reward is well controlled.
Livermore-Seykota Breakout StrategyStrategy Name: Livermore-Seykota Breakout Strategy
Objective: Execute breakout trades inspired by Jesse Livermore, filtered by trend confirmation (Ed Seykota) and risk-managed with ATR (Paul Tudor Jones style).
Entry Conditions:
Long Entry:
Close price breaks above recent pivot high.
Price is above main EMA (EMA50).
EMA20 > EMA200 (uptrend confirmation).
Current volume > 20-period SMA (volume confirmation).
Short Entry:
Close price breaks below recent pivot low.
Price is below main EMA (EMA50).
EMA20 < EMA200 (downtrend confirmation).
Current volume > 20-period SMA.
Exit Conditions:
Stop-loss: ATR × 3 from entry price.
Trailing stop: activated with offset of ATR × 2.
Strengths:
Trend-aligned entries with volume breakout confirmation.
Dynamic ATR-based risk management.
Inspired by principles of three legendary traders.
Strategy Stats [presentTrading]Hello! it's another weekend. This tool is a strategy performance analysis tool. Looking at the TradingView community, it seems few creators focus on this aspect. I've intentionally created a shared version. Welcome to share your idea or question on this.
█ Introduction and How it is Different
Strategy Stats is a comprehensive performance analytics framework designed specifically for trading strategies. Unlike standard strategy backtesting tools that simply show cumulative profits, this analytics suite provides real-time, multi-timeframe statistical analysis of your trading performance.
Multi-timeframe analysis: Automatically tracks performance metrics across the most recent time periods (last 7 days, 30 days, 90 days, 1 year, and 4 years)
Advanced statistical measures: Goes beyond basic metrics to include Information Coefficient (IC) and Sortino Ratio
Real-time feedback: Updates performance statistics with each new trade
Visual analytics: Color-coded performance table provides instant visual feedback on strategy health
Integrated risk management: Implements sophisticated take profit mechanisms with 3-step ATR and percentage-based exits
BTCUSD Performance
The table in the upper right corner is a comprehensive performance dashboard showing trading strategy statistics.
Note: While this presentation uses Vegas SuperTrend as the underlying strategy, this is merely an example. The Stats framework can be applied to any trading strategy. The Vegas SuperTrend implementation is included solely to demonstrate how the analytics module integrates with a trading strategy.
⚠️ Timeframe Limitations
Important: TradingView's backtesting engine has a maximum storage limit of 10,000 bars. When using this strategy stats framework on smaller timeframes such as 1-hour or 2-hour charts, you may encounter errors if your backtesting period is too long.
Recommended Timeframe Usage:
Ideal for: 4H, 6H, 8H, Daily charts and above
May cause errors on: 1H, 2H charts spanning multiple years
Not recommended for: Timeframes below 1H with long history
█ Strategy, How it Works: Detailed Explanation
The Strategy Stats framework consists of three primary components: statistical data collection, performance analysis, and visualization.
🔶 Statistical Data Collection
The system maintains several critical data arrays:
equityHistory: Tracks equity curve over time
tradeHistory: Records profit/loss of each trade
predictionSignals: Stores trade direction signals (1 for long, -1 for short)
actualReturns: Records corresponding actual returns from each trade
For each closed trade, the system captures:
float tradePnL = strategy.closedtrades.profit(tradeIndex)
float tradeReturn = strategy.closedtrades.profit_percent(tradeIndex)
int tradeType = entryPrice < exitPrice ? 1 : -1 // Direction
🔶 Performance Metrics Calculation
The framework calculates several key performance metrics:
Information Coefficient (IC):
The correlation between prediction signals and actual returns, measuring forecast skill.
IC = Correlation(predictionSignals, actualReturns)
Where Correlation is the Pearson correlation coefficient:
Correlation(X,Y) = (nΣXY - ΣXY) / √
Sortino Ratio:
Measures risk-adjusted return focusing only on downside risk:
Sortino = (Avg_Return - Risk_Free_Rate) / Downside_Deviation
Where Downside Deviation is:
Downside_Deviation = √
R_i represents individual returns, T is the target return (typically the risk-free rate), and n is the number of observations.
Maximum Drawdown:
Tracks the largest percentage drop from peak to trough:
DD = (Peak_Equity - Trough_Equity) / Peak_Equity * 100
🔶 Time Period Calculation
The system automatically determines the appropriate number of bars to analyze for each timeframe based on the current chart timeframe:
bars_7d = math.max(1, math.round(7 * barsPerDay))
bars_30d = math.max(1, math.round(30 * barsPerDay))
bars_90d = math.max(1, math.round(90 * barsPerDay))
bars_365d = math.max(1, math.round(365 * barsPerDay))
bars_4y = math.max(1, math.round(365 * 4 * barsPerDay))
Where barsPerDay is calculated based on the chart timeframe:
barsPerDay = timeframe.isintraday ?
24 * 60 / math.max(1, (timeframe.in_seconds() / 60)) :
timeframe.isdaily ? 1 :
timeframe.isweekly ? 1/7 :
timeframe.ismonthly ? 1/30 : 0.01
🔶 Visual Representation
The system presents performance data in a color-coded table with intuitive visual indicators:
Green: Excellent performance
Lime: Good performance
Gray: Neutral performance
Orange: Mediocre performance
Red: Poor performance
█ Trade Direction
The Strategy Stats framework supports three trading directions:
Long Only: Only takes long positions when entry conditions are met
Short Only: Only takes short positions when entry conditions are met
Both: Takes both long and short positions depending on market conditions
█ Usage
To effectively use the Strategy Stats framework:
Apply to existing strategies: Add the performance tracking code to any strategy to gain advanced analytics
Monitor multiple timeframes: Use the multi-timeframe analysis to identify performance trends
Evaluate strategy health: Review IC and Sortino ratios to assess predictive power and risk-adjusted returns
Optimize parameters: Use performance data to refine strategy parameters
Compare strategies: Apply the framework to multiple strategies to identify the most effective approach
For best results, allow the strategy to generate sufficient trade history for meaningful statistical analysis (at least 20-30 trades).
█ Default Settings
The default settings have been carefully calibrated for cryptocurrency markets:
Performance Tracking:
Time periods: 7D, 30D, 90D, 1Y, 4Y
Statistical measures: Return, Win%, MaxDD, IC, Sortino Ratio
IC color thresholds: >0.3 (green), >0.1 (lime), <-0.1 (orange), <-0.3 (red)
Sortino color thresholds: >1.0 (green), >0.5 (lime), <0 (red)
Multi-Step Take Profit:
ATR multipliers: 2.618, 5.0, 10.0
Percentage levels: 3%, 8%, 17%
Short multiplier: 1.5x (makes short take profits more aggressive)
Stop loss: 20%