OPEN-SOURCE SCRIPT
Market Trend

This indicator show how is the trend of 40 stock in SET Index Thailand ordered by market capitalization.
RSI, Moving Average and MACD is used to calculate vale of each stocks.
The trend will be assigned and cumulative as 1 represent uptrend while -1 represents downtrend.
For example RSI
If RSI > RSI moving average, it will be uptrend and return 1.
If RSI < RSI moving average, it will be downtrend and return-1.
The calculation will return positive and negative of total 40 stocks (or other tickers).
If positive is greater than negative, it mean that the market is uptrend and vise versa.
Here some examples
RSI

Moving Average

MACD

You can change to other tickers.
Enjoy..
RSI, Moving Average and MACD is used to calculate vale of each stocks.
The trend will be assigned and cumulative as 1 represent uptrend while -1 represents downtrend.
For example RSI
If RSI > RSI moving average, it will be uptrend and return 1.
If RSI < RSI moving average, it will be downtrend and return-1.
The calculation will return positive and negative of total 40 stocks (or other tickers).
If positive is greater than negative, it mean that the market is uptrend and vise versa.
Here some examples
RSI
Moving Average
MACD
You can change to other tickers.
Enjoy..
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.