Errors, bugs, questions - page 1425

 
Itum:

is that it has to be 4 digits ! There are cases that give 4 characters, and there are cases with ... 0000000001 ! Why is it that the same function sees different values ?

How do I round a value to 4 characters ...

-----------------------------------------------------------------------------------

NormalizeDouble(value, 4);

and it outputs this

0.5484000000001

Did you read the documentation carefully?

https://www.mql5.com/ru/docs/convert/normalizedouble

https://www.mql5.com/ru/docs/basis/types/double

Документация по MQL5: Преобразование данных / NormalizeDouble
Документация по MQL5: Преобразование данных / NormalizeDouble
  • www.mql5.com
Преобразование данных / NormalizeDouble - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Itum:

is that it has to be 4 digits ! There are cases that give 4 characters, and there are cases with ... 0000000001 ! Why is it that the same function sees different values ?

How do I round the value to 4 digits ...

-----------------------------------------------------------------------------------

NormalizeDouble(value, 4);

but outputs this

0.5484000000001

2.0+2.0 does not necessarily equal 4.0

NormalizeDouble is normalization, not rounding.

 
Friends greetings.
 
I am having a small problem. May be somebody will tell me what it is and how it can be solved. I am getting this error

2015.11.03 19:52:47.528 '5131353': order buy market 0.03 AUDNZD sl: 1.05915 tp: 1.06415

2015.11.03 19:52:47.528 '5131353': order buy 0.03 AUDNZD opening at market sl: 1.05915 tp: 1.06415 failed [Invalid S/L or T/P]

 
Сергей Верещак:
I am having a small problem. May be somebody will tell me what it is and how it can be solved. I receive error like this

2015.11.03 19:52:47.528 '5131353': order buy market 0.03 AUDNZD sl: 1.05915 tp: 1.06415

2015.11.03 19:52:47.528 '5131353': order buy 0.03 AUDNZD opening at market sl: 1.05915 tp: 1.06415 failed [Invalid S/L or T/P]

Incorrect stop loss or take profit price.
 

Good afternoon everyone. Please help me to understand. I am a beginner, I cannot understand a simple thing. How can I get information about e.g. strike price after placing an order?

I am doing the following:

CTrade Trade;

Trade.Buy(1, _Symbol, 0, 0, 0)) ;

Print (Trade.ResultPrice());

The log shows 0.0 even though the order is successfully executed and the trade is done.

Trade.ResutOrder(), Tgave.ResultDeal() also return zeros.

 
Will OnChartEvent and OnTimer in the indicator tester work?
 
Ilya Malev:
Will OnChartEvent and OnTimer in the indicator tester work?
no
 
Vladimir Pastushak:
no
Ilya Malev:
Will OnChartEvent and OnTimer work in the tester for indicators?

OnTimer() will definitely happen.

Had a conversation with SD on this topic. After build 1191 it should work.

 
Alexey Kozitsyn:

OnTimer() will definitely happen.

Had a conversation with SD on this topic. It should work after build 1191.

It really does work. It's slowing down.
Reason: