I should have mentioned that the exact same code when ran from a script does produce the correct price quotes. I do not understand how
there could be that much of a difference in a script vs. an EA but the results are not the same. Any explanation on what I am missing would
be greatly appreciated
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 created a simple MT4 EA that writes the datetime/open/high/low/close values for the GbpUsd to a text file. The values that MT4 is returning are not accurate. The last record I received is at the bottom of this post. It shows 1.2462 as the current price but the low for the entire day so far is 1.2546. How is that possible?
input string InpSymbolName="GBPUSD";
input ENUM_TIMEFRAMES InpSymbolPeriod=PERIOD_M1;
input string InpFileName="GBP.csv";
input string InpDirectoryName="Data";