//Created By ChrisMoody on 5-2-2014 //Colors Bars for Forex Monday-Friday study("CM_DayOfWeek_Forex", overlay=true) disMon = input(false, title="Highlight Monday?") disTue = input(false, title="Highlight Tuesday?") disWed = input(false, title="Highlight Wednesday?") disThur = input(false, title="Highlight Thursday?") disFri = input(false, title="Highlight Friday?") isMon() => dayofweek == sunday and close ? 1 : 0 isTue() => dayofweek == monday and close ? 1 : 0 isWed() => dayofweek == tuesday and close ? 1 : 0 isThu() => dayofweek == wednesday and close ? 1 : 0 isFri() => dayofweek == thursday and close ? 1 : 0 barcolor(disMon and isMon() ? (isMon() ? yellow : na) : na) barcolor(disTue and isTue() ? (isTue() ? fuchsia : na) : na) barcolor(disWed and isWed() ? (isWed() ? gray : na) : na) barcolor(disThur and isThu() ? (isThu() ? orange : na) : na) barcolor(disFri and isFri() ? (isFri() ? aqua : na) : na)
Highlights Bars For A Specific Day Of Week
Includes Check Boxes to Highlight Bars for Multiple Days of the Week
Works on Intra-Day Charts Also
Different Color For Each Day of Week
Note Gold has a Tendency To Close Higher on Fridays!!!
Purpose of Indicator:
***To use on Daily Charts to see if certain Symbols Have a Tendency To Move Up or Down on a certain Day of Week.
***To Place on Intra-Day Charts to see if certain Symbols have a Tendency to Move in a Specific Direction at certain Times of The Day on Specific Days of the Week.
***Stocks and BITCOIN use same Indicator.
***Forex Uses a Separate Indicator (Due to How TradingView Labels The Sessions for Forex)
***Will Post a Update Allowing Option to Use BackGround Highlighting.
Indicator for Forex Charts - ***Forex Symbols requires different coding than Stock Charts***
Indicator for Stocks and BITCOIN
Video On Importing Custom Indicator from PasteBin Link Below:
I have an indicator request I think might be quite easy for you. Can you make an indicator so that the the candle draws a certain colour, say black, if it crosses a moving average, otherwise draws as it normally would? Definition of cross is when Open is Higher than MA AND Close is Lower than MA. Thx.
This version fixes one small bug I found and adds a Highlight Bar option if price is Crossing MA 1 or MA 2. I set that as a Check Box Option with default color set to yellow. (Only plots if Price Crosses MA, doesn't plot in Gap Situation)
Plus sometime not too far off TV will be offering Real Time Futures....at that time I'm going to talk to those guys about putting all their indicators on this platform...
If your referring to Intra-Day candles...this is slightly more difficult because if your highlighting one day then it would be easy to assign two different colors....but if your highlighting all 5 days with different colors...then creating a rule like that would require 10 different colors...and looking at 10 different colors in my opinion would be difficult to easily memorize when looking at charts.
The purpose of this code...is two things:
#1 to be able to highlight a daily bar a specific color to visually see if there is a historical trend for that day...again using Hollow Candlesticks lets you know if it is up or down.
#2 to be able to get a quick snapshot of Intra-Day bars by day of the week.
The code accomplishes both of those purposes. Your more than welcome to modify the code any way you like. If you have a specific question about how to code it to accomplish specific criteria...feel free to leave another comment and I will show you how.