Forum

help with - Void Exit ( Exit/close trade on current symbol)

Hi Guys, For my EA I am using Bool function criteria's with return True/False to meet Buy requirement for example: if(MATRUE (){ Buy(); void Buy(){ trade.Buy(sizeOfShare, NULL ,Ask,Ask-stopLossPips* _Point ,Ask+profitPips* _Point , NULL ); } Now I want to make the same function but then to close

Set input for Max DD in optimization run??

Dear all, In MT4 we were able to hard set for example a max of 10% equity DD for the optimization process . In MT5 they do not have a direct feature for this so I was figuring out how to code it. Right now I have been using the following code but getting an error. "Genetic pass 0,506) tested with

Set input for Max DD in optimization run?

Dear all, In MT4 we were able to hard set for example a max of 10% equity DD for the optimization process . In MT5 they do not have a direct feature for this so I was figuring out how to code it. Right now I have been using the following code but getting an error. "Genetic pass 0,506) tested with

max dd percent as input variable (optimization mode)

Dear brogrammers, For my optimization I would like to use .%.input as a set maximum drawdown input. So not with the custom criteria but with my regular optimization input settings. Anyone can help me out? Thanks in advance <3