Ultimate Strategy Template (Advanced Edition)Hello traders
This script is an upgraded version of that one below
New features
- Upgraded to Pinescript version 5
- Added the exit SL/TP now in real-time
- Added text fields for the alerts - easier to send the commands to your trading bots
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
For doing so:
1) Find in your indicator where are the conditions printing the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator wether it's a MACD , ZigZag , Pivots , higher-highs, lower-lows or whatever indicator with clear buy and sell conditions.
//@version=5
indicator(title='Moving Average Cross', shorttitle='Moving Average Cross', overlay=true, precision=6, max_labels_count=500, max_lines_count=500)
type_ma1 = input.string(title='MA1 type', defval='SMA', options= )
length_ma1 = input(10, title=' MA1 length')
type_ma2 = input.string(title='MA2 type', defval='SMA', options= )
length_ma2 = input(100, title=' MA2 length')
// MA
f_ma(smoothing, src, length) =>
rma_1 = ta.rma(src, length)
sma_1 = ta.sma(src, length)
ema_1 = ta.ema(src, length)
iff_1 = smoothing == 'EMA' ? ema_1 : src
iff_2 = smoothing == 'SMA' ? sma_1 : iff_1
smoothing == 'RMA' ? rma_1 : iff_2
MA1 = f_ma(type_ma1, close, length_ma1)
MA2 = f_ma(type_ma2, close, length_ma2)
// buy and sell conditions
buy = ta.crossover(MA1, MA2)
sell = ta.crossunder(MA1, MA2)
plot(MA1, color=color.new(color.green, 0), title='Plot MA1', linewidth=3)
plot(MA2, color=color.new(color.red, 0), title='Plot MA2', linewidth=3)
plotshape(buy, title='LONG SIGNAL', style=shape.circle, location=location.belowbar, color=color.new(color.green, 0), size=size.normal)
plotshape(sell, title='SHORT SIGNAL', style=shape.circle, location=location.abovebar, color=color.new(color.red, 0), size=size.normal)
/////////////////////////// SIGNAL FOR STRATEGY /////////////////////////
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title='🔌Connector🔌', display = display.data_window)
Basically, I identified my buy, sell conditions in the code and added this at the bottom of my indicator code
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title="🔌Connector🔌", transp=100)
Important Notes
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal, and -1 for the bearish signal
Now you can connect your indicator to the Strategy Template using the method below or that one
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings and in the Data Source field select your 🔌Connector🔌 (which comes from your indicator)
From then, you should start seeing the signals and plenty of other stuff on your chart
🔥 Note that whenever you'll update your indicator values, the strategy statistics and visual on your chart will update in real-time
Settings
- Color Candles: Color the candles based on the trade state ( bullish , bearish , neutral)
- Close positions at market at the end of each session: useful for everything but cryptocurrencies
- Session time ranges: Take the signals from a starting time to an ending time
- Close Direction: Choose to close only the longs, shorts, or both
- Date Filter: Take the signals from a starting date to an ending date
- Set the maximum losing streak length with an input
- Set the maximum winning streak length with an input
- Set the maximum consecutive days with a loss
- Set the maximum drawdown (in % of strategy equity)
- Set the maximum intraday loss in percentage
- Limit the number of trades per day
- Limit the number of trades per week
- Stop-loss: None or Percentage or Trailing Stop Percentage or ATR - I'll add shortly multiple options for the trailing stop loss
- Take-Profit: None or Percentage or ATR - I'll add also a trailing take profit
- Risk-Reward based on ATR multiple for the Stop-Loss and Take-Profit
Special Thanks
Special thanks to @JosKodify as I borrowed a few risk management snippets from his website: kodify.net
Best
Dave
Educational
Je Buurmans Simple Manual EntriesIf ever in need for a quick way to swiftly check some random trades
or brag to your 'friends'/buddies/pals/haters/followers/the_crowd with fabricated winnings ..
This Script is for you.
Either set the entry and exit dates for a maximum of up to 10 trades (either Long or Short) via Menu
or simply drag the 'handler' to the desired time/date.
Next fill in how many shares/contracts to enter and/or exit
There is some Visual Feedback as well.
(initially written specifically for someone .. now free for grabs)
Pair ViewerPair-Trading is a recognized and widely used trading method, this indicator is a tool that allows via several display interfaces (2 at the moment) to see relative performance ratios of two assets.
The inputs are pretty simple to understand but here is the list of them :
- Ticker #1 : The first Asset's ticker // numerator of the ratio
- Ticker #2 : The second Asset's ticker // denominator of the ratio
- View as : Display Method
- Up Color : Color of positive candle (when close > open)
- Down Color : Color of negative candle (when close < open)
Of course, this indicator only shows stuff at the chart, it does NOT provide any investment advice.
LuxAlgo - Backtester (S&O)The S&O Backtester is an innovative strategy script that encompasses features + optimization methods from our Signals & Overlays™ toolkit and combines them into one easy-to-use script for backtesting the most detailed trading strategies possible.
Our Signals & Overlays™ toolkit is notorious for its signal optimization methods such as the 'Optimal Sensitivity' displayed in its dashboard which provides optimization backtesting of the Sensitivity parameter for the Confirmation & Contrarian Signals.
This strategy script allows even more detailed & precise backtests than anything available previously in the Signals & Overlays™ toolkit; including External Source inputs allowing users to use any indicator including our other paid toolkits for take profit & stop loss customization to develop strategies, along with 10+ pre-built filters directly Signals & Overlays™' features.
🔶 Features
Full Sensitivity optimization within the dashboard to find the Best Win rates or Best Profits.
Counter Trade Mode to reverse signals in undesirable market conditions (may introduce higher drawdowns)
Built-in filters for Confirmation Signals w/ Indicator Overlays from Signals & Overlays™.
Built-in Confirmation exit points are available within the settings & on by default.
External Source Input to filter signals or set custom Take Profits & Stop Losses.
Optimization Matrix dashboard option showing all possible permutations of Sensitivity.
Option to Maximize for Winrate or Best Profit.
🔶 Settings
Sensitivity signal optimizations for the Confirmation Signals algorithm
Buy & Sell conditions filters with Indicator Overlays & External Source
Take Profit exit signals option
External Source for Take Profit & Stop Loss
Sensitivity ranges
Backtest window default at 2,000 bars
External source
Dashboard locations
🔶 Usage
Backtests are not necessarily indicative of future results, although a trader may want to use a strategy script to have a deeper understanding of how their strategy responds to varying market conditions, or to use as a tool for identifying possible flaws in a strategy that could potentially be indicative of good or bad performance in the future.
A strategy script can also be useful in terms of it's ability to generate more complete & configurable alerts, giving users the option to integrate with external processes.
In the chart below we are using default settings and built-in optimization parameters to generate the highest win rate.
Results like the above will vary & finding a strategy with a high win rate does not necessarily mean it will persist into the future, however, some indications of a well-optimized strategy are:
A high number of closed trades (100+) with a consistently green equity curve
An equity curve that outperforms buy & hold
A low % max drawdown compared to the Net Profit %.
Profit factor around 1.5 or above
In the chart below we are using the Trend Catcher feature from Signals & Overlays™ as a filter for standard Confirmation Signals + exits on a higher timeframe.
By filtering bullish signals only when the Trend Catcher is bullish, as well as bearish signals for when the Trend Catcher is bearish, we have a highly profitable strategy created directly from our flagship features.
While the Signals & Overlays features being used as built-in filters can generate interesting backtests, the provided External Sources can allow for even more creativity when creating strategies. This feature allows you to use many indicators from TradingView as filters or to trigger take-profit/stop-loss events, even if they aren't from LuxAlgo.
The chart below shows the HyperWave Oscillator from our Oscillator Matrix™ being used for take-profit exit conditions, exiting a long position on a profit when crossing 80, and exiting a short position when crossing 20.
🔶 Counter Trade Mode
Our thesis has always firmly remained to use Confirmation Signals within Signals & Overlays™ as a supportive tool to find trends & use as extra confirmation within strategies.
We included the counter-trade mode as a logical way to use the Confirmation signals as direct entries for longs & shorts within more contrarian trading strategies. Many traders can relate to using a trend-following indicator and having the market not respect its conditions for entries.
This mode directly benefits a trader who is aware that market conditions are generally not-so-perfect trends all the time. Acknowledging this, allows the user to use this to their advantage by introducing countertrend following conditions as direct entries, which tend to perform very well in ranging markets.
The big downfall of using counter-trade mode is the potential for very large max-drawdowns during trending market conditions. We suggest for making a strategy to consider introducing stop-loss conditions that can efficiently minimize max-drawdowns during the process of backtesting your creations.
Sensitivity Optimization
Within the Signals & Overlays™ toolkit, we allow users to adjust the Confirmation Signals with a Sensitivity parameter.
We believe the Sensitivity paramter is the most realistic way to generate the most actionable Confirmation Signals that can navigate various market conditions, and the Confirmation Signals algorithm was designed specifically with this in mind.
This script takes this parameter and backtests it internally to generate the most profitable value to display on the dashboard located in the top right of the chart, as well as an optimization table if users enable it to visualize it's backtesting.
In the image below, we can see the optimization table showing permutations of settings within the user-selected Sensitivity range.
The suggested best setting is given at the current time for the backtesting window that's customizable within the indicator. Optimized settings for technical indicators are not indicative of future results and the best settings are highly likely / guaranteed to change over time.
Optimizing signal settings has become a popular activity amongst technical analysts, however, the real-time beneficial applications of optimizing settings are limited & best described as complicated (even with forward testing).
🔶 Strategy Properties (Important)
We strongly recommend all users to ensure they adjust the Properties within the script settings to be in line with their accounts & trading platforms of choice to ensure results from strategies built are realistic.
🔶 How to access
You can see the Author's Instructions below to learn how to get access on our website.
TheMas7er scalp (US equity) 5min [promuckaj]This indicator was created according to TheMas7er's trading setup, that he reveal after 18 years of working in the industry. Claims is that this setup should give you good probability to predict the price movement for US equity.
This trading setup is only for New York equity trading session from 09:30 until 4pm. The market in which you should use it are the S&P 500 , Dow Jones, and Nasdaq. Perhaps it will work on some other but for those are good according to tests. It should not used on days with high-impact news, like CPI , FOMC, NFP and so on. The model can still work there but the probability on these days is way lower.
What is the base of this indicator, it marks what is called "The Defining Range"("DR"). This defining range is from 09:30am until 10:30am New York local time, it takes those 12 candles in the 5min chart. Indicator will mark the high and low of this range, including wicks. This will help you to already know at 10:30am, with possible good probability the high or low of the day.
There is also the "Implied Defining Range"("iDR") lines inside the "DR" range, which mark the highest body and the lowest body in the "DR" range.
*The rules (it is very simple to follow):
Chart must be set in 5min timeframe.
At 10:30am you still don't know which one will be the real high or low of the day, but only one will be true.
If price is closing on 5min chart above the "DR" it should give you good probability that the low of the "DR" is the low of the day, and vice versa - if price is closing below the "DR" it should give you good probability that the high of the "DR" is the high of the day.
"iDR" gives you an early indication about what high or low of the day should be. If price is closing above "iDR" you will have an early indication that the low of the "DR" should be the low of the day, and vice versa.
Note that about closing means really closing above or below, not just wicks.
Now, after this you can realize the magnitude of possibility.
You can use any entry model you prefer to trade, it doesn't matter if you use ICT concepts, smart money concepts, volume profile , eliot waves, braking the structure concept or whatever. There are so many possibilities for trading within this rule.
Enjoy!
Index OverlayNote: use this indicator only with New York Timezone + you need to understand ICT concepts already, this indicator simplifies the chart work.
Also, in this script I added some open-source scripts from creators here on tradingview, but I forgot to annotate their names...
If you recognize your script, please text me and I'll add your credits.
features
- displays Midnight and Sunday open lines
- day separation (from midnight)
- FVGs
- VWAP (calculated from midnight open)
- daily labels
- TDH & TDL (liquidity)
- trading time window (from 9:30 to 12:00 ny time)
HOW TO USE
Combined with daily bias, the idea is to wait for 9:30 to open, and then wait for a liquidation of TDH (plotted in blue) or TDL (in red).
Once it happens, you can look for ICT buy / sell model, ideally in the 5m TF.
Delbert Scalpbot Indicator 1.0.1Our script will catch market trend 1st by identify Highs, Lows, higher highs, higher lows, lower highs & lower lows created on market movement.
Based on market structure it will generate buy/sell signals on golden pockets like 0.62 fib level when a market structure break , it will start prompting ready to buy or ready to sell signal . Once price comes to our level the buy/sell signal will be generated and if any user set our indicator to his/her chart with alert function call , it will start giving u notification if u have trading view premium .
Best pert of this indicator is ,it will give u a proper entry price with SL & TP with proper position size as per your account balance & risk % per trade set by u :) you no need to go for a calculation .
Your position size = leverage x margin, so if indicator says u to take 1252$ in position size, u just go for 125.2$ in 10X leverage in cross mode .
With risk management tool set by us. User can set risk per trade also can set account balance in setting of it , for an example ,if user put 100$ trading account balance and set risk per trade 2% then each trade will be executed with considering maximum loss amount in $2 , not more than that . detail calculation set on script by Devs of Delbert team , and it is tested .
Preferred time frame to use 2,5,10,15 mins .
Preferred coins BTC / ETH or any large market cap coin .
Still it's not a financial advice to anyone , feedback appreciated if u like it . We will make it more better day by day .
- Team Delbert's Trading
Turtle Money ManagementThe Turtle Trading approach* is a trend following system that uses volatility for position size. *(Richard Dennis & William Eckhardt )
Turtle traders use the N unit system for risk management, which has its own advantages. This indicator offers beginners a simple interface that uses the same logic. Using ATR (Average True Range) to measure volatility.
The indicator shows the suggested position size and stop-loss price. You need to activate position line to see how it behaved in the past. Information about the Turtle system shows that it works in a daily candle. Intraday candles can be misleading (for ATR) because of this indicator use daily ATR by default. I leave the choice to you.
Limits recommended by Turtle Traders
-
Single Trade % 2 Maximum risk
Single Market % 4 Maximum risk
Closely Correlated Markets % 6 Maximum risk
Loosely Correlated Markets % 10 Maximum risk
Single Direction – Long or Short % 12 Maximum risk
Pure Mark Minervini 10%TP 5%CLBacktesting Mark Miniverni Template
By Donnie Lee
Overall, a good basic guideline from Mark Miniverni to choose which stock to buy. His selection are said to be stocks in stage 2 uptrend phase which could see price surge soon.
This script enable backtesting of Mark template (Investor's Business Ranking Excluded) on equity like stocks
Further fine tuning with additional filters are needed to find good entry with desired cut loss level and position sizing.
There is no holy grail strategy. Choose one with an edge that you are comfortable with and stick to it.
Losing is part and parcel of trading. Hesitation to cut loss can lead to big loss. And if you can avoid losing big, you might stand a chance to profit in the end.
Mark Miniverni Template
1. The current stock price is above both the 150-day (30-week) and the 200-day (40-week) moving average price lines.
2. The 150-day moving average is above the 200-day moving average.
3. The 200-day moving average line is trending up for at least 1 month (preferably 4–5 months minimum in most cases).
4. The 50-day (10-week) moving average is above both the 150-day and 200-day moving averages.
5. The current stock price is trading above the 50-day moving average.
6. The current stock price is at least 25% above its 52-week low (30% as per his book 'Trade Like a Stock Market Wizard').
7. The current stock price is within at least 25% of its 52-week high (the closer to a new high the better).
LEVERAGE AND RISK [ΙΒΟ]The most important issue for any trade is safe and risk management.
Before entering each trade, it is helpful to determine in advance what percentage of your budget you are risking.
The purpose of this indicator is to determine how much USDT you should open a trade on BYBIT and BINANCE according to the stop loss point you intend to put, depending on how much of your total budget you have risked while trading.
The reason why there are different values in both exchanges is entirely due to the different calculations of the way they enter. The result does not change...
For BYBIT: "Order by cost" option must be checked.
USER'S MANUAL:
1) First determine what percentage of your total budget you will risk, and then choose the percentage "HOW MANY % OF THE CASE DO YOU RISK?" write in the box
2) Then set your total budget in USDT "TOTAL CASE?" write in the box
3) See what percentage you put in your Stop Loss. "HOW MUCH IS YOUR STOP LOSS?" Enter your stop as a percentage in the box
4) "HOW MUCH IS YOUR LEVERAGE ?" In the option, write how many leverage you intend to open a trade with.
The results will be calculated automatically and will tell you how many USDT orders you need to place in BINANCE and BYBIT separately.
The reason why there are separate numbers is due to the way exchanges calculate. Please check manually first.
IMPORTANT NOTE:
This indicator is written entirely according to the current (12/11/2022) order table of the exchanges. In any change in the stock market tables, the result can be calculated incorrectly.
It is a completely helpful study. While giving your orders, you must manually check and calculate well.
It should never be used as an investment tool. It has been prepared purely for testing purposes.
TURKISH:
Her trade için en önemli konu kasa ve risk yönetimidir.
Her trade girmezden önce bütçenizin yüzde kaçını riske ettiğinizi önceden belirlemek bize fayda sağlar.
Bu indikatördeki amaç , trade ederken toplam bütçenizin yüzde kaçını riske ettiğinizi belirlediğinize bağlı olarak, koymayı düşündüğünüz stop loss noktasına göre BYBIT ve BINANCE üzerinden ne kadar USDT ile işlem açmanız gerektiğini belirler.
Her iki borsada farklı değerler olmasının sebebi , tamamen ikisinin de giriş şeklini farklı hesaplamasından kaynaklanıyor. Sonuç değişmiyor...
BYBIT için: "Maaliyete göre emir" seçeneğini işaretlemek gerekiyor.
KULLANIM KLAVUZU:
1) Önce toplam bütçenizin yüzde kaçını riske edeceğinizi belirleyip bunu yüzde olarak "HOW MANY % OF THE CASE DO YOU RISK?" kutusuna yazınız
2) Ardından toplam bütçenizi USDT cinsinden "TOTAL CASE?" kutusuna yazınız
3) Stop Loss'unuzu yüzde kaça koyduğunuza bakın. "HOW MUCH IS YOUR STOP LOSS?" kutusuna yüzde olarak stopunuzu giriniz
4) "HOW MUCH IS YOUR LEVERAGE ?" seçeneğine kaç kaldıraçla işlem açmayı düşündüğünüzü yazınız.
Sonuçlar otomatik olarak hesaplanıp size BINANCE ve BYBIT'te ayrı ayrı kaçar dolarlık USDT emri vermeniz gerektiğini yazacaktır.
Ayrı rakamlar olmasının sebebini, borsaların hesaplama şeklinden kaynaklanıyor. Önce kendiniz de manuel olarak kontrol ediniz.
ÖNEMLİ NOT:
Bu indikatör tamamen borsaların şu andaki (12/11/2022) emir tablosuna göre yazılmıştır. Borsa tablolarındaki herhangi bir değişiklikte sonuç yanlış hesaplanabilir.
Tamamen yardımcı olma amaçlı bir çalışmadır.Emirlerinizi verirken kendiniz de manuel olarak mutlaka kontrol ediniz ve iyi hesap ediniz.
Asla bir yatırım aracı olarak kullanılmamalıdır.Tamemen test amaçlı hazırlanmıştır.
Custom XABCD Validation and Backtesting ToolOverview:
We hear a lot about Gartleys, bats, crabs and the rest of the barnyard crew, but have you ever wondered what other creatures might be lurking out there yet to be discovered? Well wonder no longer, it's time to find out for yourself! The Custom XABCD Validation and Backtesting Tool allows you to define retracement ratios and targets for your very own patterns.
Tips:
(1) Adjust the patterns entry/stop/target configuration and see how it affects the pattern's backtesting results.
(2) Adjust the weights of pattern score components (% error, PRZ confluence, Point D/PRZ confluence), along with the entry minimum score requirements ('If score is above'), and see how it affects the patterns' results.
Pattern Scoring:
The pattern's score is an attempt to represent the quality of a pattern with a single metric. This is one of the most powerful aspects of the tool because it can quickly tell you whether a trade is worth entering. The score is based on 3 components:
(1) Retracement % Accuracy - this measures how closely a pattern's retracement ratios match your defined theoretical values. You can change the "Allowed ratio error %" in Settings to be more or less inclusive.
(2) PRZ Level Confluence - Potential Reversal Zone levels are retracements of the XA, BC, and/or XC legs. These levels indicate where a potential reversal might occur (i.e. pivot point D). The PRZ Level Confluence component measures the closeness of the two closest PRZ levels, relative to the height of the of the XA leg.
(3) Point D / PRZ Confluence - this measures the closeness of point D to either of the two closest PRZ levels (identified in the PRZ Level Confluence component above), relative to the height of the XA leg. In theory, the closer together these levels are, the higher the probability of a reversal.
While the score is percentage-based, it should not be confused with a probability. A score of 96% does not imply a 96% chance of success. It simply represents the average of the three components mentioned above, weighted according to the defined weight parameters. A score of 100% would mean that (1) all leg retracements match the defined theoretical retracement ratios exactly, (2) all PRZ retracement levels are exactly the same value, and (3) pivot point D occurred exactly at the confluent PRZ level.
Pattern scoring research has been ongoing since I introduced the concept with my Harmonic Pattern Detection, Prediction and Backtesting Tool (see below). So the way that the score is calculated is subject to change based on the results of that research.
(2) Two AlertsCurrent Trading View free plan allows only ONE active alert.
This simple indicator Allows to trigger this ONE and ONLY alert when price reaches Higher, or Lower price level.
You can set levels and turn alerts for them on/off in settings, or by just drag-n-dropping Horizontal lines on the chart.
To set the only alert you need to create new alert, and change it's following parameters :
condition : 2alerts
Any alert function() call
Feel free to modify it on your needs.
Largest Candle Profile - Selection ToolLargest Candle Profile
A simple script that finds the largest candle between a user's defined area. Search for the largest candle (high-low), largest body (open-close) or largest wick between any selected area.
How To Use:
Anchor pivot A and B on the area of choice.
Indicator can be used to detect levels of interest. Coded to be used with anchored vwap, flexible volume profile or liquidity gaps.
In action:
Beta ScreenerThis script allows you to screen up to 38 symbols for their beta. It also allows you to compare the list to not only SPY but also CRYPTO10! Features include custom time frame and custom colors.
Here is a refresher on what beta is:
Beta (β) is a measure of the volatility—or systematic risk—of a security or portfolio compared to the market as a whole (usually the S&P 500 ). Stocks with betas higher than 1.0 can be interpreted as more volatile than the S&P 500 .
Beta is used in the capital asset pricing model (CAPM), which describes the relationship between systematic risk and expected return for assets (usually stocks). CAPM is widely used as a method for pricing risky securities and for generating estimates of the expected returns of assets, considering both the risk of those assets and the cost of capital.
How Beta Works
A beta coefficient can measure the volatility of an individual stock compared to the systematic risk of the entire market. In statistical terms, beta represents the slope of the line through a regression of data points. In finance, each of these data points represents an individual stock's returns against those of the market as a whole.
Beta effectively describes the activity of a security's returns as it responds to swings in the market. A security's beta is calculated by dividing the product of the covariance of the security's returns and the market's returns by the variance of the market's returns over a specified period.
cov (a,b)/var(b)
Backtests Are BrokenThis script demonstrates a fatal flaw with Trading View backtests involving trailing stops. Trading View assumes the most optimistic case for trailing stops, always giving you the best case high/low of a bar instead of the worst or average case. Within a bar, the price could reverse against your position after the open and trigger your trailing stop for a loss before the price goes in your favor, but Trading View backtests do not consider this and instead always give you the best case returns. This allows a trivial strategy to appear as though it would perform miracles.
This strategy enters on a random bar and sets a trailing stop triggered one tick better than the current price with 0 trailing distance. Trading View then generously gives this strategy the difference between the open price and best possible wick as a profit. The only way this strategy can lose money in simulation is if the price goes straight down after entry and never retraces. It works on all symbols on all timeframes due to this systematic problem with the Trading View backtester.
Anti-trap Trailing Stop Loss by KalyanBetaAnti-trap Trailing Stop Loss by KalyanBeta or ATSL
ATSL changes color when there it identifies price manipulation/ SL Hunting / Traps by Smart Money.
Change in color may be an exit signal for your trade in current direction.
This is a very simple indicator which can be used to predict Traps or Stop-loss hunting.
This can help in Trailing Stop-loss and in Exit decisions along with your own strategy.
ATSL may be used in all timeframes.
Please back-test it along with your strategy and then use it for Trailing the Stop-loss without getting trapped by operators and stop-loss hunters.
All the best.
Do post your feedback in comments below. Thank you.