repo32

Background Up or Down

1296 vizualizações
137
This script will color the background based upon whether it is positive or negative for the day. When looking at numerous charts, you can instantly see if they are up or down for the day. For me, I like to be going long on the stocks that are already moving up and short on the ones that are moving down. When using lower time frames, you can lose perspective of where it is on the daily chart .

On the example above, you can see a 5 minute chart of NFLX . It shows you when it dropped below the previous days close.
Remover dos scripts favoritos Adicionar aos scripts favoritos
//Created by Robert Nance 11/19/15
//This script simply colors the background when price is above or below the previous day close.
//Works nice for seeing if the stock is up or down for the day.
study(shorttitle="UP/DN", title="Background Up or Down", overlay=true)

cdl = input(true, title="Previous Daily Closing")
dclose = security(tickerid, 'D', close[1]) 
positive = close > dclose ? green : na
negative = close < dclose ? red : na
bgcolor(positive, transp=75)
bgcolor(negative, transp=75)

Comentários

great script, does what i need it to, awesome work m8
Resposta
This indicator isn't great as I thought, It repaints. Have to use it together with accumulation/distribution indicator, otherwise you could have big losses. Bassicaly this indicator nothing special. In my broker app. Easymarket if value goes during any time from positive to negative procentage than this indicator also changes during day few times from positive to negative background, so this indicator can be very misleading unless all day something goes negative or positive without reversal of course.
Resposta
@stanketa, Well duh it repaints... If the price is above yesterday's close it will change to green. If it is below it will change color to red. That's literally the point of the script. Why would you want it to stay the wrong color for? Hello... Think Mcfly Think...
+5 Resposta
stanketa workwithjoemiranda
@workwithjoemiranda, useless script...
+1 Resposta
@stanketa, That's your opinion based on it don't do what you need. The script was perfect for what I needed. To change the background color of the pair or stock green for up or red for down from yesterday's close. It does exactly what it is supposed to do. The indicator isn't useless nor is it misleading like you falsely claim. It is supposed to change since the day's prices are not closed for the day. Your comment shows you don't even know what the indicator does. What do you even expect it to do? It is a live indicator and is supposed to repaint as price changes above or below yesterday's close. Useless comment....
+2 Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Criptomoedas Calendário Econômico Como Funciona Recursos gráficos Preços Indique um Amigo Regras da Casa Central de Ajuda Soluções para Sites & Corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Blog & Notícias Twitter
Perfil Configurações de perfil Conta e Cobrança Amigos indicados Moedas Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar