repo32

Background Up or Down

‎1213‎ مشاهدة
133
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.
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة
//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)

التعليقات

great script, does what i need it to, awesome work m8
رد
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.
رد
@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...
+4 رد
stanketa workwithjoemiranda
@workwithjoemiranda, useless script...
+1 رد
@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 رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف تعمل مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر
ملف التعريف إعدادات الصفحة الشخصية الحساب وإعداد الفواتير إحالة صديق تذاكر الدعم الخاصة بي مركز المساعدة التحاليل المنشورة المتابعين تُتابع رسالة خاصة المحادثة تسجيل الخروج