My script successfully compiles without any errors but won't submit a trade in the strategy tester, and my print function doesn't return a value.

 

Hi! A script I coded successfully compiles without any errors but won't submit a trade in the strategy tester, and my print function doesn't return a value, I am stuck is there any advice that could be given on what the next steps would be in order to start the debugging process?

Thank you!

Executable file removed by moderator

 

Please submit your code for the review (Alt-S).

NOTE: normally Script doesn't trade (do not usually handle trading operations in the same way as Expert Advisors do).

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Oleksandr Medviediev #:

Please submit your code for the review (Alt-S).

NOTE: normally Script doesn't trade (do not usually handle trading operations in the same way as Expert Advisors do).

Thank you! I appreciate your support, is there a link you know of that might go into more detail about this? Much appreciated.

 
Fernando Carreiro #:
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Thank you!
 

I have attached the script! I appreciate your help!

Executable file removed by moderator.
 
Colin Kimble #:

Thank you! I appreciate your support, is there a link you know of that might go into more detail about this? Much appreciated.

Hiring to write script - General - MQL5 programming forum
Hiring to write script
Hiring to write script
  • 2019.08.21
  • doctorbeppo
  • www.mql5.com
I am looking to hire someone to write a simple script that I can edit and use within mql5...
 
Colin Kimble #: I have attached the script! I appreciate your help!
Executable file removed by moderator.

You have already been informed to provide the source code file (.mq5), not the executable file (.ex5).

Nothing can be done with executable files. If you want help with your code, then show the source code.

Also, if you generated the code with ChatGPT (or other A.I.) then we will not help you. It generates horrible code, mixing MQL4 and MQL5.

 
Fernando Carreiro #:

You have already been informed to provide the source code file (.mq5), not the executable file (.ex5).

Nothing can be done with executable files. If you want help with your code, then show the source code.

Also, if you generated the code with ChatGPT (or other A.I.) then we will not help you. It generates horrible code, mixing MQL4 and MQL5.

I understand, thank you! I will make the necessary adjustments.
 
Oleksandr Medviediev #:

Please submit your code for the review (Alt-S).

NOTE: normally Script doesn't trade (do not usually handle trading operations in the same way as Expert Advisors do).

I have attached the script with the .mq5 ending to it, thank you for all your help! It is appreciated!
Files:
 
Colin Kimble #: I have attached the script with the .mq5 ending to it, thank you for all your help! It is appreciated!

This is a messy mixture of MQL5 and MQL4 code. It certainly looks like horribly generated code.

Did I not say not to ask for help with A.I. generated code?

It is a total mess. It cannot be fixed. It has to be properly written from scratch.

Either learn to code MQL5 properly, or hire someone to code it for you.