display problem with divergence during a backtest

 

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 ?

 

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
      }
//---

  }
 
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 ?

 
06710671f: Please, could you have a look to the attached file ?
What attached file?
Reason: