repo32

Column Up or Down

This is the same as my background up/down except it displays a column to show if the stock is above or below the previous day close.
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 .
Remove from Favorite Scripts Add to Favorite Scripts
//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="Column Up or Down", overlay=false)

cdl = input(true, title="Previous Daily Closing")
dclose = security(tickerid, 'D', close[1]) 
positive = close > dclose 
negative = close < dclose 
plot(positive, style=columns, color=lime)
plot(negative, style=columns, color=red)
good addition, nice tool.


...and it I may, traders can make a heatmap by amending the script. Since you already have the Daily posted, Weekly and Monthly columns can be added to make the MTF heatmap. For non-coders, its quite simple, change the "D" on lines 7,8 and 9 to "W", "w" and "w" respectively. Save it, amend the title to "Column Up or Down, Weekly". Then you will have your weekly columns. Do the same for a monthly column, presto, MTF heatmap.

Thanks for sharing and the addition to the library repo32!

Reply
repo32 PRO coondawg71
Nice! Thank you for the improvement. I am a short term trader, so I forget about all the longer term folks.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out