How to access all prices in a bar ?

To add comments, please log in or register
Lou Jo
45
Lou Jo  

I know I can access the open, close, high and low with Open[0] / Close[0] / High[0] / Low[0].

What about the other prices in this same bar ?

Thanks!

Mohamad Zulhairi Baba
16538
Mohamad Zulhairi Baba  
LouJo:

I know I can access the open, close, high and low with Open[0] / Close[0] / High[0] / Low[0].

What about the other prices in this same bar ?

Thanks!

What other price are you referring?
Tick price?
Lou Jo
45
Lou Jo  
Mohamad Zulhairi Baba:
What other price are you referring?
Tick price?
Yes, tick price. All the prices that are contained in this bar. If it is an one hour bar, it should have plenty of tick prices.
SandraWHaddox
33
SandraWHaddox  
The inside bar (candlestick) chart pattern shows us consolidation in price which can make it a great trading tool if you trade the inside bar setups correctly.
William Roeder
20233
William Roeder  
Lou Jo: Yes, tick price. All the prices that are contained in this bar. If it is an one hour bar, it should have plenty of tick prices.

No such things. M1 is the smallest timeframe stored.

Gurmeet Budhraja
745
Gurmeet Budhraja  
Lou Jo:

I know I can access the open, close, high and low with Open[0] / Close[0] / High[0] / Low[0].

What about the other prices in this same bar ?

Thanks!

Get tick prices - this is your friend - https://docs.mql4.com/constants/structures/mqltick - convert the time to second and find if you already have other ticks with same time (like in same minute/ second or hour depending on what you wish to look for )

Structure for Current Prices - Data Structures - Standard Constants, Enumerations and Structures - MQL4 Reference
Structure for Current Prices - Data Structures - Standard Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
This is a structure for storing the latest prices of the symbol. It is designed for fast retrieval of the most requested information about current prices.
fxsaber
15793
fxsaber  
https://www.mql5.com/ru/code/20298
HistoryTicks
HistoryTicks
  • votes: 5
  • 2018.03.29
  • fxsaber
  • www.mql5.com
Советники в MetaTrader 4 пропускают тики, пришедшие в во время любых пауз: выполнение торговых приказов, вычисления, ожидание и т.д. Такая потеря информации может привести к серьезному искажению заложенной логики в ТС. Особенно для ТС, где используется анализ Ask-цен, спред и т.д. Например, стандартное написание MetaTrader 4 советника не...
Lou Jo
45
Lou Jo  
Gurmeet Budhraja:

Get tick prices - this is your friend - https://docs.mql4.com/constants/structures/mqltick - convert the time to second and find if you already have other ticks with same time (like in same minute/ second or hour depending on what you wish to look for )

Thanks ! Helpful indeed.
Lou Jo
45
Lou Jo  
fxsaber:
https://www.mql5.com/ru/code/20298
Thanks! I'll look into it.
To add comments, please log in or register