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
K-macd
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.
MACD TRADING SYSTEMThis is a conservative Trend Continuation Trading System.
Uses a Hull Moving Average to determine general trend direction
Uses MACD to initiate Trade entries
Uses a variant of Chaikin Money Flow for volume confirmation
Also uses the Average True Range (ATR) to determine take profit and stoploss.
Stoploss becomes trailing when take profit target has been hit.
I built it mainly for myself to use.
Wanted an objective trading system to take all the emotions out of my trading.
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
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.
SALEH MACD Donchian + EMA & MACD + ADXI gathered all the signals coming from the MACD & Donchian channels indicators and filtered them with EMA 200 or ADX > 25 indicators (which both of them show the trend),
and put them on the chart to show me the buy and sell signals;
the signals rules are as following:
BUY:
when we have an uptrend ( the price is above the EMA 200 or ADX > 25 ) & the macd line cross up the signal line while they are both under the 0 level of histogram it generates buy signals.
SELL:
when we have a downtrend ( the price is below the EMA 200 or ADX > 25) & the macd line cross below the signal line while they are both above the 0 level of histogram it generates sell signals.
Donchian channel works as a confirmation for the macd signal.
this signals work best at London session, you can also filter them by chandelier exit indicator.
macd strategyOkay
User Avatar
Rules using ( MACD 12 26 Close 9 ):
Place a SELL signal when :
1. Histogram bar turned RED from GREEN
2. Within the previous group of green histogram bars the maximum value reached/passed +5.5
3. MACD fast & slow have values > 0
Place a BUY signal when :
1. Histogram bar turned GREEN from RED
2. Within the previous group of RED histogram bars has maximum value reached/passed -5.0
3. MACD fast & slow have values < 0
[RS]MACD Divergence V1This oscilator was created by Ricardo Santos using MACD's histogram as the series to find low and high fractals and from there find and plot divergences.
I just modified it a little bit to make it to look more like the MACD public library indicator and use the actual MACD series (instead of the histogram) to find the fractals and from there plot divergences.
I did this to make it easier for me and other fellow students of a Forex school where we use these type of divergences to find patterns.
MACD BeepBoop Indicator
The indicator flags long or blue when the macd histogram value > 0 and above the ema and short or red when the macd histogram value < 0 and below the ema
I have added confirmations in the form of eliminating all bars on the histogram unless they meet the long / short entry conditions two bars in a row
You can customize the length of the ema that determines the long/short entry conditions in the settings
I have also added a yellow highlight to the bar in the chart that you would enter on. You would enter at the open of the bar following the signal bar
Stop Loss would be placed at the nearest pivot point or ATR of your choice
Note - republishing this after taking out original links
MACD Strategy with trailing ATR stopThis is a trend based strategy that uses EMA and SMA intersection for determining the direction of the trend and MACD for the entry signal. At the same time, the strategy uses ATR, which is working as a trailing stop.
The strategy entry will work when the Trend ribbon will turn green and MACD line will crossover the signal line. This strategy also takes into account the pyramiding and allows to enter the second time if the signal will repeat itself.
There are 3 exit points. The first 10% of the position will be closed when the price will increase by 1%. The second portion of 50% will be closed when the price reaches 5% Take profit target. The remaining 40 % of the position will wait for the exit signal which will occur when the price closes below the ATR line.
The strategy is using a fixed amount in dollars, each time the entry occurs the strategy will enter with 100$ in the order.
The strategy can be applied to other crypto assets. However, they will require input changes.
Best of luck with your trading.
Crack_RACD_Divergence_Ver_1.0.1Hello my dear traders. This is Tommy.
This time our team spent so much time and effort developing a technical indicator that catches the trend reversal signal relatively earlier than any other existing indicators.
Two RSIs (which quantify the relative strength of the price momentum using closed price of a candle) with certain parameters that we have found were exponentially smoothed using our very own equations.
We have programmed it to be signaled when golden and death crosses appear above and below certain area that we have concluded it as an overbought and oversold zone.
Similar to MACD (Moving Average Convergence Divergence) trading strategy, the histogram represents the distance between two RSIs.
When the histograms are trending towards the centerline, this means that the RSIs are converging and vice versa when histograms are going away from the centerline.
Moreover, when this logic confirms swing highs/lows using highs and lows of the candles (instead of closed), it automatically shows both the bullish and bearish divergences.
Thank you.
안녕하세요 트레이더 여러분. 토미입니다.
최근에 저희가 연구 및 개발한 지표는 단기와 중기 추세를 반영하는 두개의 선(RSI를 특정 로직으로 exponentially smoothed한)의 크로스오버가 저희가 정한 과매수/과매도 구간에서 발생할 시 변곡으로 해석해서 시그널을 주는 괴물 같은 녀석입니다.
히스토그램은 MACD 지표 비슷하게 두 선의 이격도를 나타냅니다. 센터라인으로 방향으로 히스토그램이 줄어들면 두 선의 차이가 줄어들고 있는 뜻이고, 히스토그램이 음/양의 방향으로 더 높아지면 두 선의 차이가 늘어나고 있는 뜻입니다.
게다가 자동으로 다이버전스도 잡아줍니다.
지표 사용을 원하시는 분들은 저희 채널에 문의 주시면 됩니다~
감사합니다.