Good Idea!
Hi
I want to record my stratergy tester to a file. I want to record all its bids and asks and how it sees my indicators. Then I want to read that into an C# (from sharp development http://www.icsharpcode.net/OpenSource/SD/) program and really debug my EA. I am suffering with the first step - writing the file. I am trying the following to no avail.
Any suggestions?Hi cardio,
It's a good idea.
Let me check the code and return to you with my comment(s).
Hi
I am trying the following to no avail.
Any suggestions?Working good after adding this line of code before FileWrite function:
calculateIndicators();
handle=FileOpen("eurud_1min.csv", FILE_CSV|FILE_WRITE|FILE_READ, ";");
if(handle>0)
{
// write data
FileSeek(handle,0,SEEK_END);
FileWrite(handle, Bid, Ask, Point, isBuying, isSelling);
FileClose(handle);
}What's your next step?
Gona work on Monday!
Hi
The code did not work in the stratergy tester, but I found a great place to get history data
http://www.metaquotes.net/forum/1278/
The second article is particulary interesting. - Anyhow I have what I wanted to start - now on to the code.
Got the data for 2004 - though it is only the last 6 months of 2004.
Then got it into array by following steps at
http://www.c-sharpcorner.com/database/Connect/ConnectODBCText.asp
Still programming
CheersHi cardio,
Thanks!
The code worked for me Thursday.
The FileOpenfunction does not work Saturdays, did you forget?
That is what I need
Geez
You make it look to easy. Thanks for all the encouragement - man I need it. I unistalled IBFX as their file functions don't work on weekends - and installed stratergybuilderfx's MT4 - now the pricecheck1.mq4 runs in stratergy tester - but I don't get a file - in experts\files - if I create a blank file experts\files\eurud_1min.csv - it still doesn't touch the file.
Can stratergy tester write out files?
I beleve if you add the pricecheck to a chart and let it run - then it will get data. But can it data through the tester?
I must be missing something.
Please help
Strategy tester writes out to files.
Geez
Can stratergy tester write out files?
I beleve if you add the pricecheck to a chart and let it run - then it will get data. But can it data through the tester?
I must be missing something.
Please helpcardio,
Yes, strategy tester writes out to files (the eurud_1min.csv file I sent produced in strategy tester).
But the File functionsdon't work in weekends for me (I'm using InterbankFX server)
Easier way to obtain history
Hi
The code did not work in the stratergy tester, but I found a great place to get history data
http://www.metaquotes.net/forum/1278/
The second article is particulary interesting. - Anyhow I have what I wanted to start - now on to the code.
Got the data for 2004 - though it is only the last 6 months of 2004.
Then got it into a c# array by following steps at
http://www.c-sharpcorner.com/database/Connect/ConnectODBCText.asp
Actually the last link goes directly from csv file to datatable which is even better, works for ado.net,c#,vb.net.
Still programming
Cheers
re
Hey cardio, if you like that IDE you should try Visual Studio Express. Its totally free and has all the functionality you would need. I think Visual Studio is the best IDE available, amazingly since it is from M$. I'm using it to write an app of my own.
I'm trying to write an app to read reports from MT4 and digest/display various pieces of informtion from the reports. I want to share it and get feedback from the community as to what functionality it should have. It is still a long time away though.
But I think you would like VS Express.
Right!
Hey cardio, if you like that IDE you should try Visual Studio Express. Its totally free and has all the functionality you would need. I think Visual Studio is the best IDE available, amazingly since it is from M$. I'm using it to write an app of my own.
Fiveway,
I agree with you, I do trust Microsoft development tools. That's because Microsoft is the Windows creator.
I didn't try Express version yet but I'm going to download it when I go to my office which has ADSL connection. Thanks!
I'm trying to write an app to read reports from MT4 and digest/display various pieces of informtion from the reports. I want to share it and get feedback from the community as to what functionality it should have. It is still a long time away though.
But I think you would like VS Express.
http://msdn.microsoft.com/vstudio/express/default.aspxThat's great! KEEP GOING .
Did you try Metatrader DDE? I think this topic may help you.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I want to record my stratergy tester to a file. I want to record all its bids and asks and how it sees my indicators. Then I want to read that into an C# (from sharp development http://www.icsharpcode.net/OpenSource/SD/) program and really debug my EA. I am suffering with the first step - writing the file. I am trying the following to no avail.
Any suggestions?