okadoke

Weekly Sentiment Analysis

okadoke Обновлено   
This script plots weekly scores derived from sentiment analysis and computes some stats on the history.
While this can be viewed on any timeframe, the stats are best viewed on the Daily timeframe, weekly and intraday charts produce some discrepancies.

Columns show the weekly score. If the column is blue, the high/low of that candle surpassed the target price.
White bars in the columns show the % change from the open price to the high of that candle.
Horizontal line shows the % above the weekly open that must be reached for a win.

The display after the most recent week shows stats across all weeks.
Skips is the percent of weeks that were skipped because they didn't meet the score threshold
Total Wins is the number of wins divided by the number of non-skipped weeks
Long Wins is the number of long wins divided by the number of non-skipped weeks
Short Wins is the number of short wins divided by the number of non-skipped weeks
Best Move is the number of weeks where the score predicted the biggest move, even if target wasn't hit, divided by the total number of weeks
Double Win is the number of weeks where both the Long and Short targets were hit, divided by the total number of weeks

Settings

The first section of inputs define how much each type of sentiment is weighted.

The second section defines the win criteria. By default the daily ATR(average true range) is used to define a percent above or below the opening price that the price much reach during the week in order to be considered a win.

ATR Lookback: How many days back the ATR is average over.
Long ATR Multiplier: ATR is multiplied by this value and added to the opening price to get the target price for longs.
Short ATR Multiplier ATR is multiplied by this value and subtracted from the opening price to get the target price for shorts.
Use Multipliers as fixed % targets: If true, uses the multipliers as a fixed % above/below the opening price to define the target price.

The third section is everything else...

Score Threshold for Longs: The week is skipped if the score is less than the threshold.
Score Threshold for Shorts: The week is skipped if the score is greater than threshold.
Instrument Type: To accurately track session opens and closes, the value must be set to Stocks if looking at stock tickers, Futures if looking at futures or forex tickers, and Crypto if looking at crypto tickers.
Информация о релизе:
Updated some inputs to accept decimal values.
Информация о релизе:
  • Added last weeks results
  • Fixed an issue with tickers where sentiments history is longer than price history.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом, вы можете свободно им пользоваться. Можно добавить его в избранное и использовать на графике. Вы не можете просматривать или менять его исходный код.
Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?