TradingView
LuxAlgo
2023λ…„ 1μ›” 23일 μ˜€ν›„ 1μ‹œ 58λΆ„

Buy Sell Calendar [LuxAlgo]Β 

Bitcoin / U.S. dollarBitstamp

μ„€λͺ…

β‹…
The Buy Sell Calendar indicator displays a calendar showing the sentiment for the current day/month. Three different methods can be used to determine this sentiment.

The calendar can also highlight the percentage of bullish days/months for a month/year.

πŸ”Ά SETTINGS

  • Frequency: Calendar frequency, options include "Daily" and "Monthly"
  • Sentiment Method: Method used to determine the sentiment for the day/month, options include: "Linreg", "Accumulated Deltas", and "Max/Min"
  • Timezone Offset: UTC time zone offset.
  • Limit Date: Limit date used by the calendar, the sentiment of days/months outside this limit will not be returned.


πŸ”Ή Calendar

  • Show Calendar: Determines whether to display or hide the calendar.
  • Location: Location of the calendar on the chart.
  • Size: Calendar size.


πŸ”Ά USAGE

The proposed script can allow users to quickly determine if a specific day/month is considered bullish or bearish. A green cell is used for bullish days/months, while a red one is used for bearish days/months.



Additionally vertical lines are displayed on new days/months with a color highlighting the current sentiment for this specific day/month. Note that this is done retrospectively, the color of a line set at time t might differ at time t+n.

πŸ”Ά SENTIMENT METHODS

Determining whether a day/month is bullish or bearish can be done using three different methods. Note that each method makes use of the closing price as the input, and as such can eventually return different results depending on the selected timeframe. Each method is described below:

πŸ”Ή Linreg



The Linreg method fit lines between each day/month using the method of least squares and determines if that particular day is bullish or bearish based on the line slope sign. For example, a rising line would indicate a bullish day/month.

πŸ”Ή Accumulated Deltas

The method of accumulated deltas simply accumulates bullish and bearish price changes for the current day/month, the result with the highest magnitude determines the sentiment for that day/month.

πŸ”Ή Max/Min



The max/min method computes a trailing maximum and a trailing minimum for the current day/month. The sentiment is determined by the price position relative to the average between the obtained maximum/minimum, with a bullish sentiment being determined if price is above the average.
μ½”λ©˜νŠΈ
rajgi
β‹…
Does it repaint
fatihmustafa
β‹…
@rajgi, of course, its a luxalgo ;) what did you expect?
BMTrades22
β‹…
Hi added this to favorites but can't find it?
Switcher471
β‹…
@BMTrades22, restart Tradingview
mckeecamryn
β‹…
I tried to check the code and I noticed it gives "bull" signal although it's red day on calendar. So, I am not sure does it repaint or not
BwanaSonko
β‹…
Thank you! Which of the three sentiment methods would you recommend for a trend trader or a scalp trader? Please advise.
fikira
β‹…
Nice! πŸ‘
alqasemy2006
β‹…
Thanks alot. I can't see the horizental lines as in the picture under Linreg. Please help!
mangi1213
β‹…
very very thank you~!
ManfromTo
β‹…
The calendar says January 2023. however it gives the accurate date. Any idea how to fix it to display the accurate month? in this case, Feb. Thanks, @LuxAlgo
더보기