简体   繁体   中英

How to reference an other indicator from pine script?

I have bought premium indicators and oscillators. I would like to write a pine script in TradingView that depends on the values, colors of these.

How can we do that?

You can use source type input in any indicator

src = input(close, title="Source")

Then in the settings panel you can feed any other indicator output to this. And, you can use this src for any calculation.

You will not be able to use colors from another indicator. Using input.source() operator, you can use only the values of the series, which are output as graphs (by plot*() operators).

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