why indicator does not work during EA testing ?

 

I have an indicator which usually works well.

When i run an EA and loaded my indicator to the chart in the meantime,but the indicator did not work.

Is there any advice?

data mismatch ?

 

Do you attached the indicator to the Chart you Visually test?

It should work as normal if the indicator is well coded.

 
The only indicators that make problems in a backtest are the ones that need information from the order history (such as indicators that plot the equity curve in an indicator window). This is really a problem because it would easily allow the analysis and the plotting of a real equity chart from any of these commercial EAs that try to hide their floating drawdown.
 

Thanks to codersguru and 7bit.

Yes I attached the indicator to the chart with Visual mode testing.

EA code as below:

//+------------------------------------------------------------------+
//|                                                    DoNothing.mq4 |
//|                       Copyright ?2010, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+

// This EA is for testing and watching indicators 

#property copyright "Copyright ?2010, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

the EA does not open any order.

I run the EA with Visual mode to test and watch my indicator.

 
should we laugh?
 
sergery:

Thanks to codersguru and 7bit.

Yes I attached the indicator to the chart with Visual mode testing.

EA code as below:

the EA does not open any order.

I run the EA with Visual mode to test and watch my indicator.


//+------------------------------------------------------------------+
//|                                                    DoNothing.mq4 |
//|                       Copyright ?2010, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+

// This EA is for testing and watching indicators 

#property copyright "Copyright ?2010, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

this EA is a lot of code it's gonna take me a several years to read it

 

this EA is for testing indicator,not for trading test.

 

This EA is used to watch indicators in visual test. It do nothing.

As I told you the indicator itself has problems. It repaints or it's MTF indicator. MTF indicators will not work in backtest.

Something else. If the indicator load the data of other symbols it will not work correct too.

Why don't you submit the indicator?

 
codersguru:

This EA is used to watch indicators in visual test. It do nothing.

As I told you the indicator itself has problems. It repaints or it's MTF indicator. MTF indicators will not work in backtest.

Something else. If the indicator load the data of other symbols it will not work correct too.

Why don't you submit the indicator?



Thank you codersguru.You are right. It is a MTF indicator,now I know it does not work in backtest,thanks for your information.

If necessory in the future,I will buy your programming service.

Thank you very much!