Library "libTF" libTF: Find higher/lower TF automatically This library to find higher/lower TF from current timeframe(timeframe.period) for Pine Script version6(or higher).
Basic Algorithm Using a timeframe scale Array and timeframe.in_seconds() function to find higher/lower timeframe. Return value is na if could not find TF in the timeframe scale. The timeframe scale could be changed by the parameter 'scale'(CSV).
How to use 1. Set higher/lower TF higher()/lower() function returns higher/lower TF. Default timeframe scale is "1, 5, 15, 60, 240, 1D, 1M, 3M, 12M". example:
3. How to use with request.*() function na value is set if no higher/lower TF in timeframe scale. It returns current timeframe's value, when na value as timeframe parameter in request.*(). As bellow, if it should be na when timeframe is na. example:
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazar çok yaşa! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanılması Ev kuralları tarafından yönetilir.
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.