blackcat1402

[blackcat] L0 Understand request.security_lower_tf() function

blackcat1402 已更新   
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.
版本注释:
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
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?