First Week Trend [MX]

This indicator has a bug in which if you change the timeframe of the indicator it will show erroneous values
If you use the candlestick chart, you will need to pull the visual order of this indicator to the top to overlay the colors of the standard candles, or simply hide the standard candles
the trend colors are bugged in timeframes other than the weekly
special thanks to xdecow who helped me with the code
////////////////////////////////////////////////////////////////////////
Eu criei esse indicador baseado em uma das minhas formas de analisar a tendência do BTC em específico, eu notei que o rompimento do primeiro candle do semanal costuma indicar a tendência para o resto do mês.
Esse script tem um bug em que se mudar o timeframe do indicador ele irá mostrar valores errados
Se você usa o gráfico de candlesticks, você precisará puxar para o topo a ordem visual desse indicador para sobrepor as cores do candles padrões, ou simplesmente ocultar os candles padrões
as cores da tendencia estão bugados em outros timeframes diferentes do semanal
agradecimentos especiais ao xdecow que me ajudou no código
The standard version of the script is now in the diary, and it takes the first week as the first 7 days of the month, in the way that I am really used to basing the trend for the rest of the month.
The old version of the indicator was based on the first candle on the weekly chart, and to use the old version, just activate the option and change the resolution of the timeframe to Weekly, otherwise it will be buggy.
//////////////////////////////////////////////////////////////////
PT-BR:
Atualização:
A versão padrão do script agora está no diário, e ele pega a primeira semana como sendo os primeiros 7 dias do mês, da forma que eu realmente estou acostumado a basear a tendência para o resto do mês.
A versão antiga do indicador se baseava no primeiro candle do gráfico semanal, e para usar a versão antiga é só ativar a opção e mudar a resolução do timeframe para o Semanal, caso contrário estará bugado.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
corrigido um bug que plotava mais linhas do que deveria no First Candle Trend
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.