TradingView
blackcat1402
2022年8月7日午後12時57分

[blackcat] L0 Understand request.security_lower_tf() function 

Bitcoin / TetherUSBinance

詳細

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
コメント
kurtsmock
Try this snippet out. You can grab the ltf values as they happen individually
pastebin.com/R07gNWkr
A_Traders_Edge
@kurtsmock, Hey pawtna...was this pastebin submitted by you? It is no longer accessible, any idea why?
kurtsmock
@chasinalts, likely, I had an expiration date set. Unfortunately I can't remember exactly what I posted there.
詳細