Price Data Components
Miscellaneous
0
Views
0
Downloads
0
Favorites
TickLoggerForFXT1
/*-----------------------------+
| |
| Shared by www.Aptrafx.com |
| |
+------------------------------*/
//+------------------------------------------------------------------+
//| TickLoggerForFXT.mq4 |
//| Paul Hampton-Smith |
//+------------------------------------------------------------------+
int handle;
int init()
{
Comment("Waiting for tick");
handle = FileOpen(Symbol() + TimeToStr(CurTime(),TIME_DATE) + "_tick_log.csv", FILE_CSV|FILE_READ|FILE_WRITE, ';' );
FileSeek(handle,0,SEEK_END);
}
int deinit()
{
FileClose(handle);
}
int start()
{
Comment("Logging ticks");
FileWrite(handle,TimeToStr(CurTime()),Bid);
return(0);
}
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---