TradingView
4X4good
26 de Mar. de 2016 12:20

% Above/Below SMA 

S&P 500 index of US listed sharesFXCM

Descripción

A simple script that calculates the percent above or below a moving average.
Comentarios
limjohn
hi 4X4good, i'm new to Tradingview and have not even started to understand Pine Scripts yet. can you explain if this indicator is measuring
1. the % of difference in number of days in the set time frame that the selected share price is above the SMA?
2. or measuring the difference in number of stocks in the exchange that is above vs below the SMA? if it is this option, which exchange is the indicator measuring?
thanks in advance.
4X4good
@limjohn, Hello. Think of this indicator as the moving average, (on any *single* stock or ETF or anything else) as a *flat line*.
It simply shows how far above or below the moving average the instrument is, in percentage terms.
Hope that explains it. ;-)
limjohn
@4X4good, Understood. Thank you.
derzzycharts
Unreal mate!
4X4good
@derzzycharts, thanks. it needs some updating to Version 4. I will work on that.
Luna_azul
Can this be used in any stock market?
4X4good
@Luna_azul, Yes. It simply calculates how far from a moving average price is.
So, it can be used on any market, or stock.
JohnKer
Very interesting tool, so simple yet powerful. One suggestion: give it a better name.
jta3
Could be interesting to choose instruments, so there could be and overview with several instruments on same charts. :)
Más