-
symbolListFinal[i]=symbolPrefix+symbolList[i]+symbolSuffix; CheckNews(symbolListFinal[i]) ; ⋮ bool CheckNews(string sym){ string currencybase = StringSubstr(sym,0,3) ; string currencyquote = StringSubstr(sym,3,3) ;
These fail if you have any prefix.
-
int base = CalendarValueHistory(value,before,end,NULL,currencybase); int quote = CalendarValueHistory(value1,before,end,NULL,currencyquote); int z = base + quote;
The function returns bool. What do you think z means?
for(int i = 0; i < z; i++){ ulong event_id = value2[i].event_id;
z is not the size of value2.
For 1. I would suggest using the symbols properties Base, profit and margin currency to compose a clean symbol string.
Works much more reliable.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have EA which prints out Interest Rate Decision of various countries, I have a for loop which loops through 28 pairs and when the news is true it prints out. For example today there is "ECB Interest Rate Decision" so I expect only pairs with "EUR" to return true but all others are returning true. How can I modify the code to get the correct results?