This strategy places the order based on the MACD signal.
Original Indicator: MacD Custom Indicator-Multiple Time Frame+All Available Options! by ChrisMoody
Link to the Indicator:
If your risk appetite is high you can replace the first statement with the...
MACD built out of two Arnaud Legoux Moving Average lines of different periods. The signal line is still an EMA of the MACD line, just like with the normal MACD.
Colors are picked to be friendly with partial colorblindness, and can be modified in the indicator settings.
Working MACD Histogram which colors bars based on the slope from the previous. The default colors will work for both Deuteranopia and Protonopia color-blind people but can be modified.
There is a bug with 'MACD 4C' by vkno422 + signal line - squattter and 'MACD for colour blind people' by cfhrtd in that it draws the MACD line itself as a histogram, rather than...
The related article is copyrighted material from Stocks & Commodities 2009 Oct
You can change long to short in the Input Settings
- For purpose educate only
- This script to change bars colors.
Combined MACD and MACD 4C indicators to give quick visual of MACD position. My personal defaults are, remove histogram, set lines to thinest setting, make MACD lines 100% opaque, light blue and orange.
This is the study of the ratio of the MACD exponential moving averages, 0.993 and 1.003 were used to define the overextended positions since this is the highest the oscillator usually goes, price tends to reverse when overextended. RE1 (ratio equation 1) = the fast Exponential Moving Average (12 points) divided by the slow Exponential Moving Average (26 points)...
This is one of the techniques described by William Blau in his book
"Momentum, Direction and Divergence" (1995). If you like to learn more,
we advise you to read this book. His book focuses on three key aspects
of trading: momentum, direction and divergence. Blau, who was an electrical
engineer before becoming a trader, thoroughly examines the relationship
This MACD normalizes the price so that it can be compared against moves that took place at prices of significant difference.
There are also options to change if the MACD and the signal line are computed using EMA or SMA.
// Author : Jacques CRETINON
// Last Version : V1.0 11-22-2016
// Risk disclaimer : Do not use this script in production environment. We assume no liability or responsibility for any damage to you, your computer, or your other property, due to the use of this script.
// Purpose of this script :
// 1- use same pine code for strategy or study script (with...