The documentation for i_setplotvalue and i_getplotvalue keywords says:
Gets the value calculated by a signal that is to be used for plotting from an indicator. It can be considered as a bridge between a signal and an indicator. Using i_setplotvalue and i_getplotvalue keywords makes it possible to avoid copying the same script for calculation the same value in both indicator and signal.
Is there any way to pass values the other way around, from an indicator to a signal/strategy beside using Global Variables?
Thanks!
Passing Values from an Indicator to a Signal/Strategy
Re: Passing Values from an Indicator to a Signal/Strategy
Yes. You can use a function as the middleman to retrieve it with i_getplotvalue, then call that function from your signal.Is there any way to pass values the other way around, from an indicator to a signal/strategy beside using Global Variables?