Type/to search

Moving Average Cross Alert, Multi-Timeframe (MTF)

SMA
1
Follow
1798
Followers

See when two moving averages cross. With the option to choose between four moving average calculations:

SMA = simple moving average
EMA = exponential moving average (default)
WMA = weighted moving average
Linear = linear regression

The moving averages can be plotted from different time-frames, like e.g. the weekly or 4 hour time-frame using HL2 , HLC3 or OHLC4 as price source for the calculation. In addition there is a background color alert and arrows when the moving averages cross each other when the price also rises or falls. And the moving averages are colored depending on their trend direction (if they are trending up or down).

backtest

img

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

study("Moving Average Cross Alert, Multi-Timeframe Option (MTF) (by ChartArt)", shorttitle="CA_-_MA_cross", overlay=true)

// ChartArt's Moving Average Cross Indicator
//
Strategy parameters
Strategy parameters
Price Source For The Moving Averages
Use Current Timeframe As Resolution?
Use Different Timeframe? Then Uncheck The Box Above
Short Period Moving Average
Long Period Moving Average
Moving Average Calculation: (1 = SMA), (2 = EMA), (3 = WMA), (4 = Linear)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)