ChrisMoody

Found $13K Profit-Simple Strategy-Highlights Days Of The Week

See 1st Chart Post For Specific Details. Custom Indicator Highlights Bars for Specific Days of Week. Works on Daily Charts and Intraday Charts. Option to Highlight One Day or Multiple Days.
從收藏腳本中移除 新增至收藏腳本
//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)

評論

Custom Indicator - Highlights Days Of The Week-Found $13K Profit

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.


IMPORTANT!!!!
***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***
http://pastebin.com/mhqQypTR


Indicator for Stocks and BITCOIN
http://pastebin.com/3G4LGvF8


Video On Importing Custom Indicator from PasteBin Link Below:
http://blog.tradingview.com/?p=265
+2 回覆
Installed into my Favorites yesterday. After running 13 months I was surprised at the day of week which had the most 'Up' days. For my issue it was Wednesday by far, followed by Friday, then Thursday. Monday and Tuesday weren't worth getting out of bed for. Thanks.
+1 回覆
Hi Chris, I copy the code and cant see anything on my chart.

Thanks!
+1 回覆
Did you go to the inputs tab and select what days you want to plot?
回覆
fcha ChrisMoody
I did it, thank you!
Thanks again for all your great job, and all great stuff to share! I read that article.
回覆
Shouldn't this script Highlight for example Monday with 1 color if it's an upday and with another color if it's a down day instead of highlighting all day's with same color?
回覆
You can code a Bar Color with any rules you like. I'm not following your question. If your referring to Daily bars...I recommend hollow candlesticks...that way you can highlight Mondays for example with a specific color...and if it's a Hollow candlestick you know it's an up day...and solid would = down day.

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.
回覆
pcmourao ChrisMoody
Thanks #1 answered my question ... Duh ! ;)
回覆
pcmourao ChrisMoody
Is it too hard to apply some kind of code that gives a certain highlighted color on the entry candles for your custom scripts? I mean, let's say that on your custom scripts a certain strategy play's itself out, on that instance, you would get a highlighted candle that determines the entry candle?
回覆
Yes and No....It's not hard...however Pinescript needs to have the capability to code "Strategies", and currently it does not...but it will in the future. I should have a video up on TradingView's blog tomorrow showing some cool features that are coming.
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出