Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 758
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
Help people need to trade on each currency with its own orders to distinguish and differentiate + after the open order if the price rolls back even farther could open another order the same as the first.
Hi all !
I have just noticed that NormalizeDouble works strangely.
That is, the Expert Advisor works well and has no errors, but the logs in the Strategy Tester are very strange.
I will explain.
I calculate the profit using this function. I do what I think NormalizeDouble(Profit,Digits) should do;
Then I Print(" profit=",DoubleToStrMorePrecision(Profit,8));
As a result, the log shows the following message: "profit=0.88881912". It seems to be 0.88881000, right?
Or maybe I am stupid and do something wrong ?
Hi all !
I have just noticed that NormalizeDouble works strangely.
That is, the Expert Advisor works well and has no errors, but the logs in the Strategy Tester are very strange.
I will explain.
I calculate the profit using this function. I do what I think NormalizeDouble(Profit,Digits) should do;
Then I Print(" profit=",DoubleToStrMorePrecision(Profit,8));
As a result, the log shows the following message: "profit=0.88881912". It seems to be 0.88881000, right?
Or maybe I am stupid and do something wrong ?
Does your Profit value participate in trade orders?
Yes, of course. And no mistakes :-). That's why I was surprised.
I have Build 735.
Trading is on the demo.
Aaaaaaaaah I got it ! I forgot the assignment operation:-). "Profit=NormalizeDouble(Profit,Digits)".
But I still do not understand why the EA does not show errors ))
Maybe the server automatically rounds.....
I thought NormalizeDouble is a procedure, not a function :-).
Put ";" behind a parenthesis.
The programme works, BUT it occasionally fails with error 4108.
Ozero.
In fact, it needs to be deleted!
In fact, it should be deleted!
Boris, you'd better show him the code directly, because I was too sleepy to remember... ;)
Boris, you'd better show him the code directly, because I was too sleepy to remember... ;)
Didn't mean to abuse your copyright! ;)
And seriously, something didn't stick! But I'll try it now!
And now it's working! That's weird!
Hello! Could you please tell me why I sometimes have an ifle operator that doesn't work.
Here's an example:
Where:
H3 is the price value of the level
price is the current price
The result is that the price reaches this level (sometimes even stops at it), but Alert does not trigger.
Can you tell me what the error is?
Hello! Could you please tell me why I sometimes have an ifle operator that doesn't work.
Here's an example:
Where:
H3 is the price value of the level
price is the current price
The result is that the price reaches this level (sometimes even stops at it), but Alert does not trigger.
Can you tell me what the error is?