Forum

How to backtest an EA for multiple days but balance reset after every day automatically

Is there way to test an EA for multiple days together but in an isolated test for each day? For example I want to test my EA for a date range between 1st July and 15th July but for each day I want my EA to have the parameters and balance values reset. At the moment, I set a custom date in the

Can I divide my account balance in two or more expert advisors?

Sorry if this sounds a very naive question but I really am looking for an answer. Let's say my account balance with a broker is $2000 and I have downloaded 2 different expert advisors, namely ABC and XYZ. Now I want to run these both EAs on two charts (same or different currency pairs) and I want

Newbie wants to draw a horizontal line in 'OnCalculate()' function

I found the below mentioned snippet somewhere online and am trying to use it inside `OnCaculate()` function to draw a horizontal line on, let's say the maximum value in last 5 minutes. int i; //let's assum it has a valid value for the highest value index if (! ObjectCreate ( 0 , "HLine" , OBJ_HLINE