EA compiles without errors but doesn't run

 

Hello to all,

My EA compiles with no errors but when I do the BackTest the system returns no results, no reports.

I have a dough about two parameters of iMA function. They are MA_shift and Shift.

Here is the lines of code I'm using:

v10_1 = iMA(NULL,PERIOD_M15,10,0,MODE_EMA,PRICE_CLOSE,1); // MA_shift=0 and shift=1

  v10_2 = iMA(NULL,PERIOD_M15,10,0,MODE_EMA,PRICE_CLOSE,2); // MA_shift=0 and shift=2

  v10_3 = iMA(NULL,PERIOD_M15,10,0,MODE_EMA,PRICE_CLOSE,3); // MA_shift=0 and shift=3

May I really use '0' for MA_shifts? 

 

Thank you so much.

Jr

 
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. How do you expect any answer? You don't post any code that calls OrderSend and there are no mind readers here.