OHLC_v1
Price Data Components
Series array that contains open prices of each barSeries array that contains the highest prices of each barSeries array that contains the lowest prices of each barSeries array that contains close prices for each bar
0 Views
0 Downloads
0 Favorites
OHLC_v1
//+------------------------------------------------------------------+
//|                                                       OHLC       |
//|                                    Copyright © 2006, Robert Hill |
//|                                       http://www.metaquotes.net/ |
//|                                                                  |
//|                                                                  |
//+------------------------------------------------------------------+
#property  copyright "Copyright © 2006, Robert Hill "
#property  link      "http://www.metaquotes.net/"

//---- indicator settings
#property  indicator_chart_window


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
  
   return(0);
  }

int start()
{
Comment("Yesterdays ",
        "O: " + DoubleToStr(iOpen(Symbol(), 1440, 1),Digits),
        ", H: " + DoubleToStr(iHigh(Symbol(), 1440, 1),Digits),
        ", L: " + DoubleToStr(iLow(Symbol(), 1440, 1),Digits),
        ", C: " + DoubleToStr(iClose(Symbol(), 1440, 1),Digits),
        " Range = " + DoubleToStr( (iHigh(Symbol( ), 1440, 1) - iLow(Symbol( ), 1440, 1) ) / Point,0),"\n",
        "Todays ",
        "O: " + DoubleToStr(iOpen(Symbol(), 1440, 0),Digits),
        ", H: " + DoubleToStr(iHigh(Symbol(), 1440, 0),Digits),
        ", L: " + DoubleToStr(iLow(Symbol(), 1440, 0),Digits),
        ", C: " + DoubleToStr(iClose(Symbol(), 1440, 0),Digits),
        " Range = " + DoubleToStr( (iHigh(Symbol( ), 1440, 0) - iLow(Symbol( ), 1440, 0) ) / Point,0),"\n");
        
      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 ---