Questions from a "dummy" - page 210

 

Is it possible to implement it in MQL5 and how?

1) Saving of forward and backtest optimization results from Expert Advisor table? I.e. I want to save all 10 000 results during optimization, not just one run through the history.

2) Change the optimization settings from the Expert Advisor.

3) Go through 1 and 2 points and run a new optimization by new parameters.

 

Hello.

// Процесс №1
   int *pi = new int();
   *pi = 555;
   cout<<(int)pi;

   // Процесс №2
   int v;                               
   cin>>v;      // Вводим cout<<(int)pi, полученный при общении с первым процессом.
   int *pi = (int*)v;   // +- ЧТО?
   cout<<*pi;

Purpose: to pass a pointer to an object in the heap, between processes (make it correct).

Is it possible?

 
Hi, help solve a problem!

The essence of the problem is not correctly divide the prices!

Here's an example: 1.2829 + 1.2814 / 2 = 1.9236 and should be 1.2821.

Here's the code SUM = High[i+1] + Low[i+1] / 2;

Can you tell me where the error is?
 
veti-k:
Here's an example: 1.2829 + 1.2814 / 2 = 1.9236 and it should be 1.2821
код SUM = (High[i+1] + Low[i+1])/2; 
 
veti-k:
hey,help me solve this problem.

The essence of the problem is not correctly divide the prices!

Here is an example: 1.2829 + 1.2814 / 2 = 1.9236 and should be 1.2821.

Here's the code SUM = High[i+1] + Low[i+1] / 2;

Can you tell me where the error is?

Actually, it's division first and then addition.

You have 1.2829 + 1.2814 / 2 = 1.9236.

and the formula for the car should be (1.2829 + 1.2814) / 2 = 1.2821.

 
Zeleniy:

Actually, it's division first and then addition.

You have 1.2829 + 1.2814 / 2 = 1.9236.

The formula for the machine should be (1.2829 + 1.2814) / 2 = 1.2821

Thanks))
 
A100:
Thank you))
 
veti-k:
Thank you))
My pleasure =D


Order of arithmetic operations

1) in parentheses: 10 + 6 = 16;

2) Subtraction: 38 - 16 = 22.

If an expression without parentheses includes only addition and subtraction, or only multiplication and division, the actions are performed in order from left to right.

10 ÷ 2 × 4 = 20;

The order of operations is:

1) from left to right, dividing first: 10 ÷ 2 = 5;

2) Multiplication: 5 × 4 = 20;

10 + 4 - 3 = 11, i.e:

1) 10 + 4 = 14;

2) 14 - 3 = 11.

If an expression without parentheses contains not only addition and subtraction, but also multiplication or division, the operations are performed in order from left to right, but multiplication and division have priority, they are performed first, followed by addition and subtraction.

18 ÷ 2 - 2 × 3 + 12 ÷ 3 = 7

Order of operations:

1) 18 ÷ 2 = 9;

2) 2 × 3 = 6;

3) 12 ÷ 3 = 4;

4) 9 - 6 = 3; i.e. from left to right - the result of the first action minus the result of the second;

5) 3 + 4 = 7; i.e. the result of the fourth action plus the result of the third;

If an expression contains parentheses, the parenthesized expressions are performed first, followed by multiplication and division, and then addition and subtraction.

30 + 6 × (13 - 9) = 54, i.e:

1) parenthesis expression: 13 - 9 = 4;

2) Multiplication: 6 × 4 = 24;

3) addition: 30 + 24 = 54;

Let us summarize. Before you start calculating, you need to analyze the expression: whether it contains parentheses and what operations it contains. Then perform the calculations in the following order:

1) actions enclosed in parentheses;

2) Multiplication and division;

3) addition and subtraction.

 
Hi all!!! Could you tell me please, I funded my account at MQL5, now how can I start trading with this money?
 
goldrail:
Hello all!!! Could you tell me please, I funded my account at MQL5, now how can I start trading with this money?
i think it's better to avoid trading with your level of stupidity.
Reason: