TradingView
blackcat1402
7. Aug. 2022 12:57

[blackcat] L0 Understand request.security_lower_tf() function 

Bitcoin / TetherUSBinance

Beschreibung

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.

Versionshinweise

Add intrabar status indicator: 0~1 line and bgcolor change from green to red
Kommentare
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.
Mehr