Price Data Components
0
Views
0
Downloads
0
Favorites
OHLC
/*-----------------------------+
| |
| Shared by www.Aptrafx.com |
| |
+------------------------------*/
//+------------------------------------------------------------------+
//| 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 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
---