Can mql4 iterate inputs in a loop so I can create a reporting function without changing details for every script or forgetting to add changes?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi! I was wondering if there's a way to iterate through inputs in a loop.
Example:
for ( i = 0; i!=NumInputs; i++) {
... //Get input name, value
}
My goal is that even if I add or change an input in a new version of an EA, my reporting function with still report the values of all inputs without me having to change any code other than input line (i.e., input double input_risk_dollars_per_microlot = 5; or anything like that).
It shouldn't be that big a deal for me to add the added inputs to my reporting functions, but sometimes I run days of optimization only to realize I've left something out of of the json files I generate which I then use to display optimization results or automate the selection of strategies.
Any help would be greatly appreciated, and in return I would like to upload finished code to the codebase for the creation of json reports from a function to include in the OnTester function.
I already have a handle on all the json stuff.
Thanky,
RoboHobo