How to access all prices in a bar ?

 

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!

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

 
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.
 
https://www.mql5.com/ru/code/20298
HistoryTicks
HistoryTicks
  • votes: 5
  • 2018.03.29
  • fxsaber
  • www.mql5.com
Советники в MetaTrader 4 пропускают тики, пришедшие в во время любых пауз: выполнение торговых приказов, вычисления, ожидание и т.д. Такая потеря информации может привести к серьезному искажению заложенной логики в ТС. Особенно для ТС, где используется анализ Ask-цен, спред и т.д. Например, стандартное написание MetaTrader 4 советника не...
 
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.
 
fxsaber:
https://www.mql5.com/ru/code/20298
Thanks! I'll look into it.
Reason: