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.
Схождение/расхождение скользящих средних (MACD)
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
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.
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
RSIPRO TrendIndicatorThis RSIPRO indicator is based on RSI , BB and EMA and it has LONG/SHORT alerts for signals
In script settings you can specify:
1) Dispertion value, 0.15 by default. Dispertion around bolinger bands with RSI as source signal.
2) Use smoothing option and smooth factor value (3 by default). It smoothes RSI with moving average filter.
3) Enable/Disable filter to show signals only after RSI overbought/oversell zones
Disabled by defaults and RSI is 65 for upper zone and 35 for lower zone.
You can also specify how many bars back before current bar this filter must do. It's 10 by default, you can vary it up to 90.
Best fits for 4H timeframe. Also good for 15min scalping strategy. Fits for any crypto coins, forex, metals, oil and bonds.
This is invite only script. PM me if you want to test it.
On Chart Reverse MACD CrossThe On Chart Reverse MACD Cross is a visual representation of the Reverse MACD Cross calculation which can be used 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 Cross, which very basically is a smoothed reverse engineered calculation of the MACD Signal Line gives the user a visual representation of the relationship between the current price and the MACD Signal Line instead of having to reference the MACD itself. At a glance this can then can be used to visually see on the chart the closing price level needed in order to cross the MACD either up or down.
Optional settings include:
-------------------------------
1.) Show/Hide the Reverse MACD Cross label
2.) Change the Reverse MACD Cross label text size
3.) Change the Reverse MACD Cross label left margin
4.) Show/hide the Reverse MACD Cross label currency
5.) Change the Reverse MACD Cross label decimal value
Please PM me to obtain access
Reverse MACD Cross + Histogram DivergenceThe Reverse MACD Cross + Histogram Divergence is in essence the same MACD you all know and love with two added features which can be used to assist the end-user in their decision making for entry, exit and risk management.
The first feature is a Reverse MACD Cross price, which very basically is a smoothed reverse engineered calculation of the MACD Signal Line in relation to the current price level. At a glance this can then be used to determine the closing price level needed in order to cross the MACD either up or down.
The second feature is visual MACD Histogram regular as well as hidden divergences. This feature was added as MACD histogram divergences are not as easy to
spot as on the RSI for example, and can help the end-user train their eyes in order to spot them more accurately.
Divergence colors and description:
------------------------------------------
Green : Regular Bullish Divergence
White : Hidden Bullish Divergence
Red : Regular Bearish Divergence
Orange : Hidden Bearish Divergence
Optional settings include:
-------------------------------
1.) Show the Histogram only (Hide the MACD and Signal lines)
2.) Show/Hide the Reverse MACD Cross label
3.) Change the Reverse MACD Cross label text size
4.) Change the Reverse MACD Cross label left margin
5.) Show/hide the Reverse MACD Cross label currency
6.) Change the Reverse MACD Cross label decimal value
7.) Show/hide the MACD Histogram Divergence lines
8.) Change the MACD Histogram Divergence line offset
9.) Show/hide the MACD Histogram Divergence arrows
10.) Change the MACD Histogram Divergence arrow offset
11.) Change the MACD Histogram Divergence lookback (No. of bars to lookback)
Please PM me to obtain access.
rocketLaunchI wanted to see if I could programmatically identify the conditions I saw just before Bitcoin broke its all-time high end of 2020. The signal picks up several rocket launch moments prior to launching which is quite cool. It also picks up a few false starts, however. In any case, I would have loved to be stopped out on those false starts but been there for all the starts this thing picks up.
It could probably use more confirmatory elements such as trailing conditions and volume perhaps?
BINANCE:BTCUSDTPERP
MACD Crossover with signalsMACD Crossover with signals - a simple trading indicator based on classic MACD.
It shows crossovers and plots them on chart as "Long" or "Short".
The MACD itself is not plotted in order to keep your charts cleaner.
By default, all the crossovers are displayed on the chart.
However, you can use only trend-based ones. They are filtered according to the trend (which is plotted and colored using 200 period EMA) and the "zero-line rule" of the MACD.
So if you consider using only trend-based signals, the indicator will only show Long signals on an uptrend and Short signals on a downtrend.
All signals/lines can be turned on/off and styled in the settings menu.
It can be used with all major timeframes and assets (crypto, fx, cfd, stocks, commodities etc).
Consider using it with respect to your trading style, money- and risk-management as well as other strategies and indicators.
If it was useful for you – hit the Like button and share it with your friends - it's free 😉
RedK_xMACD: Extending the classic MACD with a simple filterThis is a simple concept that attempts to squeeze more price action insights from the classic MACD
we add a 3rd (longer length, slower) Moving Average line that acts as a trend filter - so whenever we are ("we" = the price and the 2 other MAs) are above that filter line, we consider ourselves to be in the up-trend territory, and vica versa .. so the MACD calculation here - that is represented by the main (reg/green) line in the plot - will represent the distance between the slow MA and the filter MA - when that MACD line crosses the zero axis up or down, that represents the trand reversing from one direction to the other.
A signal line (a smoothed version of that MACD line) is still added for 2 reasons
1 - the signal line makes it easy to see if an eminent trend reversal is to be expected
2 - to stay visually-consistent with the classic MACD :)
the distance (or delta) between the other 2 MAs continues to reflect an indication of the short-term momentum and is what the histogram represents.
we still have the benefit of the convergence/diversion between the price itself and the histogram similar to the classic MACD
this MACD version will also clearly show how price and momentum action will lead the trend -- i know that's a big discussion topic :)
i added a classic MACD at the bottom panel, and used the same length settings (fast / slow) for side-by-side comparison
i coded this when i found that i use 3 moving averages all the time during my chart analysis, and while i'm a big fan of the classic MACD, i wanted to find a simple way to get my MACD to reflect what the 3 MAs on the price chart show. turned out to be insightful - i hope other fellow traders may find this useful
the code is simple and i started it from the built-in MACD in TradingView. Other annotations are added to the chart here as i believe this will better explain how the eXtended MACD works
- there are 4 reversals that occur in that chart, and i chose to show one in step-by-step fashion.
if more explanation is needed to how this can be used, pls let me know in the comments.
Different Resolutions TrenderThis script aims at giving the quickest insight over different time resolutions and their relative trends.
The graph is updated on every new bar.
5 periods of time can be configured with each their own signal periods.
For each period, you get an insight on:
- its general movement in comparison the latest close (green: up / red: down)
- its length (ex: 50 minutes)
- its movement (ex: -0.66%)
- its probability (ex: 2 out of 3 oscillators confirming the trend)
I would be happy to add any useful content on this.
Especially being able to offset this predictive general trend to the right on the last bar, which I do not think is feasible on Pine so far.
Fully customisable indicator in one chart (EMA MACD RSI Stoch)While facing problem having too many indicator charts on the same screen, this squashed the candle chart and produces flat lines. This script helps to put them all in 1 chart and label the indicators where it meet the long/short conditions. Backtest is available to check the multiple indicators for a Long / Short trade, eg. if the EMA is on a long trend, but RSI and MACD is at oversell this could put a long trade. This gives the trader a flexibility to customise their trade setup
EMA (Primary)
4 period options (fast, slow, long, long2)
Shows blue background when the trend is up
Red when down
The trend can be configured to (Fast > Slow), (Fast > Slow > Long), (Fast > Slow > Long > Long2)
MACD (Secondary)
3 options to indicate signal (MACD/Signal Crossover), (MACD/Signal + Direction Crossover), (MACD/Signal + Direction Crossing)
Configurable MACD options
Option to determine the length of MACD crossing to indicate the trend MACD is heading towards
MACD/Signal Crossover when MACD crosses the Signal
MACD/Signal + Direction Crossover sees if the histogram is up or down
MACD/Signal + Direction Crossing checks the previous and current candle where current MACD crosses Signal but the previous MACD is below Signal
RSI (Secondary)
2 options (RSI Upper/Lower Crossover), (RSI Crossing)
RSI options
Option to determine the length of RSI crossing
RSI Upper/Lower Crossover looks at the RSI vs the band
RSI Crossing checks current candle entering band but previous candle is outside band
Stoch (Secondary)
3 options (K/D Crossover), (K/D + Upper/Lower Crossover), (K/D Crossing)
Stoch options
Stoch crossing length
K/D Crossover when K crosses D
K/D + Upper/Lower Crossover looks at the band
K/D + Crossing is when K or D entering band but previous is outside band
Backtest
Different backtest scenario, finetuning in progress..
Myx.Mir_ MACD.V2 ][ c/w Hist.Color & LabelMoving average convergence divergence ( MACD ) is commonly and widely used for Technical Analysis .
// Basis- based on default setting
macdLine, signalLine, histLine = default setting
with additional "cosmetic/ Makeup"
1) for 4R1G set up Trader. Histogram color as follows:-
a) if Hist => 0 = Hist > Hist ? color.green : na, Hist < Hist ? color.red : na
b) if Hist <= 0 = Hist < Hist ? color.green : na, Hist > Hist ? color.red : na
2) crossover MACD Line, SignalLine- with label "EN" / "EX"
Do not follow the signal blindly. Trader's should be able to identify the trend whether there is uptrend, sideways and downtrend.
Entry and/or Exit are based on Trader's risk appetite.
[fareid] Quick Backtest Framework█ OVERVIEW
This Framework allows Pine Coders to quickly code Study() based signal/strategy and validate its viability before proceed to code with more advance/complex customized rules for entry, exit, trailstop, risk management etc..
This is somewhat an upgraded version of my earlier personal template with different strategy used, cleaner code
and additional features.
█ USE CASES
- You have an idea for trade signal and need a quick way to verify its potential before writing lengthy/complicated code
- You found a study script for trading signal in public library and want to validate it profitability with minimum effort before including it in your trading playbook
█ FEATURES
- Alert: Ready to use alert function based on signals from your custom indicator.
- Visual Backtest: Auto-plot entry, stop-loss and take profit for simple strategy performance analysis
- Backtest Statistic: Provide basic key metrics based on backtest strategy
- BTE External Signal Protocol: Ready to use code that will supply required state to PineCoders Backtesting & Trading Engine if you wish to have more advance and sophisticated backtesting engine
Notes: All of the above features have On/Off toggle
█ Description & How To Use
This Framework consist of 5 Modules but you only need to edit the first 2 Modules:
Module1: Indicator
Module2: Framework Input Protocol
Module3: Alert
Module4: Backtest
Module5: Backtest & Trading Engine
Tips: The source-code includes collapsible block by module for easy navigating
Module1: Indicator:
-----------------------------------------------------------------------------------
Main Module. Place custom indicator input parameter/calculation/indicator plotting here
Sample Strategy: Double MACD Crossover
MACD Signal: 1st MACD Cross above signal line indicate Buy Signal
1st MACD Cross below signal line indicate Sell Signal
MACD Filter: 2nd MACD is above 0 line indicate Uptrend
2nd MACD is below 0 line indicate Downtrend
Module2: Framework Input Protocol:
-----------------------------------------------------------------------------------
Use this module to connect main indicator/signal calculated in Module1 to the rest of the framework's module
4 variables needed to be defined here:
1. Uptrend
2. Dntrend
3. BuySignal
4. SellSignal
i'm not sure how to place a code snippet here to show you example so in the source code i already put a comment in Module2 on which part u need to edit. I hope its pretty simple to use.
Module3: Alert Module Description:
-----------------------------------------------------------------------------------
As long as the variables in Module2 properly defined, the alert module is ready to use without any further modification.
Input:
Enable Alert --> Enable TV's alert and plot signal to chart
Alert Type --> Set to take Buy only, Sell only or Both alert
Module4: Backtest Module Description:
-----------------------------------------------------------------------------------
As long as the variables in Module2 properly defined, the backtest module is ready to use without any further modification.
Input:
Backtest Stat --> Enable Backtest Statistic Label
Backtest Visual --> Enable Backtest visual simulation
Backtest Type --> Set to take Buy only or Sell only or both
SL Type -->
ATR : Set SL in ATR times Multiplier below entry price
Fixed : Set SL in fixed point below entry point (in 'Dollar'). e.g. for Stocks -> 0.5 equals to 50cent while for EURUSD currency -> 0.005 equal to 50 pips
HiLo Bar: Set SL at highest/lowest wick of previous bar plus/minus Fixed point. e.g. EURUSD HiLo=3 and Fixed Point = 0.0005, buy trade will place SL 5 Pips below lowest of previous 3 bar
SL ATR Multi --> Set Lookback Period used for SL's ATR calculation
SL ATR Multi --> Set ATR Multiplier for SL
SL Fixed --> Set Fixed Level for SL
SL Bar --> Set Number of previous bar to check for SL placement
TP RR Ratio --> Set TP based on RR multiplier. e.g. 2 means TP level will be twice further from entry point compared to Entry-SL distance.
Notes: The point is for preliminary testing, so it only supports 1 trade at a time and no Trailing Stop
Module5: Backtest & Trading Engine Description:
-----------------------------------------------------------------------------------
As long as the variables in Module2 properly defined, the Pinecoders BTE module is ready to use without any further modification.
Input:
External Signal Protocol --> Set ESP State to send to "Backtesting & Trading Engine "
Signal With Filter --> Use this to send entry signal that already filtered by this study indicator (without stoploss level)
Signal Without Filter --> Use this to send raw entry signal that are NOT YET FILTERED by this study indicator (without stoploss level)
Signal and Stop With Filter --> Use this to send entry signal WITH StopLoss that already filtered by this study indicator (with stoploss level)
Signal and Stop Without Filter --> Use this to send raw entry signal WITH StopLoss that are NOT YET FILTERED by this study indicator (with stoploss level)
Notes: Backtesting & Trading Engine already have built-in Filter, Entries and Stop Level. e.g. Unselect all their filter state if only want to use custom filter and make sure send Signal with Filter (with or without SL level)
█ DISCLAIMER:
This framework main objective is to create my personal indicator template so that i just have to modify the indicator module for preliminary testing in future.
The sample strategy included are for educational purpose only. Use at your own risk
credit: LucF/PineCoders for a lot of his scripts that i use as a guide to complete this
RogTrader HFT AlgoThis is a simple algorithm to generate Buy, Sell, Short, and Cover Signals. It uses the following:
RSI , MACD , Stochastic , Bollinger Bands , Ketler Channels, ATR Trailing Stop, Trend, and Volume .
Usage is simple: Green Background is Long and Red Background is Short positions.
LE = Long Entry
LX = Long Exit
SE = Short Entry
SX = Short Exit
This is not a trade recommendation, rather informative signals, and please do your due diligence. Thanks!
Relative AO (RAO)Relative AO is an adaptation of Bill Williams' Awesome Oscillator for a logarithmic scale that measures the percentage of convergence/divergence of moving averages (similar to MARCD). The Signal Line allows you to use RAO instead of MACD (offset off), or to smooth the edge of the histogram for convenience (offset on).
MARCDRelative MACD
It is a modification of the MACD for a logarithmic scale that measures the percentage of convergence / divergence of moving averages.
MARCD can be used as standard MACD (optional).
MACD With Trend Filter: Visual Backtest Module TemplateSample Strategy: MACD Crossover with trend filter options
MA Filter : Price Close Above MA, Search for Buy, Price Close Below MA, Search for Sell
ADX Filter : Take trade only when ADX is above certain treshold
MACD Signal : MACD Cross above signal line while under 0 line indicate Buy Signal
MACD Cross below signal line while above 0 line indicate Sell Signal
-----------------------------
Using Alert Module:
Enable Alert --> Enable TV's alert and plot signal to chart
Alert Type --> Set to take Buy only, Sell only or Both alert
----------------------------
Using Backtest Module:
Enable Backtest --> Enable Backtest simulation
Backtest Type --> Set to take Buy only, Sell only or Both
SL Type -->
ATR : Set SL in ATR times Multiplier below/above entry price
Fixed : Set SL in fixed point below entry point (in 'Dollar'). e.g. for Stocks -> 0.5 equals to 50cent while for EURUSD currency -> 0.005 equal to 50 pips
HiLo Bar : Set SL at highest/lowest wick of previous bar plus/minus Fixed point. e.g. EURUSD HiLo=3 and Fixed Point = 0.0005, buy trade will place SL 5 Pips below lowest of previous 3 bar
SL ATR Period --> Set Lookback Period used for SL's ATR calculation
SL ATR Multi --> Set ATR Multiplier for SL
SL Fixed --> Set Fixed Level for SL (Use when SL Type is either Fixed or HiLo Bar)
SL Bar --> Set Number of previous bar to check for SL placement
TP RR Ratio --> Set TP based on RR multiplier. e.g. 2 means TP level will be twice further from entry point compared to Entry-SL distance.
Notes: The point is for preliminary testing, so it only supports 1 trade at a time and no Trailing Stop
----------------------------
Disclaimer:
This script main objective is to create my personal indicator template so that i just have to modify the indicator module for preliminary testing in future.
Testing Alert Module so i can re-use it as template in future study/indicator
Testing Visual Backtest Module so i can re-use it as template in future study/indicator
i believe using Strategy function is a better approach for this but the entry/exit level seems to be hit n miss (at least for me, still trying to figure what i did wrong)
also, i rather code the strategy in other platform where i can use the more accurate tick data if i want to validate backtest statistics.
My study scripts was built only to test/visualize an idea to see its viability and if it can be used to optimize existing strategy.
credit: ADX code are originally from "ADX and DI" by @BeikabuOyaji although i re-wrote so i can have cleaner read and use RMA instead of SMA
RVSI & MACD Confluence BackgroundThis indicator colors the background in vertical (green/red) stripes to indicate if the current trend is possibly bull / bear
A region where the background is not colored indicates that the present trend can not be identified
The algo combines the RVSI (Relative Volume Strength Index {ref fract} ) and the MACD
The Relative Volume Strength Index has been adapted to include 2 moving averages, one fast and one slow
This same fast slow lookback length is applied to the MACD for simplicity
What's interesting is that there is a very strong confluence between the MACD and RVSI, as the MACD is obtained from 'price action only' and the RVSI from the 'volume only'
So a break in confluence of these two might suggest that the current trend is weakening in confidence or can not be clearly identified
Generally, a green background means consider going long ie price trend is rising
A red background means consider going short ie price trend is falling
An absent background color means - consider exiting current trade or wait to get into a new trade
Best Regards, MoonFlag - and a special thanks/mention to 'fract' for the RVSI algo this is derived from