简体   繁体   中英

How to find the candle has day high / low in pine script

how to find the candle which has day high and the same way day low?

I am using 5 mins chart, I want to draw a trend line automatically. but I need to find the candle has day high and the candle has day low.. is there any way to do it?

Declare the variables on D timeframe

[ dayOpen, dayHigh, dayLow, dayClose] = request.security(syminfo.ticker, "D", [open,high,low,close], lookahead=barmerge.lookahead_on)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM