Forum

Return multiple values from a function

I need to do a lot of regression. My regression functions would benefit hugely from being able to return multiple values somehow. Returning an array (or structure) would be acceptable but I can't find a way to do that. Is there a recommended way to return two (or more) values from a function

Array parameters

Hi there, I'm just getting started with MQL4 but I'm not new to programming. I've had fun setting up a few indicators preparatory to writing some EAs to implement and test trading strategies. Can anyone tell me how I pass array parameters ? For example I want to take a mean of a range out of a time