I created an image to help you understand me.
I already wrote a file (thanks for that). And I can do it with all the data on the green circle. But I need to access to the red circle, I haven't find whats the object or variable in MQL4 that contains those inputs.
I read that in MQL5 there is ParameterGetRange(), But not on MQL4. Is there any way to obtain the values of the red circle PROGRAMATICALLY, not clicking save?
In the red circle you find the setup of your extern-variables like:
extern int StopLoss = 277;
Just write them too into your file!
In the red circle you find the setup of your extern-variables like:
Just write them too into your file!
Thanks!.
If anyone gets here this is what works:
int totest;
totest = StopLoss;
int totest2;
totest2 = TakeProfit;
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm running something like this on my Expert Advisor:
double OnTester()
{
double sid = TesterStatistics(STAT_INITIAL_DEPOSIT);
double sp = TesterStatistics(STAT_PROFIT);
FileWrite(fH, totest, sp);
}
I'd like to add a variable with the pass inputs, but I can't find the class or method that points to current inputs.