TradingView
tradercgt
2018年12月28日午前9時48分

Day of Week Background 

Bitcoin / DollarBitfinex

詳細

Highlights the chart background of the bars in the specified days of week.

リリースノート

docs(): add TV and source links

リリースノート

feat(): add GMT offset option for timezone. Update to Pine Script v5.
コメント
tradercgt
UPDATE: this script is NOT open source because I, although an author, do not have copyright of it and cannot license it. This script is exclusive property of TradingView. More info here: getsatisfaction.com/tradingview/topics/license-of-published-pinescripts-and-indicators
Vishnugupta
Wonderful script. It help me to visualize price behavior daywise and near to expiry and away from expiry
Aporio
If I want to paint the third Friday of the month for option expirations, how should I do? every 21 days
Regards
tradercgt
@Aporio, not possible yet with the current version of the indicator.
Aporio
@nikolaycgt,
WITH VERSION 4 IS NOT POSSIBLE ?. IF YOU TELL THE DAYS OF THE MONTH INSTEAD OF THE DAYS OF THE WEEK CANNOT BE DONE?
regards
tradercgt
@Aporio, I said "not possible yet with the current version of the indicator.". Of course it is possible to code.
Aporio
@nikolaycgt,
And would you be kind enough to explain to me on the basis of this v.3.0 how should I do it? or if you make the code it would be incredible !!!
Greetings
Luis
tradercgt
@Aporio, sorry other prios currently. If pinescript does not offer such function (most probably), you will have to implement it somehow: e.g. go back in history and check if the month has changed, and track the number of the desired day for the current month.
Aporio69
@nikolaycgt, in other language ,prorealcode, I had this code

if (DayOfWeek = 5) AND (Day >= 15) AND (Day <= 21) then

drawvline(barindex) coloured(200,200,200)

endif
詳細