Retrieving Data from an Indicator

Questions about MultiCharts and user contributed studies.
Edhomeo
Posts: 2
Joined: Jul 24 2024

Jul 24 2024

Hello
As a newbie, I'm sorry to ask such a simple question but I've been working on that for a while. I tried using global variables, and here what a mess as it seems that the only solution is to use a non trivial function like AccuracyGetNamedDouble/AccuracySetNamedDouble... Even then I realized that my signal would only get the last calculation and not the values for each bar. OK.

Then I saw that it is theoretically possible to use the plot values, P1, P2, .. Pn. But I cannot find how to use that in my code either as the value is not recognized:

Here for example

if (close[1] > BollingerBand(c, 20, 2)[1] and Zed_Evaluation_Pente(P1,5)>0)

P1 remains grey.

Any help would be greatly appreciated

Thanks

User avatar
TJ
Posts: 7774
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2233 times

Jul 31 2024

I am not quite sure what you are asking.