repo32

Background Up or Down

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.
Eliminar de Scripts favoritos. Añadir a 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)

Comentarios

great script, does what i need it to, awesome work m8
Responder
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.
Responder
@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...
+1 Responder
stanketa workwithjoemiranda
@workwithjoemiranda, useless script...
+1 Responder
@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....
+1 Responder
Inicio Analizador de acciones Analizador de Forex Crypto Screener Calendario económico Cómo funciona Funcionalidades del gráfico Precios Recomendar a un amigo Normas Centro de ayuda Soluciones broker y sitio web Widgets Soluciones gráficas Biblioteca de gráficos ligeros Blog y Noticias Twitter
Perfil Opciones de configuración del perfil Cuenta y facturación Recomendar a un amigo Mis Tickets de Soporte Centro de ayuda Ideas publicadas Seguidores Siguiendo Mensajes privados Chat Cerrar sesión