Get Specific information of Bar

 
Hello dear friends.

I have only one question and I am happy to answer it

I'm using the Metatrader5 library in my Python script and I're using TimeFrame_H4 to get some market information, and now I want to get the same information from a specific bar.
For example, I want to select the candlestick that has the largest purchase volume and extract the same candlestick at another time and check


But unfortunately I do not know what to do, I hope you help me
 
contactsaeed:
Hello dear friends.

I have only one question and I am happy to answer it

I'm using the Metatrader5 library in my Python script and I're using TimeFrame_H4 to get some market information, and now I want to get the same information from a specific bar.
For example, I want to select the candlestick that has the largest purchase volume and extract the same candlestick at another time and check


But unfortunately I do not know what to do, I hope you help me
In forex trading there is no buy volume but only the tick volume, unlike e.g. shares of a regulated stock exchange.
In MQL5 there are different tick volumes. Functions to query the volume. All functions that have to do with the volume can be found here (List of all functions), if you search for volume with Ctrl+F.

And the indicators have the function OnCalculate(..) which provide the volumes of each bar, either tick volume or (money) volume whatever is provided by the broker of the account.

Documentation on MQL5: List of MQL5 Functions
Documentation on MQL5: List of MQL5 Functions
  • www.mql5.com
List of MQL5 Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Carl Schreiber #:
In forex trading there is no buy volume but only the tick volume, unlike e.g. shares of a regulated stock exchange.
In MQL5 there are different tick volumes. Functions to query the volume. All functions that have to do with the volume can be found here (List of all functions), if you search for volume with Ctrl+F.

And the indicators have the function OnCalculate(..) which provide the volumes of each bar, either tick volume or (money) volume whatever is provided by the broker of the account.

Hi dear friend,

Thanks for your replying.

volume was an example.

suppose to you find a candle in a specific time for example Time frame 4hours.

Then you decide to check this candle in different time frame.

For example I did retrieve some information in time frame 4hs.

                 time             open     high      low    close  tick_volume  spread  real_volume
0 2022-01-13 00:00:00  1.14402  1.14482  1.14357  1.14390         3140       0             0
1 2022-01-13 04:00:00  1.14390  1.14463  1.14359  1.14411         2814       0             0
2 2022-01-13 08:00:00  1.14412  1.14784  1.14384  1.14714         9466       0             0
3 2022-01-13 12:00:00  1.14714  1.14775  1.14532  1.14719        13335       0            0
4 2022-01-13 16:00:00  1.14720  1.14817  1.14472  1.14612        17537       0            0
5 2022-01-13 20:00:00  1.14613  1.14664  1.14508  1.14539         6786       0             0


then I want to decide to check the second row in another time frame for instance in time frame 1hr.

I don't know what should I do.

 
contactsaeed #:

Hi dear friend,

Thanks for your replying.

volume was an example.

suppose to you find a candle in a specific time for example Time frame 4hours.

Then you decide to check this candle in different time frame.

For example I did retrieve some information in time frame 4hs.

                 time             open     high      low    close  tick_volume  spread  real_volume
0 2022-01-13 00:00:00  1.14402  1.14482  1.14357  1.14390         3140       0             0
1 2022-01-13 04:00:00  1.14390  1.14463  1.14359  1.14411         2814       0             0
2 2022-01-13 08:00:00  1.14412  1.14784  1.14384  1.14714         9466       0             0
3 2022-01-13 12:00:00  1.14714  1.14775  1.14532  1.14719        13335       0            0
4 2022-01-13 16:00:00  1.14720  1.14817  1.14472  1.14612        17537       0            0
5 2022-01-13 20:00:00  1.14613  1.14664  1.14508  1.14539         6786       0             0


then I want to decide to check the second row in another time frame for instance in time frame 1hr.

I don't know what should I do.

CopyRates you find it in list I gave you the link.
 
Carl Schreiber #:
CopyRates you find it in list I gave you the link.

Thanks a lot

I use python in my script but I didn't find :(

 
contactsaeed #:

Thanks a lot

I use python in my script but I didn't find :(

Hmm - learn to search here for Python there is a lot of example code.
Reason: