Getting prices from another symbol?
MarketInfo function https://docs.mql4.com/common/MarketInfo
Timeseries functions https://docs.mql4.com/series
Timeseries functions https://docs.mql4.com/series
here's a hint for you:
double array[x][6];
ArrayCopyRates(array,Pair,0);
Two dimensional array is not so scary as it sounds ;)
x- length of data or number of Bars
the second dimension is information about Time, Open, Close, High, Low, Volume
this means that value of array[0][1] is opening price now and array[1000][2] is close price 1000 bars back. Somehow I think that if you need a long row of data then using array speeds up things. But of course series what stringo suggested are good as well.
Hope it helps!
double array[x][6];
ArrayCopyRates(array,Pair,0);
Two dimensional array is not so scary as it sounds ;)
x- length of data or number of Bars
the second dimension is information about Time, Open, Close, High, Low, Volume
this means that value of array[0][1] is opening price now and array[1000][2] is close price 1000 bars back. Somehow I think that if you need a long row of data then using array speeds up things. But of course series what stringo suggested are good as well.
Hope it helps!
If anyone can recommend a solution or even provide me with a hint in the right direction that'd be much appreciated!