0
Views
0
Downloads
0
Favorites
downloadhistoryvisualmode
//+------------------------------------------------------------------+
//| downloadhistoryvisualmode.mq5 |
//| 2011, etrader |
//| http://efftrading.ru |
//+------------------------------------------------------------------+
#property copyright "2011, etrader"
#property link "http://efftrading.ru"
#property version "1.00"
#property description "The script downloads historical data on the current symbol"
#property description " or for all symbols from Market Watch window"
#property script_show_inputs
#include "CDownLoadHistory.mqh"
input ENUM_DOWNLOADHISTORYMODE DMode; // History download mode
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
CDownLoadHistory downloader;
downloader.Create((DMode==DOWNLOADHISTORYMODE_CURRENTSYMBOL)?Symbol():NULL,true);
if(downloader.Execute()<0)
{
Print("Error in loading of historical data: ",downloader.ErrorDescription(downloader.LastError()));
return;
}
Print("Download complete.");
}
//+------------------------------------------------------------------+
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
---