Patternsmart

Reverse Engineering MACD, by Patternsmart.com


The Reverse Engineering MACD study is a trend following indicator based on analysis of MACD (Moving Average Convergence/Divergence) changes. This indicator consists of three main plots: PMACDeq, PMACDlevel, and PMACDsignal.

PMACDeq plot represents price of the current bar at which its MACD value would be equal to the previous one. PMACDlevel plot represents price of the current bar at which its MACD value would be equal to the specified one. PMACDsignal plot represents the price of the current bar at which its MACD value would be equal to its average.

These three plots are accompanied with an auxiliary plot showing averaged values of PMACDeq. Note that the type of average is the same as the specified for MACD calculation.

Input Parameters:

price The price for which MACD is calculated.
fast length The number of bars used to calculate the fast moving average.
slow length The number of bars used to calculate the slow moving average.
macd length The number of bars used to calculate the moving average of MACD .
macd level MACD value used in PMACDlevel calculation.

////////////////////////////////////////////////////////////
// Technical Analysis & Research Patternsmart.com
//
// Custom indicators, Strategies, SCAN, Screener, Backtesting, Converting service for:
// Tradingview, NinjaTrader, Thinkorswim, MetaTrader, MetaStock, Multicharts, Prorealtime, etc.
//
// If you want to customise this indicator, please contact us.
////////////////////////////////////////////////////////////
Remove from Favorite Scripts Add to Favorite Scripts
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out