"OnInit returned non-zero code 1"
I just wanted to test the EA in MT5. I get no results but this error message: "OnInit returned non-zero code 1" Where is this and how can I turn it off? Thank you for your help in advance!
I just wanted to test the EA in MT5. I get no results but this error message: "OnInit returned non-zero code 1" Where is this and how can I turn it off? Thank you for your help in advance!
Run a single test with parameters from the range you set for optimization and look at the tester logs for the error details.
Hi,
thats the LOG:
2023.02.21 13:38:37.742 Tester "Market\CommunityPower MT5.ex5" 64 bit
2023.02.21 13:38:43.992 Tester cache file 'tester\cache\CommunityPower MT5.USDJPY.M5.20220101.20230217.40.659433BBFBD5105C9695095AA30424B9.opt' deleted
2023.02.21 13:38:43.998 Tester Experts\Market\CommunityPower MT5.ex5 on USDJPY,M5 from 2022.01.01 00:00 to 2023.02.17 00:00
2023.02.21 13:38:43.998 Tester USDJPY: history data begins from 2020.08.18 00:00
2023.02.21 13:38:43.998 Tester USDJPY: ticks data begins from 2022.01.02 00:00
2023.02.21 13:38:43.998 Tester EURUSD: history data begins from 2020.08.09 00:00
2023.02.21 13:38:43.998 Tester EURUSD: ticks data begins from 2022.01.02 00:00
2023.02.21 13:38:43.998 Tester EURJPY: history data begins from 2020.08.09 00:00
2023.02.21 13:38:43.998 Tester EURJPY: ticks data begins from 2022.01.02 00:00
2023.02.21 13:38:43.999 Tester complete optimization started
2023.02.21 13:38:43.999 Core 1 connecting to 127.0.0.1:3000
2023.02.21 13:38:44.000 Core 1 connected
2023.02.21 13:38:44.000 Core 2 connecting to 127.0.0.1:3001
2023.02.21 13:38:44.001 Core 2 connected
2023.02.21 13:38:44.001 Core 3 connecting to 127.0.0.1:3002
2023.02.21 13:38:44.002 Core 3 connected
2023.02.21 13:38:44.002 Core 4 connecting to 127.0.0.1:3003
2023.02.21 13:38:44.004 Core 4 connected
2023.02.21 13:38:44.004 Core 5 connecting to 127.0.0.1:3004
2023.02.21 13:38:44.004 Core 5 connected
2023.02.21 13:38:44.004 Core 6 connecting to 127.0.0.1:3005
2023.02.21 13:38:44.005 Core 7 connecting to 127.0.0.1:3006
2023.02.21 13:38:44.005 Core 6 connected
2023.02.21 13:38:44.006 Core 7 connected
2023.02.21 13:38:44.006 Core 8 connecting to 127.0.0.1:3007
2023.02.21 13:38:44.006 Core 8 connected
2023.02.21 13:38:44.018 Core 2 authorized (agent build 3550)
2023.02.21 13:38:44.018 Core 4 authorized (agent build 3550)
2023.02.21 13:38:44.019 Core 5 authorized (agent build 3550)
2023.02.21 13:38:44.020 Core 3 authorized (agent build 3550)
2023.02.21 13:38:44.022 Core 1 authorized (agent build 3550)
2023.02.21 13:38:44.022 Core 6 authorized (agent build 3550)
2023.02.21 13:38:44.024 Core 4 common synchronization completed
2023.02.21 13:38:44.026 Core 2 common synchronization completed
2023.02.21 13:38:44.026 Core 8 authorized (agent build 3550)
2023.02.21 13:38:44.026 Core 5 common synchronization completed
2023.02.21 13:38:44.026 Core 7 authorized (agent build 3550)
2023.02.21 13:38:44.029 Core 3 common synchronization completed
2023.02.21 13:38:44.029 Core 1 common synchronization completed
2023.02.21 13:38:44.030 Core 6 common synchronization completed
2023.02.21 13:38:44.033 Core 8 common synchronization completed
2023.02.21 13:38:44.051 Core 7 common synchronization completed
2023.02.21 13:38:45.103 Core 2 pass 0 tested with error "OnInit returned non-zero code 1" in 0:00:01.062
2023.02.21 13:38:45.119 Core 6 pass 5 tested with error "OnInit returned non-zero code 1" in 0:00:01.068
2023.02.21 13:38:45.119 Core 8 pass 6 tested with error "OnInit returned non-zero code 1" in 0:00:01.049
2023.02.21 13:38:45.122 Core 7 pass 7 tested with error "OnInit returned non-zero code 1" in 0:00:01.043
2023.02.21 13:38:45.129 Core 4 pass 1 tested with error "OnInit returned non-zero code 1" in 0:00:01.085
2023.02.21 13:38:45.134 Core 5 pass 2 tested with error "OnInit returned non-zero code 1" in 0:00:01.072
2023.02.21 13:38:45.144 Core 3 pass 4 tested with error "OnInit returned non-zero code 1" in 0:00:01.103
2023.02.21 13:38:45.181 Core 1 pass 3 tested with error "OnInit returned non-zero code 1" in 0:00:01.139
2023.02.21 13:38:45.581 Core 2 pass 8 tested with error "OnInit returned non-zero code 1" in 0:00:00.473
2023.02.21 13:38:45.581 Tester optimization finished, total passes 9 (successful 0 passes)
2023.02.21 13:38:45.600 Statistics optimization done in 0 minutes 02 seconds
2023.02.21 13:38:45.600 Statistics shortest pass 0:00:00.000, longest pass 0:00:00.000, average pass 0:00:00.000
2023.02.21 13:38:45.600 Statistics local 9 tasks (100%), remote 0 tasks (0%), cloud 0 tasks (0%)
2023.02.21 13:38:45.600 Core 1 connection closed
2023.02.21 13:38:45.601 Core 2 connection closed
2023.02.21 13:38:45.602 Core 3 connection closed
2023.02.21 13:38:45.602 Core 4 connection closed
2023.02.21 13:38:45.603 Core 5 connection closed
2023.02.21 13:38:45.604 Core 6 connection closed
2023.02.21 13:38:45.604 Core 7 connection closed
2023.02.21 13:38:45.605 Core 8 connection closed
Hi,
thats the LOG:
2023.02.21 13:38:37.742 Tester "Market\CommunityPower MT5.ex5" 64 bit
2023.02.21 13:38:43.992 Tester cache file 'tester\cache\CommunityPower MT5.USDJPY.M5.20220101.20230217.40.659433BBFBD5105C9695095AA30424B9.opt' deleted
2023.02.21 13:38:43.998 Tester Experts\Market\CommunityPower MT5.ex5 on USDJPY,M5 from 2022.01.01 00:00 to 2023.02.17 00:00
2023.02.21 13:38:43.998 Tester USDJPY: history data begins from 2020.08.18 00:00
2023.02.21 13:38:43.998 Tester USDJPY: ticks data begins from 2022.01.02 00:00
2023.02.21 13:38:43.998 Tester EURUSD: history data begins from 2020.08.09 00:00
2023.02.21 13:38:43.998 Tester EURUSD: ticks data begins from 2022.01.02 00:00
2023.02.21 13:38:43.998 Tester EURJPY: history data begins from 2020.08.09 00:00
2023.02.21 13:38:43.998 Tester EURJPY: ticks data begins from 2022.01.02 00:00
2023.02.21 13:38:43.999 Tester complete optimization started
2023.02.21 13:38:43.999 Core 1 connecting to 127.0.0.1:3000
2023.02.21 13:38:44.000 Core 1 connected
2023.02.21 13:38:44.000 Core 2 connecting to 127.0.0.1:3001
2023.02.21 13:38:44.001 Core 2 connected
2023.02.21 13:38:44.001 Core 3 connecting to 127.0.0.1:3002
2023.02.21 13:38:44.002 Core 3 connected
2023.02.21 13:38:44.002 Core 4 connecting to 127.0.0.1:3003
2023.02.21 13:38:44.004 Core 4 connected
2023.02.21 13:38:44.004 Core 5 connecting to 127.0.0.1:3004
2023.02.21 13:38:44.004 Core 5 connected
2023.02.21 13:38:44.004 Core 6 connecting to 127.0.0.1:3005
2023.02.21 13:38:44.005 Core 7 connecting to 127.0.0.1:3006
2023.02.21 13:38:44.005 Core 6 connected
2023.02.21 13:38:44.006 Core 7 connected
2023.02.21 13:38:44.006 Core 8 connecting to 127.0.0.1:3007
2023.02.21 13:38:44.006 Core 8 connected
2023.02.21 13:38:44.018 Core 2 authorized (agent build 3550)
2023.02.21 13:38:44.018 Core 4 authorized (agent build 3550)
2023.02.21 13:38:44.019 Core 5 authorized (agent build 3550)
2023.02.21 13:38:44.020 Core 3 authorized (agent build 3550)
2023.02.21 13:38:44.022 Core 1 authorized (agent build 3550)
2023.02.21 13:38:44.022 Core 6 authorized (agent build 3550)
2023.02.21 13:38:44.024 Core 4 common synchronization completed
2023.02.21 13:38:44.026 Core 2 common synchronization completed
2023.02.21 13:38:44.026 Core 8 authorized (agent build 3550)
2023.02.21 13:38:44.026 Core 5 common synchronization completed
2023.02.21 13:38:44.026 Core 7 authorized (agent build 3550)
2023.02.21 13:38:44.029 Core 3 common synchronization completed
2023.02.21 13:38:44.029 Core 1 common synchronization completed
2023.02.21 13:38:44.030 Core 6 common synchronization completed
2023.02.21 13:38:44.033 Core 8 common synchronization completed
2023.02.21 13:38:44.051 Core 7 common synchronization completed
2023.02.21 13:38:45.103 Core 2 pass 0 tested with error "OnInit returned non-zero code 1" in 0:00:01.062
2023.02.21 13:38:45.119 Core 6 pass 5 tested with error "OnInit returned non-zero code 1" in 0:00:01.068
2023.02.21 13:38:45.119 Core 8 pass 6 tested with error "OnInit returned non-zero code 1" in 0:00:01.049
2023.02.21 13:38:45.122 Core 7 pass 7 tested with error "OnInit returned non-zero code 1" in 0:00:01.043
2023.02.21 13:38:45.129 Core 4 pass 1 tested with error "OnInit returned non-zero code 1" in 0:00:01.085
2023.02.21 13:38:45.134 Core 5 pass 2 tested with error "OnInit returned non-zero code 1" in 0:00:01.072
2023.02.21 13:38:45.144 Core 3 pass 4 tested with error "OnInit returned non-zero code 1" in 0:00:01.103
2023.02.21 13:38:45.181 Core 1 pass 3 tested with error "OnInit returned non-zero code 1" in 0:00:01.139
2023.02.21 13:38:45.581 Core 2 pass 8 tested with error "OnInit returned non-zero code 1" in 0:00:00.473
2023.02.21 13:38:45.581 Tester optimization finished, total passes 9 (successful 0 passes)
2023.02.21 13:38:45.600 Statistics optimization done in 0 minutes 02 seconds
2023.02.21 13:38:45.600 Statistics shortest pass 0:00:00.000, longest pass 0:00:00.000, average pass 0:00:00.000
2023.02.21 13:38:45.600 Statistics local 9 tasks (100%), remote 0 tasks (0%), cloud 0 tasks (0%)
2023.02.21 13:38:45.600 Core 1 connection closed
2023.02.21 13:38:45.601 Core 2 connection closed
2023.02.21 13:38:45.602 Core 3 connection closed
2023.02.21 13:38:45.602 Core 4 connection closed
2023.02.21 13:38:45.603 Core 5 connection closed
2023.02.21 13:38:45.604 Core 6 connection closed
2023.02.21 13:38:45.604 Core 7 connection closed
2023.02.21 13:38:45.605 Core 8 connection closed
Run a single test. Double-click on 1 of optimization results that failed.
Or just attach your tester ini, I'll check it myself.
...
2023.02.22 11:28:12.754 Core 1 2022.01.01 00:00:00 Spread v2021.11.09 launched...
2023.02.22 11:28:12.754 Core 1 2022.01.01 00:00:00 Alert: Incorrect Volatility settings! Please, choose a Volatility Indicator or set all "calc modes" to "In points"!
2023.02.22 11:28:12.754 Core 1 tester stopped because OnInit returns non-zero code 1
2023.02.22 11:28:12.759 Core 1 disconnected
2023.02.22 11:28:12.759 Core 1 connection closed
...
2023.02.22 11:28:12.754 Core 1 2022.01.01 00:00:00 Spread v2021.11.09 launched...
2023.02.22 11:28:12.754 Core 1 2022.01.01 00:00:00 Alert: Incorrect Volatility settings! Please, choose a Volatility Indicator or set all "calc modes" to "In points"!
2023.02.22 11:28:12.754 Core 1 tester stopped because OnInit returns non-zero code 1
2023.02.22 11:28:12.759 Core 1 disconnected
2023.02.22 11:28:12.759 Core 1 connection closed
Here is an answer: "Incorrect Volatility settings! Please, choose a Volatility Indicator or set all "calc modes" to "In points"!"
same with me please help me
file dot ini = CommunityPower 2.55.1.AUDCAD.M1.20220105_20....ini
same with me please help me
file dot ini = CommunityPower 2.55.1.AUDCAD.M1.20220105_20....ini
Run the single test and look at the tester logs.
https://www.mql5.com/en/forum/344600
This guy had a similar problem with another EA. Apparently something with the code.