Multicurrenncy Expert Advisor

 

Hi,

I wrote an Expert Advisor dealing with multicurrenncy (one pair chart is open, and others-we call it "foreign" pairs- are not open).

When referring to any "foreign" pairs to get for example the High of the last closed candle (shift=1) in M15 chart like:

double lastHigh = iHigh("GBPUSD", 15, 1);

I am getting the High of older candle. Seems that "foreign" pairs need to update before dealing with.

Any idea please ?


 

I am asking about information because I did not get the answer. Unfortunately I got only silly notes from you, so do not interfere, and give the way to people who know how to answer.

 

You did get your answer, there. You apparently didn't understand it. By double posting, you are wasting everyone's time. You are being rude. The way to "give the way to people who know how to answer" is to let them post in your original post. Don't double post.

 

I doubled it here because by mistake I post it in MQL5. So get a way, let programmers answer, we do not need your noise.

 

Please see: https://www.mql5.com/en/docs/constants/structures/mqltick

Edit sorry i realize now you need highs and lows please see: https://www.mql5.com/en/docs/constants/structures/mqlrates
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Price Data Structure
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Price Data Structure
  • www.mql5.com
This is a structure for storing the latest prices of the symbol. It is designed for fast retrieval of the most requested information about current prices. The parameters of each tick are filled in regardless of whether there are changes compared to the previous tick. Thus, it is possible to find out a...
Reason: