I wish to create an array:
const int profitsSize = 32;
Is it possible to share this array with all instances of my EA?
It’s so the EA’s can decide which currency pair to open, the most profitable one.
I also need to share an int too(profitIndex) so each EA knows which array index to bind to. And also set the profitIndex to 0 only once.
int profitIndex; ... // when first EA loaded profitIndex = 0; ... // set bindProfitIndex when each EA is loaded int bindProfitIndex = profitIndex++; ... // set potential profit potentialProfits[bindProfitIndex] = ...;
Can EA’s use pointers as in c++?