Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader 5

MetaTrader 5 MT5 is already out of its beta stage, but the development is ongoing. Some brokers already offer real accounts and the interest of traders is growing. You can discuss anything related to MetaTrader 5 in this forum.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24th October 2011, 08:00
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default File_Write problem

Hi
I am not sure if I am doing this right.

MQL5 Code:
   int filehandle=FileOpen("alosh.csv",FILE_WRITE|FILE_CSV);  

// and inside the loop

         if(TimeToString(_Period) == "M1")
            FileWrite(filehandle,Y);
Reply With Quote
  #2 (permalink)  
Old 24th October 2011, 08:41
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,547
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Yes, it looks correct to me.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #3 (permalink)  
Old 24th October 2011, 08:43
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default

where is it file located? I searched for no avail.
Reply With Quote
  #4 (permalink)  
Old 24th October 2011, 11:01
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,547
Thanks: 18
Thanked 20 Times in 16 Posts
Default

For demo/real trading:
/MQL5/Files/

For backtesting:
/tester/<agent name>/MQL5/Files/
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #5 (permalink)  
Old 24th October 2011, 16:06
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't have Files under MQL5 in my Window 7 installation. I further searched MQL5 for the file for no avail.
FileIsExist() reports true.

hummm
Reply With Quote
  #6 (permalink)  
Old 25th October 2011, 07:19
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,547
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Do you run backtest or a forward demo test?
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #7 (permalink)  
Old 25th October 2011, 09:01
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default

none. just launching an indicator with an member function of one object using the File writing stuff.
Reply With Quote
  #8 (permalink)  
Old 25th October 2011, 11:37
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,547
Thanks: 18
Thanked 20 Times in 16 Posts
Default

How are you launching it?
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #9 (permalink)  
Old 25th October 2011, 15:05
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in debugging mode, hitting the run button on the tool bar. or attaching the indicator to a chart.
Reply With Quote
  #10 (permalink)  
Old 25th October 2011, 15:45
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,547
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Hmmm... I don't know where the file is saved in the Debug mode. Try searching for "alosh.csv" file via Windows.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Technical Problem: Copy Tool? Forexlight General Forex Discussion 0 27th January 2011 08:50
MetaTrader Windows window Problem JXBlack MetaTrader Expert Advisors 3 29th October 2009 19:39


All times are GMT. The time now is 11:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2