Experts: FarhadCrab1 - page 2

 
Vladimir Karputov:

And who will look in the "Experts" tab in the terminal?

There this came out, and what it is I do not understand.

2018.03.13 12:22:08.046 ENUM_TIMEFRAMES (EURUSD,H1) PERIOD_H1 16385

Also the number 16385. What is: ENUM_TIMEFRAMES ?


 
Shara1:

That's where this came out, and I don't understand what it is.

2018.03.13 12:22:08.046 ENUM_TIMEFRAMES (EURUSD,H1) PERIOD_H1 16385

Also the number 16385. What is: ENUM_TIMEFRAMES ?


What exactly is not clear: What is "Time"? Or what is"Source"? Or what is'Message'?"


 
Vladimir Karputov:

What exactly is not clear: "What is'Time'? Or what is'Source'? Or what is'Message'?"


I'm sorry, I'm just being obtuse. Time is clear, source (EURUSD,H1), it is also clear that from EURUSD,H1-Period, from H1 chart. But what are the numbers 16385, I don't understand anything. What is this ENUM_TIMEFRAMESfile for , what does it do? Maybe you can read about it somewhere.

 
Shara1:

I'm sorry, I'm stupid. Time is clear, source (EURUSD,H1), it is also clear that from EURUSD,H1-Period, from H1 chart. But what are the numbers 16385, I do not understand and nothing. What is this file ENUM_TIMEFRAMES for , what does it do?

This file answers your question:

Forum on trading, automated trading systems and testing trading strategies

Expert Advisors: FarhadCrab1

Shara1, 2018.03.13 06:49 pm.

Hello Vladimir. Could you please tell me what these digits from the tester report mean?

...


Further I wrote:

Forum on trading, automated trading systems and testing trading strategies

Expert Advisors: FarhadCrab1

Vladimir Karputov, 2018.03.13 07:15 AM

Numbers are the values of variables. ..., listing timeframe is also after all a number. ....


And to see what the value of each timeframe is:

Forum on trading, automated trading systems and testing trading strategies

Expert Advisors: FarhadCrab1

Vladimir Karputov, 2018.03.13 07:44 AM

Run this example and look in the Expert Advisors tab

PERIOD_CURRENT 1
PERIOD_M2 2
PERIOD_M3 3
PERIOD_M4 4
PERIOD_M5 5
PERIOD_M6 6
PERIOD_M10 10
PERIOD_M12 12
PERIOD_M15 15
PERIOD_M20 20
PERIOD_M30 30
PERIOD_H1 16385
PERIOD_H2 16386
PERIOD_H3 16387
PERIOD_H4 16388
PERIOD_H6 16390
PERIOD_H8 16392
PERIOD_H12 16396
PERIOD_D1 16408
PERIOD_W1 32769
PERIOD_MN1 49153


 

And a final link: Periods of graphs

Graph periods

All predefined chart periods have unique identifiers. The identifier PERIOD_CURRENT means the current chart period on which the mql5 program is running.

ENUM_TIMEFRAMES

identifier

Description

PERIOD_CURRENT

Current period

PERIOD_M1

1 minute

PERIOD_M2

2 minutes

PERIOD_M3

3 minutes

PERIOD_M4

4 minutes

PERIOD_M5

5 minutes

PERIOD_M6

6 minutes

PERIOD_M10

10 minutes

PERIOD_M12

12 minutes

PERIOD_M15

15 minutes

PERIOD_M20

20 minutes

PERIOD_M30

30 minutes

PERIOD_H1

1 hour

PERIOD_H2

2 hours

PERIOD_H3

3 hours

PERIOD_H4

4 hours

PERIOD_H6

6 hours

PERIOD_H8

8 hours

PERIOD_H12

12 hours

PERIOD_D1

1 day

PERIOD_W1

1 week

PERIOD_MN1

1 month


 
Vladimir Karputov:

This file answers your very question:


Next I wrote:


And in order to see what value each timeframe has:



You wrote: Moving Average which has a hard setting - period D1. I wanted to know what is the period figure of the Moving Average on D1.It is not the same - " ENUM_TIMEFRAMES (EURUSD,H1) PERIOD_D116408".This is to put on the chart Moving Average which has a rigid setting - period D1. I have not had a single trade on this Expert Advisor since morning, although yesterday everything was normal, so it seems to me that there were no conditions for a trade, because of this moving average, because it is not on the chart, and it is not clear.



Thank you.


 
Shara1:

You wrote: Moving Average which has a hard setting - period D1. I wanted to know what is the period figure of the moving average on D1.It is not the same - " ENUM_TIMEFRAMES (EURUSD,H1) PERIOD_D116408".This is to put on the chart Moving Average which has a rigid setting - period D1. I have not had a single trade on this Expert Advisor since morning, although yesterday everything was normal, so it seems to me that there were no conditions for a trade, because of this moving average, because it is not on the chart, and it is not clear.



Thank you.


I can't understand anything. Please rephrase your question, before that read the DESCRIPTION of the EA in the Expert Advisor and the DESCRIPTION of input parameters.

 
Vladimir Karputov:

I can't understand anything. Please rephrase your question, before that read the description of the Expert Advisor in the Expert Advisor and the DESCRIPTION of input parameters.

The description says: The Expert Advisor works on two iMA (Moving Average, MA) (with one indicator having a hard setting - period D1) and one iSAR (Parabolic SAR).

I have one Moving Average and Parabolic SAR on the chart. To put on the chart the second Moving Average, which has a rigid setting - period D1, I need to know its settings. Does it have them, or do they float depending on the timeframe the Expert Advisor is on?

 
Shara1:

The description says: The Expert Advisor works on two iMA (Moving Average, MA) (with one indicator having a hard setting - period D1) and one iSAR (Parabolic SAR).

I have one Moving Average and Parabolic SAR on the chart. To put on the chart the second Moving Average, which has a rigid setting - period D1, I need to know its settings. Does it have them, or do they float depending on the timeframe the Expert Advisor is on?

A correctly formulated question 99% guarantees a quick answer!

Movinv Average D1indicator settings are taken from the input parameters. Thus, both Moving Average indicators have identical settings, except for timeframes. By the way, this can be clearly seen in the code.

 
Vladimir Karputov:

A properly worded question is 99% guaranteed to get a quick answer!

Movinv Average D1indicator settings are taken from the input parameters. Thus, both Moving Average indicators have identical settings, except for timeframes. By the way, it is perfectly visible in the code.

Thanks, that's what I need. I haven't looked into the code yet. It means that on the five-minute I have the Moving Average with the parameter 78, and the daily one also 78, right?