Схождение/расхождение скользящих средних (MACD)
MACD Price Projected Bands [MPPB] Strategy for NIFTY / BTC 2 minMACD Price Projected Bands is an intraday NON REPAINTING Strategy to be used over BTCUSD and NIFTY on 2mins charts for optimum results!!
How the Strategy works
The strategy uses MACD with standard configuration as its main component.
The adaptive Bands are calculated over the MACD lookback, and MACD crosses of the adaptive bands are projected over the Price for creating a decision logic
A cyclic Trend Filter is used to calculate the Optimum Entry and Exit Points for the Strategy,
Levels are also plotted over the price projected bands for better visualisation of the targets!
What is used !
Macd_config : { fast:12 , slow:26 , signal:9 }
Lookback Length : 55
The Strategy has Provision for Alerts
You get Two signals
1. MPPBS Buy Signal
2. MPPBS Sell Signal
How the Visual Target System Works and How to trade Using this Strategy
An Adaptive Projected Band is constructed using MACD for traders to get Visual inputs regarding targets!!
The Trading Methodologies are in below Charts
For Short Trades
For Long Trades
Strategy Configurations for Backtest
For Englishmen!
The Backtesting Rules in the Strategy calculates only when order gets filled, the basic pyramiding in the strategy is set to 1, i.e The maximum number of entries allowed in the same direction is set to 1,
Also we trade only 1 quantity of the security with initial capital of 100000USD, and The commission type used in the strategy is set to 0.05 USD that means we pay 0.05USD as commissions in every trade!
For Coders!
{
calc_on_order_fills=true,
pyramiding=1,
default_qty_type=strategy.fixed,
default_qty_value=1,
initial_capital=100000,
currency=currency.USD,
commission_type= strategy.commission.cash_per_order,
commission_value = 0.05
}
How can you get access
Only do private message to me, donot use comment box for requesting access!
RSI of MACD Strategy [Long only]This strategy uses the RSI on MACD indicator.
BUY
====
When RSI indicator crossing over 30 or 35 line and price above slow ema
Note: when the position already taken, you may reenter on the purple candle
Partial Exit
==========
Partial profit taking option is available in settings. If this is selected , 1/3 position exited when RSI indicator crossing down 80 line
Close
=====
When RSI indicator crossing below 15
Stop Loss
=========
I havent used hard stop loss in this strategy. Reason is , when price going down , indicator may go up ... so just wanted to ride along with indicator ...
Stop loss mentioned in the settings is used in calculation of how many units can be be purchased based on risk level
Tested with SPY and QQQ ETFs on hourly chart
Warning
=========
For the eductional purposes only ...
This is not a financial advise. please do your own research before taking any trading decission
MACD Strategy (SL/TP Levels and Risk Management)Strategy based on MACD and EMA.
- Risk/Reward Ratio can be adjusted
- SL level can be slightly adjusted (Takes the last low/high as SL)
- Visual representation of SL and TP levels
- Risk management => 1 % max loss on a trade
MACD including 6-period Forecast and Divergences█ OVERVIEW
This is my personal interpretation of the classic MACD Indicator. I am using the MACD as part of my analysis, and often I was wondering when I can expect the next signal (e.g. a Histogram cross). As I had come across some EMA forecast logics on tradingview, my goal was to use the EMA forecast calculation as basis to come to a complete MACD forecast. Here is the result.
Starting point is the classic MACD which is then plotted with MACD-Line, Signal Line and Histogram. In addition to the classic MACD, a 6 period Forecast for MACD, Signal and Histogram is available and divergences can be displayed on either the Histogram or the MACD Line.
Important:
As I am considering the closing price of the current candle as the basis for the calculation, the forecast values will REPAINT. But in my opinion this is fine as this indicator will not provide direct trading signals, but more an outlook into a potential future.
█ CALCULATION LOGIC
Below some details regarding the additional functionalities:
MACD Forecast:
The MACD Forecast is mainly based on a combination of EMA Forecasts. The inspiration for this basic forecast calculation is taken from the below tradingview members:
--> EMA Forecast input taken from "Triple MA Forecast" by yatrader2
--> Forecast Bias input taken from "Fancy Bollinger Bands" by BigBitsIO
When showing the forecast, the following options are available:
- Forecast Type: Determines if the Forecast is assuming a Flat price (last values of the MA calculation are replaced by current value) or if a Linear Regression is taken
- Number of candles taken for Linear Regression Calculation
- Bias of Forecast (Based on the recent Average True Range, the forecast values are either more bullish or more bearish calculated. "Neutral" turns off this function)
- Number of ATR Periods used to calculate Bias adjustment value
- Possibility to weight the Bias via a Multiplier - Default value is 1
Based on the above inputs, the forecasted values for MACD, Signal Line and Histogram are calculated and plotted for the next 6 periods.
Divergence Detection:
Based on the default tradingview divergence script with some adjustments:
- User can select to use either Histogram or MACD Line as basis for Divergence detection (Histogram by default)
- User can select if Divergence detection should be based on the candles including Wicks or only the Candle Bodies (Wicks by default)
█ DISCLAIMER
This is an experimental indicator and I do not know if my theory works in real life. So treat this not as financial advise, but purely for entertainment and educational purposes.
I publish this code open so that everyone can re-use it or hopefully even improve it.
Let me know if you have any ideas for improvement and if it is within my coding capabilities (which to be honest are quite limited), I will try to accomodate it.
Have fun.
On Chart Reverse MACD HistogramThe On Chart Reverse MACD Histogram is a visual representational spin of the original MACD Histogram to assist the end-user in their decision making for entry, exit and risk management, as well as freeing up space for the chart.
The On Chart Reverse MACD Histogram, which very basically is a reverse engineered calculation of the MACD's Histogram gives the user a visual representation of the relationship between the current price and the MACD's Histogram on the chart instead of having to reference the MACD itself. At a glance this can then be used to visually see on the chart the closing price level needed in order to change the MACD's Histogram momentum either up or down.
Optional Settings Include:
-------------------------------
1.) Show/Hide Reverse MACD Histogram Momentum text
2.) Change the Reverse MACD Histogram Momentum information type (Basic/Detailed)
3.) Change the Reverse MACD Histogram Momentum text size
4.) Change the Reverse MACD Histogram Momentum text color
5.) Change the Reverse MACD Histogram Momentum text left margin
6.) Show/hide the Reverse MACD Histogram Momentum text currency
7.) Change the Reverse MACD Histogram Momentum text decimal value
8.) Show/hide the MACD Histogram Momentum Level
9.) Show the MACD Histogram Momentum Level As Columns *
* Please Note: When using the "Show Histogram Level As Columns" setting, in order to display this feature correctly without distorting the chart, click the ⚙️ (cog) icon in the bottom right corner of your chart and select the 'Scale Price Chart Only' option.
Better OBVOBV with William C. Garrett's Approximation
In the classical OBV (On-Balance Volume) indicator, it simply takes the idea from traditional tape reading - treat the "up tick" as Buy, "down tick" as Sell, and it assumes no change in price as neutral* (*which is not the case in tape reading).
When it comes to interpret the daily volume as such, errors will add up cumulatively. For example, there are days when a Doji Star with high volume just merely one cent higher than yesterday price and the whole day volume would be taken as a BUY Volume....
Here is a gentlemen, William C. Garrett, attempted to break down the daily volume into two parts in his book - "Torque Analysis of Stock Market Cycle".
Published indicator has two modes: Cumulative and Time Segmented. Time Segmented Volume (TSV) - performs a MACD operation on the Garrett Money Flow.
Note on Divergence:
When using a indicator as Time Segmented Money Flow, divergence would surely occur on and off. This is where Wyckoff 3rd principle comes into play - "Effort vs Result" that is not matching. Meaning that the cumulation of shares goes in one direction while the price goes another direction.
MACD Seasons by Dr Ken Longthis specific Moving Average Divergence Convergence Seasons Indicator is made by Dr Ken Long Tortoise Capital brings a unique way of the flow of the market, the 4 seasons are used to describe the areas of the MACD so for example when the area is below zero and hasn't crossed the EMA 5 we call that winter which is very bear bias, once you get support in winter and crosses above the EMA 5 we call that fall which is the first indication of support for price and some weakness toward the downside. if the MACD is above the zero line we call that summer which is a very bull bias valued area, and once it crosses below the EMA 5 then that's where we call fall mode showing us weakness and very slight indication of a possible reversal. the MACD can be both used for swing trade and day trading, it provides a unique insight to the markets showing the layers of a trend using seasons.
MACD with Lines - ChartWhat is MACD with Lines - Chart and why do you need it?
I use it for chart analysis to identify key macd /signal levels from which bullish / bearish market structure continues to develop.
Chart means that every Macd /Signal cross above/below the signal lines will be notified on your Chart and not on your MACD Indicator. To see them on your chart please choose "MACD with Lines - Default" in my library.
Once Signal, Macd or the Histogramm cross over or under your upper or lower signal line you will see background colors which you can adjust in the settings menu.
This small indicator is for a larger project which will be uploaded in several days/weeks.
MACD with Lines - DefaultWhat is MACD with Lines - Default and why do you need it?
I use it for chart analysis to identify key macd/signal levels from which bullish/bearish market structure continues to develop.
Default means that every Macd/Signal cross above/below the signal lines will be notified on your MACD Indicator and not on your chart. To see them on your chart please choose "MACD with Lines - Chart" in my library.
Once Signal,Macd or the Histogramm cross over or under your upper or lower signal line you will see background colors which you can adjust in the settings menu.
This small indicator is for a larger project which will be uploaded in several days/weeks.
Combo Backtest 123 Reversal & MACD Crossover with Trail and Stop
This is a modification of @HPotter "Combo Backtest 123 Reversal & MACD Crossover" script.
I've added a trail stop, basic leverage simulation and stop loss.
Below is HPotter's explanation of the script principals.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
MACD – Moving Average Convergence Divergence. The MACD is calculated
by subtracting a 26-day moving average of a security's price from a
12-day moving average of its price. The result is an indicator that
oscillates above and below zero. When the MACD is above zero, it means
the 12-day moving average is higher than the 26-day moving average.
This is bullish as it shows that current expectations (i.e., the 12-day
moving average) are more bullish than previous expectations (i.e., the
26-day average). This implies a bullish , or upward, shift in the supply/demand
lines. When the MACD falls below zero, it means that the 12-day moving average
is less than the 26-day moving average, implying a bearish shift in the
supply/demand lines.
A 9-day moving average of the MACD (not of the security's price) is usually
plotted on top of the MACD indicator. This line is referred to as the "signal"
line. The signal line anticipates the convergence of the two moving averages
(i.e., the movement of the MACD toward the zero line).
Let's consider the rational behind this technique. The MACD is the difference
between two moving averages of price. When the shorter-term moving average rises
above the longer-term moving average (i.e., the MACD rises above zero), it means
that investor expectations are becoming more bullish (i.e., there has been an
upward shift in the supply/demand lines). By plotting a 9-day moving average of
the MACD , we can see the changing of expectations (i.e., the shifting of the
supply/demand lines) as they occur.
WARNING:
- For purpose educate only
- This script to change bars colors.
Self-Optimising MACD (Experimental)Hi guys, just thought I'd share a small part of an idea i've been working on.
One of the biggest problems with algo trading is optimisation and finding a way to constantly adapt to the market conditions as time unfolds.
First of all... You should NEVER EVER trade just using a MACD, including this study, and I only produced this script in a small amount of time, so make sure you backtest it properly before using it. When backtesting, it is my advice that your sample size should be at least 5000 trades, but I recommend 10000 in order to get sufficient statistical significance.
Also, I am not a financial advisor, and any trading based decisions are your sole responsibility.
Anyways...
This script is simple... it simply uses 4 different MACD's and tracks their profit/loss and automatically uses the one with the most historical profit at any given time to execute a trade. The type of MACD will obviously change as market states fluctuate.
Included are : Hull MACD, Ema MACD, Sma MACD and VWMA Macd.
You can adjust all four of their settings to your desire.
The trade execution is simple and definitely flawed... it simply tracks the MACD when it has a crossover for long, and then the opposite for short.
The green line represents the performance of the top MACD for Longs at any given time. This line refreshes once a year, and where it is in relation to price, reflects how profitable it has been I.e - the higher it is the better.
The Red line represents the performance on the Short side, and again, it reflects profit/loss, but this time the LOWER the line is in relation to price the better.
There is no exit strategy in place! This is why I do NOT recommend trading off this script alone, but to use it as a tool to help optimise your choice of MACD.
However, your exit strategy could change your optimal choice of MACD, so keep that in mind.
The lookback period represents how far the script will track the performance at any given time. This will change your results. The longer the period, the more it will show long term success and vice versa.
This optimisation process could be done with different indicators, moving averages, or even multiple strategies to find the most statistically viable option at any given time... if you wish to have this process coded into your strategies or indicators, message me.
Enjoy.
MACD Intraday Trend - RSJMACD Intraday Trend is an Indicator developed through an adaptation made of the original MACD created by Gerald Appel in the 1960s.
Through years of trading it was observed that by changing the parameters of the MACD with Fibonacci proportions we achieve a better presentation of the continuity of the trend movements, making that it is possible to more efficiently detect the beginning and end of a price trend.
Due to its efficiency in detecting price trends, it is also possible to identify very clearly the divergences of tops and bottoms, thus taking better advantage of trading opportunities.
-> Every time the histogram is positive and crosses the signal line down there is a high probability that an uptrend will end and a downtrend will start.
-> Every time the histogram is negative and crosses the signal line up there is a high probability of ending a downtrend and starting an uptrend.
The Indicator MACD Intraday Trend works with any currency pair, at any candlesticks timeframe and with Renko charts.
The Indicator has an amazing performance on Renko charts.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MACD Intraday Trend é um Indicador desenvolvido através de uma adaptação feita do MACD original criado por Gerald Appel nos anos 1960.
Através de anos de trading foi observado que alterando os parâmetros do MACD com proporções de Fibonacci conseguimos uma melhor apresentação de continuidade dos movimentos de tendência, fazendo com que seja possível detectar de forma mais eficiente o início e fim de uma tendência de preços.
Devido sua eficiência em detecção de tendências de preços é possível também identificar com muita clareza as divergências de topos e fundos, desta forma aproveitando melhor as oportunidades de trading.
-> Toda vez que o histograma estiver positivo e cruzar a linha de sinal para baixo existe uma alta probabilidade de fim de uma tendência de alta e início de uma tendência de baixa.
-> Toda vez que o histograma estiver negativo e cruzar a linha de sinal para cima existe uma alta probabilidade de fim de uma tendência de baixa e início de uma tendência de alta.
O Indicador MACD Intraday Trend funciona com qualquer par de moedas, em qualquer tempos gráficos com candlesticks e gráficos do tipo Renko.
O Indicador tem uma performance surpreendente em gráficos do tipo Renko.
MACD classic strategy setupsetup for a classic MACD strategy with some filter to choose.
it keep the default setup of MACD because is the most popular.
it place the stop loss and take profit based on the trading rush video of MACD, if you want a different profict factor you can change until to reach 3, over this as a fixed risk reward don't have so much sense
MACD Crossover Strategy with EMA200 Trend DetectionSimple MACD Strategy Indicator.
Rules:
- MACD Crossover with Signal Line
If
- MACD Crossover above zero line
- Price is below EMA200
=> Sell
If
- MACD Crossover below zero line (buy)
- Price is above EMA200
=> Buy
CT Reverse MACD CrossIntroducing the Reverse MACD Cross
MACD.... short for moving average convergence/divergence, is a trading indicator used in technical analysis of stock prices, created by Gerald Appel in the late 1970s.
It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price.
Prior work by Johny Dough showed how we can compute the price level required to make the MACD stay at its current level,
and also how to compute the price level required for the MACD to cross the zero line.
I have brought that idea to it logical conclusion for the MACD by creating a new function which also computes the price level required to cross the MACD with its signal line.
This allows the user to quickly see all of the most relevant information from the MACD and the actual price levels where the indicator will change its posture.
The MACD indicator (or "oscillator") is a collection of three time series calculated from historical price data, most often the closing price.
These three series are:
the MACD series proper shown here in blue
the "Signal Line" or "average" series shown here in red
the "Divergence" series which is the difference between the two shown here as a histogram.
There is also usually a baseline set at zero.
The MACD series is the difference between a "fast" (short period) exponential moving average (EMA), and a "slow" (longer period) EMA of the price series.
The average series (signal line) is an EMA of the MACD series itself.
The MACD indicator thus depends on three parameters, namely the time periods of the three EMAs.
The notation "MACD ( a, b, c )" usually denotes the standard indicator where the MACD series is the difference of EMAs with characteristic times a and b, and the average series is an EMA of the MACD series with characteristic time c.
There is an infobox which displays...
Whether the MACD is falling or rising
the price level which will make the MACD to change from rising to falling or vice versa
the price level which will cause the MACD to cross the signal line
the price level which will cause the MACD to cross the zero line
The most commonly used values are 12 for the fast, 26 for the slow, and 9 for the signal line, that is, MACD ( 12, 26, 9 ) .
The MACD and average series are customarily displayed as continuous lines in a plot whose horizontal axis is time oscillating above and below a zero line, whereas the divergence is commonly shown as a bar graph / histogram.
A fast EMA responds more quickly than a slow EMA to recent changes in a stock's price.
By comparing EMAs of different periods, the MACD series can indicate changes in the trend of a stock.
It is claimed that the divergence series can reveal subtle shifts in the stock's trend.
Since the MACD is based on moving averages, it is a lagging indicator. As a future metric of price trends, the MACD is less useful for stocks that are not trending (trading in a range) or are trading with unpredictable price action.
SmoothOps v1 - StudyThe purpose of this script was to fine tune an indicator on BTCUSDT . I think the results speak for themselves in the study version.
This is a script that uses the MACD to predict future price movement. The original MACD signal lags too much for my taste so I went searching for something that could give signals sooner. I decided a smooth macd would help filter out noise and grabbing the highest values and lowest values over the past number of bars. I spent several days backtesting different settings and combinations of signals to arrive at what you see now. This strategy has been fine tuned for BTC /USDT on Binance, so I suggest you only use it for that. Any other coin/pair and exchange will need a new backtest since the data will be different. This is not a generalized indicator like everything else. It's specifically good at one thing: prediction BTCUSDT on Binance.
I wanted to also add the histogram from the study version but there wasn't a good way to do that, so I came up with a visual solution using color transitions on the 168sma. When the color changes from blue to red it means the histogram is reversing.
I added forecasting to the moving averages to help people predict future movement so they can make decisions by something other than just a sign of when to buy/sell.
There is a transition prediction feature that blurs the macd signal to show when a reversal may occur before it happens.
I also added precitions into the indicator that show when there may be a possible bounce or major move because of a current squeeze in the moving averages.
And finally...
My biggest issue with indicators that other people sell is that they become visually deceptive when using supports and buy/sell signs. I came up with a solution that shows you exactly if you made profits during the trade or not. Hopefully this will inspire others to do something similar.
How to use:
Use only on BTCUSDT Binance.
Set the preset to the timeframe you want. I HIGHLY suggest only using the 1h timeframe. It gives the best profit over time.
Set the preset to custom if you want to try using your own settings.
You can change the source input if you want. ohlc4 usually works best for 1h.
Adjust the moving averages to your liking. You can also toggle the checkbox to completely remove them.
Turn on/off the forecasting of the moving averages.
Turn on/off the additional signals with the checkbox.
Transition prediction uses a blur variable to signal when the macd might be slowing down and reversing.
Bounce prediction and sensitivity tries to find possible reversal areas when price falls too fast or hits a specific moving average.
Macro signals just tries to show when price is above the 168moving average to get the macro trend.
Squeeze prediction indicates when a possible strong move may occur. Could go up or down though.
Show profit is my favorite part because it shows if you made profit during the last trade visually and non deceptively.
SmoothOps v1 - StrategyThe purpose of this script was to fine tune an indicator on BTCUSDT. I think the results speak for themselves.
This is a script that uses the MACD to predict future price movement. The original MACD signal lags too much for my taste so I went searching for something that could give signals sooner. I decided a smooth macd would help filter out noise and grabbing the highest values and lowest values over the past number of bars. I spent several days backtesting different settings and combinations of signals to arrive at what you see now. This strategy has been fine tuned for BTC/USDT on Binance, so I suggest you only use it for that. Any other coin/pair and exchange will need a new backtest since the data will be different. This is not a generalized indicator like everything else. It's specifically good at one thing: prediction BTCUSDT on Binance.
Use this in combination with the Study version so you can visually see what is happening when you change settings.
How to use:
Use only on BTCUSDT Binance
Set the preset to the timeframe you want. I HIGHLY suggest only using the 1h timeframe. It gives the best profit over time
Set the preset to custom if you want to try using your own settings.
You can change the source input if you want. ohlc4 usually works best for 1h
Change the date range if you want to do a specific timeframe.
Change the stop loss % if you want, but I didn't find much of a difference when using it on 1h
MACD Bull Crossover and RSI Oversold - AlertsHello everyone, these are the alerts for my previous "MACD Bull Crossover and RSI Oversold" Long Strategy. This version currently does not support stoploss and takeprofit alerts but the next update will.
Pure Volume Divergence [NeoButane]PVD: MACD with volume as source.
Options to configure:
OBV, PVT, or MFI as source
Display PVD or a faux zero-based oscillating CVD
Renovation-10 (Including 10 Traditional Indicators)This idea is not rare. It is just a combination of 10 most well know and traditional Indicators to form one renovated indicator. There are Moving Average (MA), Volume (V), Bollinger Band (BB), Relative Strength Index ( RSI ), Stochastic RSI, Modified Stochastic RSI, Moving Average Convergence Divergence ( MACD ), Average directional index ( ADX ), Average True Range (ATR) and Parabolic Stop and Reverse (PSAR). These indicators most I found was just showing entering position strategic alone. I just want to know how well them work together when combination. I modified many times and thinking for the strategic enter and exist position with the choice of these 10 indicators to maximize the profitability which shows in strategic tester in every stock and conditions.
THEORY:
Fluctuation of price is like a Wave which I categorized it into four period. They are Sideway, Breakout Positive and Negative, Retracement and Consolidation. Breakout is rare to happen, either go up or go down. After a breakout usually will have small retracement, then trend will go for sideway. After long period of sideway, the wave is starting to run out of energy and there will be consolidation period.
STRATEGIC OPTION:
S: Sideway Period
B: Breakout Period
R: Retracement Period
(+): Buy
(-): Sell
PROBLEM:
1. Not performing very well at very penny stock which the graph looks like barcode.
Suggesting can change daily graph to weekly graph to avoid.
2. Be careful with Sideway entry signal because sometimes price may continue go down. You will stuck at middle if you enter without confirmation.
Confirm the price is stable at support by current low is higher or equal to past three to five day low before entry.
3.Always remember Breakout is rare, do not push for luck
Always make profit at Sideway and Retracement trend. Can Sell half only at BB when breakout buying signal is available, to avoid losing chance of chasing breakout.
4. Breakout selling signal 2 may delay
After breakout, make sure sell all when 2-3 red candle appeared or When BB is squeezing.
5. Other tools may required to confirm entry position.
These combination strategic is more to personal experiences and knowledges, it hard to adjust in coding for strategic position.
This is my first publication and I just do it for fun, having fun in reading the script and creating own ideas.
Information provided is only educational and sharing , should not be used to take action in the markets.
Buy and Sell Signals (With Stops and TP) - No Repaint
This strategy is primarily based on the MACD-indicator, but signals are filtered with the 200 ema.
This indicator gives you for every trade a stopp loss and take profit line.
As with every other strategy risk management is key. The trades taken have all 1.5:1 risk ratios, so when you lose one trade and win one you are still in profit.
This will only work if you calculate your position size accordingly when actually trading!
Without leverage:
position_size = (portfolio * loss_per_trade) / (stop_loss_in_percent )
Leverage:
position_size = (portfolio * loss_per_trade) / (stop_loss_in_percent * leverage)
For example:
portfolio = 100000
loss_per_trade = 0.01 | I only want to lose 1% per trade
stop_loss_in_percent = 0.04 | The stoploss is 4% away from our entry
(100000 * 0.01) / 0.04 = 2500 => if this trade hits my stop, I will only lose 1 % of my portfolio.
This strategy works well with:
BTCUSD 30m
BANDUSDTPERP 5m
EUR DOLLAR 15m
Of course it can be applied to anything, but you should firstly validate the strategy via backtest for the according trading pair and timeframe as it can perform differenlty in various timeframes.
This script does not repaint.
If you are interested in this strategy dm me.
Good luck on your trades!