blackcat1402

[blackcat] L0 Understand request.security_lower_tf() function

blackcat1402 Updated   
Level 0

Background

I am learning to use new function request.security_lower_tf() to realize some new features.

Function
Requests data from a lower timeframe than the chart's. The key difference is that the return is no longer series type but array. If you want to combine lower tf with higher tf to form a mtf, you may need to be good at array operations.

This is a very simple demonstration for request.security_lower_tf(), you will see how array grows under 15min tf with 1min intrabar data changes. It may help you understand how request.security_lower_tf() easier.

Remarks

Feedbacks are appreciated.
Release Notes:
Add intrabar status indicator: 0~1 line and bgcolor change from green to red

Avoid losing contact!Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq 防止失联,请立即行动,加入本猫聊天群: discord.com/invite/ZTGpQJq
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?