display problem with divergence during a backtest

Back to topics list To post a new topic, please log in or register
avatar
31
Pompon83 2015.04.15 09: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 ?


avatar
Moderator
3407
GumRai 2015.04.15 10: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
      }
//---

  }

 

avatar
31
Pompon83 2015.04.16 12: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 ?

avatar
12985
WHRoeder 2015.04.16 14:48 #
 
06710671f: Please, could you have a look to the attached file ?
What attached file?

Back to topics list  

To add comments, please log in or register