Eliminating global variables for VPS-friendly EAs

 

It is like starting afresh.

Now, my EA is attached to more than one charts. So they won't all access the same static variable (with global scope). But they will all access the same global variable. How can I make my static variable accessible  to EA when attached to more than one charts. The idea is to make my EA VPS-friendly without global variables. Any clue pls.

 
macpee: How can I make my static variable accessible  to EA when attached to more than one charts.

You already know the answer - you don't: "So they won't all access the same static variable (with global scope)."

Terminal variables (Global Variables) are for inter process communications. Common variables (globally declared) and static are remembered between calls.

Handle GV doesn't exist at startup.