Help with icustom() Buffer - page 2

 

because the basic code is not mine and i modifiy it. I used a code taken from another indicator and i forget to change the name of the indicator.; SIMPLE ^^

 

Why all this question?

 

However my code is right? 

 
ANTAR:

because the basic code is not mine and i modifiy it. I used a code taken from another indicator and i forget to change the name of the indicator.; SIMPLE ^^

Why all this question?

However my code is right? 

You came here looking for help . . . my asking questions is helping you . . especially of you answer them.

Is the code you have posted correct ?  I don't know,  what happened when you tested it in the Strategy Tester

 
RaptorUK:

You came here looking for help . . . my asking questions is helping you . . especially of you answer them.

Is the code you have posted correct ?  I don't know,  what happened when you tested it in the Strategy Tester ? 


Thank you for your support. Maybe there has been some misunderstanding.

I will test it.

 

My doubt is how it register the array?

Example PointLow[0] is equal to the more  close signal or to the more farther?

 
ANTAR:

My doubt is how it register the array?

Example PointLow[0] is equal to the more  close signal or to the more farther?


If I'm not mistaken the [0] array have to be the most close and the array [2] must be the farther. It's Correct?
 

No result.

What is wrong? it don't run. 

 

I'm very confused.

I try this ea for test but don't open trade.

//+------------------------------------------------------------------+
//|                                                        TTMEA.mq4 |
//|                        Copyright 2012, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
   double p1,p2,p3,p4,p5,p6;
   double temp = 0;
  int n = 6;
  int i = 0;
  double Point_B[5];
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
void start()
  {
   static datetime tmp;
  if (tmp!= Time[0]) {
    tmp =  Time[0];

  while(n >= 0) {
   temp = iCustom(NULL,0,"1",0,i);
   if(temp != EMPTY_VALUE) {
      Point_B[n] = temp;
      n--;
   }
   i++;             
}


p1=Point_B[1];
p2=Point_B[2];
p3=Point_B[3];
p4=Point_B[4];
p5=Point_B[5];
p6=Point_B[6];

if(p5>p6) {OrderSend(Symbol(),OP_BUY,0.10,Ask,10,p6,0);}

     
      }                                 
   return(0);
}

//+------------------------------------------------------------------+

 
//---- 
   
 

For testing i try this code and  open only 1 position when start the strategytester and after it nothing.

What's wrong?

 Thank you

Files:
eatest.mq4  6 kb
 
ANTAR: For testing i try this code and  open only 1 position when start the strategytester and after it nothing. What's wrong?
  1. You must count down Loops and Closing or Deleting Orders - MQL4 forum
  2. Check your return codes and find out why What are Function return values ? How do I use them ? - MQL4 forum
  3. Attach the 1.mq4 because you said you modified it but haven't showed the code.

 
WHRoeder:
  1. You must count down Loops and Closing or Deleting Orders - MQL4 forum
  2. Check your return codes and find out why What are Function return values ? How do I use them ? - MQL4 forum
  3. Attach the 1.mq4 because you said you modified it but haven't showed the code.


Thank you for your reply, I will check it.

The 1.mq4 indicator is attached previous in the post