Yellowbeard:
If I can utilize iHighest to find the highest high within 100 periods, and then find the Open of that period / candle. Would I use the following code to find the Open of a specific period. For example, if the highest high was on the 70 the period, and I want to find the Open of the 73rd period.
Not quite . . .
int maxshiftz = iHighest(NULL, 0, MODE_OPEN, CntBarsz, 0);
. . . will find the highest open price because you used MODE_OPEN
If you want to find the Open of the 3 bar along from the highest . . .
int maxshiftz = iHighest(NULL, 0, MODE_HIGH, CntBarsz, 0); int XMXOp = (maxshiftz-3); // Third Candle from Highest Alert("Open of ",XMXOp," Candle = ",Open[XMXOp]);
Thanks! I knew I had to be close. And yet, so far. Now, if I want to identify the period / candle, on a chart, with an arrow. Would I do so as such. This places an arrow on the same period as iHighest but at a different value. Not on the third candle from the highest.
ObjectCreate("UpSymbolZz", OBJ_ARROW, 0, maxtimez,Open[XMXOp]); ObjectSet("UpSymbolZz", OBJPROP_ARROWCODE, SYMBOL_ARROWUP); ObjectSet("UpSymbolZz", OBJPROP_COLOR,Aqua);
Yellowbeard:
Thanks! I knew I had to be close. And yet, so far. Now, if I want to identify the period / candle, on a chart, with an arrow. Would I do so as such. This places an arrow on the same period as iHighest but at a different value. Not on the third candle from the highest.
Thanks! I knew I had to be close. And yet, so far. Now, if I want to identify the period / candle, on a chart, with an arrow. Would I do so as such. This places an arrow on the same period as iHighest but at a different value. Not on the third candle from the highest.
You could do this . . .
ObjectCreate("UpSymbolZz", OBJ_ARROW, 0, Time[XMXOp], Open[XMXOp]); ObjectSet("UpSymbolZz", OBJPROP_ARROWCODE, SYMBOL_ARROWUP); ObjectSet("UpSymbolZz", OBJPROP_COLOR,Aqua);
RaptorUK:
You could do this . . .
Thanks again, RaptorUK, for all your help. That worked.
Yellowbeard
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If I can utilize iHighest to find the highest high within 100 periods, and then find the Open of that period / candle. Would I use the following code to find the Open of a specific period. For example, if the highest high was on the 70 the period, and I want to find the Open of the 73rd period.
Thanks