[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 125

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
Can you tell me if anyone has a piece of software that has a high and low zig zag extremum connection. Thanks
I don't know which connection you need, but... This is how I determine in the EA which zigzag extremum is available - low or high, hopefully you will find what you need:
ZS... The code is rough and unoptimized. I hope you know it's better to subtract two normalized values and check the result for zero...
You can. Return to the parameters.
how? if a variable is declared inside start, you can assign it to return_value1?
Yes. This is called passing a parameter by reference. If a function is declared normally, its call causes all variables, passed as formal parameters, to be copied to the local variables of the function and handled. The copying is not performed when parameters are passed by reference, i.e., the function operates with their originals, not with their copies. Accordingly, all changes made in the function code with these parameters, remain effective after returning from the function code.
To pass a parameter by reference, indicate this method in the function declaration by putting the & sign before the identifier of the required parameter.
Example (compile as a script and check)
5*5=5?))
cool:)
How about this?
How about this?
The computer is busy with calculations, so I can't check it myself at the moment.
There is a piece of code like this:
Google has found several repetitions of this code, so I conclude that it works.
However, this line
is confusing.
If DecreaseFactor=3 and losses=3, then according to the formula we get Lot=0 !!!
If losses>3, we getLot<0!!!
Is it possible?
cool:)
How about this?