HistoryDownloaderI_v1

Author: © xp3rienced
0 Views
0 Downloads
0 Favorites
HistoryDownloaderI_v1
ÿþ// +                                                                                              +

// ¦     History Downloader Indicator                                      HistoryDownloaderI.mq4 ¦

// ¦  Indicator for History Downloader EA.                                                        ¦

// ¦  The indicator's objective is setting and updating the global variables:                     ¦

// ¦     " BarOnChartCount - number of bars on the current chart;                                  ¦

// ¦     " FirstBarDateTime - date and time of the first bar on the chart.                         ¦

// ¦----------------------------------------------------------------------------------------------¦

// ¦     [release 1] 23.08.2009                                                                   ¦

// ¦ " The first release. Bug reports and suggestions for optimization are welcome ;)              ¦

// ¦                                                            | © xp3rienced, Ekaterinburg 2009 ¦

// +                                                                                              +

#property copyright "© xp3rienced"

#property link      "no4ta[at]inbox.ru"



#property indicator_separate_window



#define GVNAME_BAR_COUNT "BarOnChartCount"

#define GVNAME_FIRST_BAR_TIME "FirstBarDateTime"



//+------------------------------------------------------------------+

//|                Indicator deinitialization function               |

//+------------------------------------------------------------------+

int deinit()

{

//----

  GlobalVariableDel(GVNAME_BAR_COUNT);

  GlobalVariableDel(GVNAME_FIRST_BAR_TIME);

//----

  return(0);

}



//+------------------------------------------------------------------+

//|                   Indicator iteration function                   |

//+------------------------------------------------------------------+

int start()

{

//----

  GlobalVariableSet(GVNAME_BAR_COUNT, Bars);

  GlobalVariableSet(GVNAME_FIRST_BAR_TIME, Time[Bars-1]);

//----

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