简体   繁体   中英

How to get the low and high of the chart window in pine script?

I want to plot something that is sometimes far away from the current price, therefore, it shrinks my chart. So I figured maybe I will limit the parameter to the low/high the chart shown in the chart window, but cannot get this low/high value.

Please help, thanks!

There is no way to get the chart's visible on screen range or exact amount of candles. However you toggle the Scale Price Chart Only option in the scale's properties, this way it will be scaled only with candle's range.

在此处输入图像描述

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