TradingView
jbritton001
31. Jul. 2022 19:15

Multiple Moving Avg MTF Table 

SPDR S&P 500 ETF TRUSTArca

Beschreibung

This script replaces the other script that was just the SMAs that where in a Multi Time Frame Table as this was a redo of that one and this one is SO MUCH MORE!!!!

Not only does this one do the Simple Moving Avg 5, 10, 20, 50, 120, 200 into a table that shows Current/Hourly/Daily/Weekly/Monthly/Quarterly ( 3M )/ Yearly. It now does Exponential Moving Avg , Weighted Moving Avg , and Volume Weight Moving Avg along with Simple Moving Avg.

I still use this script so that you can quickly capture the values so that short-term, and long-term resistance and support can be determined during market hours. Even better now you can select between SMA / EMA / WMA /or VWMA .

imgur.com/a/SgA6I0I

The table will change to the values based on the Choice of the type of Moving Avg and if you change the default values.

Now it will take a little bit for the table to show up, so please be patient. I have tested it with stocks, forex, and crypto.

Versionshinweise

quick code update.

Versionshinweise

Updated some code
1. Adding SMA Mobile sized tabled (sadly ran into too many IF statements so might revisit it later)
2. Changed the code for the plots to display=display.none so that all of the plots are not show until YOU select them.

Versionshinweise

Changes the text color from black to white on the marron MA 5 line in the able to make it more visible.

Versionshinweise

Updated the code for the text to be changed in the settings for
size.normal
size.small
size.tiny

As you can see in the image you can now change the size on the fly based on your device you are using and the number of charts you have open by it not taking up real estate on the chart.

Kommentare
Tejas8832
When i use this script on higher time frames like D, W or M then the table disappears....while on smaller TF table is displayed. Why so
jbritton001
@Tejas8832,

If there is data then it will post .. if its null there is no data to display
Tejas8832
Hi is it possible to colour code the table like....if price is above the moving average then the colour to be green and if price is below then red.
jbritton001
@Tejas8832, That is a different script that i have
earlydews
Hi Sir, this is super. I do not know how to create it, but u have done it. Can there be some additions in it like crossover data of moving average with small timeframe for intraday trading and choice of changing the moving average?
Skipper86
This is good, I can definitely borrow some code from this, thanks.
MarkusTraublinger
Hello,

I have a question about the table.

I have an indicator that shows me multiple MACDs and would like to add a table to the indicator showing how the MACD is in the 1H, 30M, and 15M and visualize that in a table to save me time.
He should get the data via the indicator and then display them in the table.

short-term -> up/down trend
medium-term -> up/down trend
long-term -> up/down trend

Unfortunately, I don't know my way around that well, so I wanted to ask if you could help me.

Thank you very much and best regards
jbritton001
@MarkusTraublinger, You should be able to table it. I know it took me a while to figure out how to put mine in a table.
Mehr