Forum

Problem using global variable

I have a problem... I declared an array outside any function, so, the scope of this array is global. Execute the EA and I save and load data from this array on a pair, for example EURUSD without problems but, the problem is when I execute the same Expert Advisor on 2 or more pairs, the data is

How to know the period at I drawn an object?

I draw some Fibos at 5Min, 15Min, 1H and 1Day, I use the function ObjectsTotal() and it sends me 12 and it's OK, but I want to know for example: Fibo1677 was draw at 5Min Period Fibo 1900 was draw at 1H Period Fibo 1873 was draw at 15Min Period Fibo 1123 was draw at 5Min Period Fibo 7125 was draw at

I'm looking for a way to connect financial calendar to Metatrader 4

Hello, I want to trade with financial news but I need an API to connect the news on real time to Metatrader 4, do yo know a service to do that? It is not a problem if I have to pay for this Beforehand, thank you very much

Problem with array index higher than [100]

Hello, I have a problem and I don't know how solve it I need data from different bars, data like: volume, close, open, high and low... I don't have problem with first 100 bars, the problem is when I try to get those values of bars higher than 100, I get the error " array out of range " I try