This EA tries to show only the minimal validations you must have to pass the market validations before being published.
In the “Signal ()” function you can set the input and output conditions to trigger the orders. It also has the functionality to limit the number of simultaneous orders.
The source code is only a guide for the development of your EA.