Errors, bugs, questions - page 1425
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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
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.
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]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?
no
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.
OnTimer() will definitely happen.
Had a conversation with SD on this topic. It should work after build 1191.