Share a calculated value between two signals in the same chart for backtesting

Questions about MultiCharts and user contributed studies.
MKKL
Posts: 8
Joined: 31 Dec 2018
Has thanked: 2 times

Share a calculated value between two signals in the same chart for backtesting

Postby MKKL » 15 Jul 2022

Just wonder if there is a way that I can share a calculated value from one signal to another signal for backtesting and both signals are in the same chart.

I tried the global variable (GV) and i_setplotvalue/i_getplotvalue, it seems both do not work in backtesting.

Should I just use external file?

Thanks.
MKKL

MKKL
Posts: 8
Joined: 31 Dec 2018
Has thanked: 2 times

Re: Share a calculated value between two signals in the same chart for backtesting

Postby MKKL » 15 Jul 2022

Found the solution from another post. Use the following functions can share the calculated values among signals in the same chart, tested and it worked.

AccuracyGetNamedDouble
AccuracyGetNamedInt
AccuracySetNamedDouble
AccuracySetNamedIn

viewtopic.php?t=52407&p=134489#p134489

MKKL


Return to “MultiCharts”