[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 402

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
There is an advisor. I wrote it myself. But I can't figure out in which line "division by 0" occurs. In the logs line number does not write. And what's strange, it works fantastically on foreign brokerage companies, without "division by 0" error... ...but on many of ours it just crashes and doesn't work. How do I catch this line?
There is an advisor. I wrote it myself. But I can't figure out in which line "division by 0" occurs. In the logs line number does not write. And what's strange, it works fantastically on foreign brokerage companies, without "division by 0" error... ...but on many of ours it just crashes and doesn't work. How do I catch this line?
put Print("something") before each division sign "/"
Please tell me what I'm doing wrong. I've written an EA like this:
And it turns out to be nonsense:
The one with the arrow is what the iMACD function outputs, and the one at the bottom in the circle is the Value parameter of the current bar in the indicator. Why does the iMACD function give the wrong output? And how do I get to the Value parameter or calculate in some other way?
Please tell me what I'm doing wrong. I've written an EA like this:
And it turns out to be nonsense:
The one with the arrow is what the iMACD function outputs, and the one at the bottom in the circle is the Value parameter of the current bar in the indicator. Why does the iMACD function give the wrong output? And how do I get to the Value parameter or calculate in some other way?
Why is it wrong?
put Print("something") in front of each division mark "/"
I wanted to start catching the Print from the middle of the code, but I accidentally wrote it in the beginning - and it didn't show up in the logs...
Maybe the code to make it easier to post. There's nothing to worry about, no one wants to use it, but it may help
Please tell me why tester doesn't optimize Expert Advisor
I select multiple input parameters, check a checkbox to optimize ... I press start Optimization ends quickly and gives 1/1, the log says There were 1 passes done during optimization, 1 results have neing discarded as insignificant
I tried it in 5 different broker terminals, please advise what i am doing wrong.You need to set the optimisation step in the relevant graph.
You should also specify a start value (start) and an end value (stop) for each parameter to be optimised.
E.g. Period : start=6, step=1, stop=22
================
Search in the forum search :
article testing and optimising EAs