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
Ok I have read through the Market Info documentation and realised you can only pull bid/ask prices. How would I attempt to pull the price data(HLOC) from say 6 bars ago ?
To be honest I have spent allot of time reading through the documentation and it is not as helpful as say other languages like Python or PRT so was just looking for some guidance
Kind Regards,
Ok I have read through the Market Info documentation and realised you can only pull bid/ask prices. How would I attempt to pull the price data(HLOC) from say 6 bars ago ?
To be honest I have spent allot of time reading through the documentation and it is not as helpful as say other languages like Python or PRT so was just looking for some guidance
Kind Regards,
Use iOpen(),iClose(),iHigh() and/or iLow()
Hi Pros,
I really got mad when reading this topic, sorry for bringing it up. But since I've had the same issue, I decided comment here.
Here is my code:
double Ask2,Bid2;
----------------------------
void start()
{
Ask2=MarketInfo("GBPUSD",MODE_ASK);
Bid2=MarketInfo("GBPUSD",MODE_BID);
Comment(Ask2, Bid2);
}
The comment shows 00
Why couldn't it import Ask and Bid from another Symbols?
Any advice is appreciated,
Hossein
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
Synchronize Server Data with Terminal Data - Symbols - General - MQL5 programming forum
On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors before accessing prices.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
Synchronize Server Data with Terminal Data - Symbols - General - MQL5 programming forum
Thank you for your help.
I use Tick Data Suite from eareview.net and I've downloaded history of my target pairs including GBPUSD before backtesting. In addition, Journal doesn't give me any error. Is it something about integration? Should I look for solution by contacting Tick Data Suite support?
(I use MQL4 for coding)Can someone try this code while backtesting on GBPAUD -4H chart? I'm really stuck :(
Do you get 00 as comment?
It has nothing to do with TDS. You have to get the terminal to read in the data before accessing it. What part of "before accessing prices" was unclear?
You going to stay that way when you ignore the help you receive. What part of "must handle" was unclear?
It has nothing to do with TDS. You have to get the terminal to read in the data before accessing it. What part of "before accessing prices" was unclear?
You going to stay that way when you ignore the help you receive. What part of "must handle" was unclear?
Sorry I'm newbie coder and it seems I could not understand what you mean. Actually what I figured out by your advice is "waiting to download history and current price data of the second currency pair before doing anything."
Could you please give me further details about what should I do with this code you had posted?
I have copied the upper code into my global area and it gives me error and warnings.
I've copied this line of code into my start function as well:
Could you please advice me what and where should I insert sufficient information and punctuation?
Again sorry for my low level skill...
HosseinKOGO: Could you please give me further details about what should I do with this code you had posted?
Thank you for your response,
In fact I'm not coder however I've tried coding some EAs. My job is connected with creativity and strategy so I brain stormed 600-700 ideas for making EAs and built them till now. I just can code very easy EAs and I'm unaccustomed to your high level coding...
I've put those codes into my EA but it returns just this error: 2019.05.06 15:37:56.586 2018.01.02 00:00:07 MyEA! GBPAUD,H4: iTime(GBPUSD,240) Failed: 0
I'm trying GBPAUD as my opened chart and GBPUSD as my second pair.
What is the problem?