Page 1 of 1

how do I call my own indicator from my strategy?

Posted: Thu Mar 03, 2022 12:25 am
by IanCid
vHi I'm new to pinescritp and as you can see coding in general so sorry if something isn't clear and if it's a dumb question or something, still thanks for helping me out.

The thing is that I am trying to read some values of an indicator from a strategy, because the indicator uses a different timeframe than the strategy. I tried to insert the indicator into the strategy but I think that a different time frame cannot be used, is it possible to access the indicator plots or something?

Or is there a way to turn it into a library?

I am really thankful for helping me.

Re: how do I call my own indicator from my strategy?

Posted: Thu Mar 03, 2022 8:09 pm
by processingclouds
It would be easier to guide you on this if you can provide the code, or sample similar code to what you are trying to do.