Download MetaTrader 5
To add comments, please log in or register
Sell your CPU capacity and earn money!
Frédéric LEBRE
233
Frédéric LEBRE 2015.04.15 07:48 

Hello,

when I launch an expert advisor based on divergences, it draws lines on price and on stochastic but when I backtest it, the lines are not displayed on the stochastic. Could you help me with that ?

Keith Watford
Moderator
7947
Keith Watford 2015.04.15 08:14  

Are they drawn if you use visual mode?

Often, when you open the chart after the EA has finished testing , the EA has deleted the objects.

You may need to amend the code for the deinit.

void OnDeinit(const int reason)
  {
   if(!IsTesting())
      {
      //Code to delete objects
      }
//---

  }
Frédéric LEBRE
233
Frédéric LEBRE 2015.04.16 10:38  
GumRai:

Are they drawn if you use visual mode?

Often, when you open the chart after the EA has finished testing , the EA has deleted the objects.

You may need to amend the code for the deinit.

 

Hello,

great thanks to GumRai for his answer.

If fact i would like to have in my backtest the same lines i have il real, and i don't know why.

Please, could you have a look to the attached file ?

whroeder1
13627
whroeder1 2015.04.16 12:48  
06710671f: Please, could you have a look to the attached file ?
What attached file?
/
To add comments, please log in or register