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?

 

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