downloadhistorysilentmode

Author: 2011, etrader
0 Views
0 Downloads
0 Favorites
downloadhistorysilentmode
//+------------------------------------------------------------------+
//|                                    downloadhistorysilentmode.mq5 |
//|                                                    2011, etrader |
//|                                             http://efftrading.ru |
//+------------------------------------------------------------------+
#property copyright "2011, etrader"
#property link      "http://efftrading.ru"
#property version   "1.00"
#property description "Example of history downloading in 'silent' mode"

#include "CDownLoadHistory.mqh"
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   CDownLoadHistory downloader;
   downloader.Create(Symbol());
   if(downloader.Execute()<0)
     {
      Print("Error in loading of historical data for "+Symbol()+": ",downloader.ErrorDescription(downloader.LastError()));
      return;
     }
   Print("History download for "+Symbol()+" complete.");
  }
//+------------------------------------------------------------------+

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 ---