Please tell me if I leave the return operator with zero "Return(0)"
Will it save the value of StopLevelThisPair() function inside BrokerStopLevel variable which is a global variable?
return returns the value to the code where the function was called, you don't call start() so the return is not important other than terminating start() early.
"A return operator terminates the current function execution and returns the control to the calling program."
if you use a globally declared variable it is "visible" from every function in your code.
Please give me a hint on what I did wrong.
I'm not going to debug and test your EA, you need to learn how to do that efficiently, there are ways to make your life easier though . . . are your OrderSend() calls executed ? or do they fail ? why aren't you checking the return value from the OrderSend() ?
Read this: What are Function return values ? How do I use them ?
Read some of the links here: ECN and perform this test and report back here: https://www.mql5.com/en/forum/143043/page2#746319 #ecntest
Also, using Bars is unreliable when checking for a New Bar, use Time[] instead . . .
it didnt place any pending orders
Why ?
are your OrderSend() calls executed ? or do they fail ?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please tell me if I leave the return operator with zero "Return(0)"
Will it save the value of StopLevelThisPair() function inside BrokerStopLevel variable which is a global variable?