HPotter

Percent difference between price and MA

1167 visualizzazioni
236
1167 7
Percent difference between price and MA
Rimuovi dagli script preferiti Aggiungi agli script preferiti
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 04/04/2015
// Percent difference between price and MA
////////////////////////////////////////////////////////////
study(title="Percent difference between price and MA")
Length = input(14, minval=1)
xSMA = sma(close, Length)
nRes = abs(close - xSMA) * 100 / close
plot(nRes, color=blue, title="PD MA")
DONATE/TIP

BTC: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
Can you code Percent difference between price and VWAP? The big boys love to be counter party when price is deviated + or - >4% from the VWAP..
+3 Rispondi
HPotter TASAVANT
I will try
Rispondi
JumaaneRay HPotter
@HPotter, hey buddy any luck with the VWAP version? Also, are you familiar with thinkscript at all?
Rispondi
NIce one thanks!
Rispondi
HPotter TASAVANT
You are welcome
Rispondi
Here's an example of the eurusd. Looking left of the chart, when it's trading 5% under or more from it's 20 period MA. The eurusd has a trend change and rallies.
Rispondi
Absolutely perfect! This shows the extremes better than I thought! TY for another great indicator!
Rispondi
Home Screener azioni Screener forex Screener cripto Calendario economico Come funziona Caratteristiche Grafico Costi Regolamento Moderatori Soluzioni per broker & siti web Widget Librerie grafiche Chiedi aiuto Suggerisci funzionalità Blog & Novità FAQ Wiki Twitter
Profilo Impostazioni profilo Account e fatturazione Chiedi aiuto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci