|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
|
|
LinkBack | Thread Tools |
|
|
|||
|
|||
|
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? Last edited by cardio : 11-11-2005 at 12:10 PM. |
|
|
||||
|
||||
|
Quote:
It's a good idea. Let me check the code and return to you with my comment(s). |
|
|
|||
|
|||
|
Thanks a million
I will test it during lunch. Now I intend to write a C# program that has a modified version of the EA I am working on – the program will see the EA as a function that returns buy or sell and will write up anther array keeping track of trades. The program will first read the stratergy tester results into an array and then loop through the array, at each row sending the data to the function. Then I will be able to debug the EA and see where it is going wrong. The EA of course is http://www.forex-tsd.com/showthread.php?p=1698#post1698 But I intend to redo this procedure for many other EA – to get a method to successfully debug and test complex logic on them. Last edited by cardio : 11-11-2005 at 06:42 PM. Reason: Won't create 2 arrays, only one |
|
|
||||
|
||||
|
Quote:
KEEP GOING and tell me your progress.Don't hesitate for asking me for help. |
|
|
|||
|
|||
|
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/databas...ctODBCText.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 Last edited by cardio : 11-13-2005 at 12:55 PM. Reason: wanted to highlight csv to datatable works for ado.net,c#,vb.net |
|
|
||||
|
||||
|
Gona work on Monday!
Quote:
Thanks! ![]() The code worked for me Thursday. The FileOpen function does not work Saturdays, did you forget? FileOpen problem... |
|
|
|||
|
|||
|
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 Last edited by cardio : 11-12-2005 at 02:45 PM. |
|
|
||||
|
||||
|
Quote:
Yes, strategy tester writes out to files (the eurud_1min.csv file I sent produced in strategy tester). But the File functions don't work in weekends for me (I'm using InterbankFX server) |
|
|
|||
|
|||
|
Thanks again
Thanks -
I will try it on Monday, because the file functions must also not work on Stratergybuilderfx on the weekend. Otherwise just getting things going in C# - this free IDE is very cool. Cheers Actually the IDE is not so cool, I uninstalled it and did the 400mb download of c# express. And will now try that. I got another answere from metaquotes when I asked them if file functions work in startergy tester, they answered 'file functions work. but in case of testing all the processed files must be placed in the tester\files directory' Cheers Stephen Last edited by cardio : 11-14-2005 at 11:53 AM. Reason: IDE not so cool |
| Thread Tools | |
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Writing indicator value into external file | pawelsz | Indicators - Metatrader 4 | 5 | 02-09-2007 03:01 AM |
| Help with writing your own strategies | hitman22 | Metatrader 4 | 2 | 03-15-2006 10:22 AM |