OPEN-SOURCE SCRIPT

MA Directional Table

Updated
"MA Directional Table" primary objective is to analyze the direction of the trend based on two Moving Averages (MA) for various timeframes and customizing the inputs to match your preferred style.

Features:
Moving Average Type: You can select which type of Moving Average to use (SMA, EMA, VWMA).
Moving Average Lengths: You can set the lengths for the short-term and long-term moving averages.
Table Position: The indicator provides a table which can be placed at the top or bottom, and to the left or right of the chart. It shows the trend status for multiple timeframes (1 min, 5 min, 15 min, 1 hour, 4 hours, 1 day).
Table Orientation: The table can be oriented either horizontally or vertically.
Price Condition: Optionally, the table color can be set to yellow if the current price deviates from the Moving Average trend and crosses MA1.
Cloud Settings: You can opt to show a cloud between the two moving averages. The color of the cloud changes based on the direction of the trend (bullish or bearish).
Extra MA: Optionally, an extra Moving Average can be plotted on the chart.
Release Notes
Added Customizable Table Inputs:
- Bullish Status Color
- Bearish Status Color
- Neutral Status Color
- Price Condition Status Color
- Table Header Color
Release Notes
Added Text Size & Text Color Inputs
Script Clean up
Release Notes
- Added New Extra MA Input "Include In Table" - Display Extra MA value on table instead of bullish/bearish.
- Fixed VWMA to show on extraMAType
Release Notes
- Table Updated
Bullish/Bearish text changed to Green/Red and/or yellow circles to represent the direction of the MAs.
Release Notes
- Choose 7 different customizable timeframes
- Display Multi-TimeFrame Moving Averages in the chart
- Each TimeFrame has selectable MAs (I understand many traders will use different Moving Averages as a confirmation entry in a lower timeframe and use a different set of MAs on a higher timeframe as a trend, you will now be able to set the moving averages)
- Table will display how long ago the cross has happen.
Exponential Moving Average (EMA)Simple Moving Average (SMA)Volume Weighted Moving Average (VWMA)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer