I'm trying to merge two different EAs into one and was wondering if MT4 allows nesting void functions within void functions....
I need to separate 2 totally different sets of position counts which go to trading functions (voids) . Withing the trading functions I want to separate additional buy and sell functions (voids) something like this:
etc.
Anyone have experience doing something like this or know if it is possible?
I read somewhere on the MT4 forum that functions can only handle up to 64 parameters, my function calls above [void functionEA1Trades(), void functionEA2Trades() ] have up to several hundred potential nested buy and sell functions.
Before I even attempt to continue with nesting this code...Is what I'm attempting above even possible?
I need to separate 2 totally different sets of position counts which go to trading functions (voids) . Withing the trading functions I want to separate additional buy and sell functions (voids) something like this:
Inserted Code
if (position count A < 1) functionEA1Trades(); if (position count B < 1) functionEA2Trades(); void functionEA1Trades() if (upsignal) buy1(); buy2(); buy3() buy4(); if (dnsignal) sell1(); sell2(); sell3(); sell4(); void functionEA2Trades() if (upsignal2) buy2_1(); buy2_2(); buy2_3(); buy2_4(); if (dnsignal2) sell2_1(); sell2_2(); sell2_3(); sell2_4();
etc.
Anyone have experience doing something like this or know if it is possible?
I read somewhere on the MT4 forum that functions can only handle up to 64 parameters, my function calls above [void functionEA1Trades(), void functionEA2Trades() ] have up to several hundred potential nested buy and sell functions.
Before I even attempt to continue with nesting this code...Is what I'm attempting above even possible?