Type/to search

AMACD - All Moving Average Convergence Divergence

EMA
1
Follow
1781
Followers

This indicator displays the Moving Average Convergane and Divergence ( MACD ) of individually configured Fast, Slow and Signal Moving Averages. Buy and sell alerts can be set based on moving average crossovers, consecutive convergence/divergence of the moving averages, and directional changes in the histogram moving averages.

The Fast, Slow and Signal Moving Averages can be set to:
Exponential Moving Average ( EMA )
Volume-Weighted Moving Average ( VWMA )
Simple Moving Average ( SMA )
Weighted Moving Average ( WMA )
Hull Moving Average ( HMA )
Exponentially Weighted Moving Average (RMA) ( SMMA )
Symmetrically Weighted Moving Average ( SWMA )
Arnaud Legoux Moving Average ( ALMA )
Double EMA ( DEMA )
Double SMA (DSMA)
Double WMA (DWMA)
Double RMA ( DRMA )
Triple EMA ( TEMA )
Triple SMA (TSMA)
Triple WMA (TWMA)
Triple RMA (TRMA)
Linear regression curve Moving Average ( LSMA )
Variable Index Dynamic Average ( VIDYA )
Fractal Adaptive Moving Average ( FRAMA )

If you have a strategy that can buy based on External Indicators use 'Backtest Signal' which returns a 1 for a Buy and a 2 for a sell.
'Backtest Signal' is plotted to display.none, so change the Style Settings for the chart if you need to see it for testing.

backtest

img

Source
Pine
/*backtest
start: 2022-04-09 00:00:00
end: 2022-05-08 23:59:00
period: 30m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © EltAlt

//@version=5
Strategy parameters
Strategy parameters
Moving Averages
Fast Moving Average Type
Fast Source
Fast Length
Slow Moving Average Type
Slow Source
Slow Length
Signal Moving Average Type
Signal Length
Alma
ALMA Offset
ALMA Sigma
Frama
FRAMA lower shift limit (FC)
FRAMA upper shift limit (SC)
Buy / Sell Moving Averages
Buy Moving Average Crossover
Sell Moving Average Crossover
Buy Moving Average Crossing Zero
Sell Moving Average Crossing Zero
Buy / Sell Histogram Moving Averages
Buy Histogram MA Positive
Sell Histogram MA Negative
Histogram MA Length
Histogram MA Type
Buy / Sell Histogram Rising / Falling
Buy MA Histogram Rising
Buy Histogram Rising Only Below Zero
Consecutive Rising Bars to Trigger Buy
Sell MA Histogram Falling
Sell Histogram Falling Only Above Zero
Consecutive Falling Bars to Trigger Sell
Long / Short Signals
Generate Close Signals for Long / Short Positions
Open Long =
Close Long =
Open Short =
Close Short =
Plot Options
Plot Alerts
Plot Moving Average
Plot Signal
Plot Histogram
Plot Histogram Moving Average
Color Settings
MACD Line  
 Signal Line  
Histogram Above  Grow
Fall
Histogram Below  Grow
Fall
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)