CollectData

Author: Copyright � 2006, Derk Wehler
CollectData
Price Data Components
Series array that contains open time of each bar
Miscellaneous
Uses files from the file systemIt writes information to file
0 Views
0 Downloads
0 Favorites
CollectData
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//=============================================================================
//															CollectData.mq4
//											  Copyright © 2006, Derk Wehler
//
//=============================================================================
#property copyright "Copyright © 2006, Derk Wehler"
#property link      "none"


//=============================================================================
// expert initialization function
//=============================================================================
int init()
{
	return(0);
}
  
  
//=============================================================================
// expert deinitialization function
//=============================================================================
int deinit()
{
	return(0);
}
  
  
//=============================================================================
// expert start function
//=============================================================================
int start()
{
	int handle;

	handle = FileOpen("Data_" + Symbol() + ".csv", FILE_READ|FILE_WRITE|FILE_CSV, ",");
	FileSeek(handle, 0, SEEK_END);      
	FileWrite(handle, TimeToStr(CurTime(), TIME_DATE|TIME_SECONDS), Bid, Ask);
	FileClose(handle);
	
	return(0);
}


Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---