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

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
Hello! Could you please tell me how you can find out the value stored in the buffer (I mean the value that is on the zig-zag peak), if you only know the bar.
Thanks
Can't a user-defined function return 2 values?
No, you can't - it's not a procedure in Pascal. :-)))
can't you make a user function return 2 values?
You can make one user function call the other...
For example, reread... from the textbook...
"
The trading strategy imposes requirements on the content and technology of the trading criteria function. Any function can return only one value. Therefore, if the Expert Advisor has a strategy that involves only mutually exclusive trading criteria, the value returned by the function can be set to one of the criteria. But if a strategy allows operation of several criteria at the same time, their values must be passed for processing to other functions using global variables.
The trade strategy implemented in the Expert Advisor under consideration involves only mutually exclusive criteria. That's why the Criterion() function presented here uses the value returned by the function to pass the calculated criteria to other functions.
can't you make a user function return 2 values?
You can assign a variable globally and retrieve its value in a function.
The function will only return one, but you can get as many as you want.
Example:
Can anyone tell me if anyone has a piece of software that has a high and low zig-zag vertex connection. Thanks
Look in CodeBase. There's a...
can't you make a custom function return 2 values?
You can. Return to the parameters. For example: