|
|||||||
| 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 | Display Modes |
|
|||
|
FileOpen does not work on the weekend either
Hi
I was trying out file functions during the week and they worked fine - then I sat down Saturday to try some file functions - and nothing works. I figure it is because the 'int start()' function is only called on a new trade - so with no trading - there is nothing to kick of the program. Or am I totally confused? |
|
||||
|
Quote:
int start() does not work only when receiving new quotations (which is disabled at Saturdays) but it works too when you attach your EA or CI to the chart, when you change the charts periodicity, when you refresh the chart and a lot of other cases. To be sure of what am I saying, try this code where OpenFile and int start have worked with me in Saturday: int start() { Alert("I'm working even in Saturdays!"); //are you working in Saturdays? int handle; handle=FileOpen("test.txt",FILE_BIN|FILE_WRITE); if(handle<1) //there's an error opening the file { Alert(ErrorDescription( GetLastError())); } else { Alert("file has been opened"); FileWrite(handle,"hi"); FileClose(handle); } } So I think there's something wrong with those functions. Do you have any code to test? |
|
|||
|
something must be wrong with interbankfx on the weekend
Hi - first off thanks for all the great lessons, I will post some comments on them now.
I tried your code, during the weekend and did not even get your first alert - saying "I'm working even in Saturdays!". So interbankfx must shut down their system over the weekend. When I tried it when interbankfx market was open your code worked - so that proves it. Last edited by cardio : 11-07-2005 at 01:20 AM. Reason: spelling and grammer |
|
||||
|
Quote:
, Please find the file in MetaTrader 4\tester\files Directory. |
|
||||
|
I created a Files handling replacement DLL - built with Visual C++.
![]() MT4 Files Functions Replacement. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MQL4 FileOpen function | owkenobi | Metatrader 4 | 9 | 03-18-2008 02:17 PM |
| programming problem...! | gigiyoffee | Metatrader 4 | 2 | 05-01-2007 06:36 PM |
| Problem with .ex4................. | EFX | General Discussion | 4 | 10-21-2006 07:23 AM |
| My First EA problem | demag | Questions | 4 | 02-10-2006 08:18 AM |
| I've a Problem here | hellkas | Metatrader 4 | 6 | 11-04-2005 12:30 AM |