You know how in Strategy Mode MT will dump the values assigned to all inputs when it loads up(image attached)? I'm looking to get the same thing but when the EA is loaded on a chart(not in strategy mode). I basically want to be able to look at the experts logs and know which values were assigned to each input when it was first loaded. This would help me understand why the EA might be doing something in a certain way.
I can't find a way to achieve this and while searching the forum I came across a library[1] that uses chartsavetemplate() and parses the file to retrieve all inputs and their respective values but I'm not super keen one adding hundreds of lines of code just to dump these inputs once. It tried to keep my code clean and don't want to bloat it with extra stuff unless there is really no other way around it.
I even thought about storing the inputs and values on a global variable so later I could dump them all on onInit() but then I realized the last two lines of the following code aren't allowed in the global scope or whatever they call it.
Ideally, there is a flag somewhere to control the behavior and make MT dump all inputs as it does in strategy mode. If that doesn't exist I'm looking for a neat way to code this. any ideas are appreciated.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hey folks
You know how in Strategy Mode MT will dump the values assigned to all inputs when it loads up(image attached)? I'm looking to get the same thing but when the EA is loaded on a chart(not in strategy mode). I basically want to be able to look at the experts logs and know which values were assigned to each input when it was first loaded. This would help me understand why the EA might be doing something in a certain way.
I can't find a way to achieve this and while searching the forum I came across a library[1] that uses chartsavetemplate() and parses the file to retrieve all inputs and their respective values but I'm not super keen one adding hundreds of lines of code just to dump these inputs once. It tried to keep my code clean and don't want to bloat it with extra stuff unless there is really no other way around it.
I even thought about storing the inputs and values on a global variable so later I could dump them all on onInit() but then I realized the last two lines of the following code aren't allowed in the global scope or whatever they call it.
Ideally, there is a flag somewhere to control the behavior and make MT dump all inputs as it does in strategy mode. If that doesn't exist I'm looking for a neat way to code this. any ideas are appreciated.
1 - https://www.mql5.com/en/forum/191721#comment_5693578