Questions from Beginners MQL4 MT4 MetaTrader 4 - page 200

 
Hi all!
How to attach the Statment of back-test, performed on Metatrader4, to my Signal page in mql5 signals service? What format should I use to prepare the Statment (there are html, pdf)
 

Hello!
Is there any way to know at once CopyHigh number of array elements in any time period?
At the moment I loop through TERMINAL_MAXBARS and find where the result is not 0.

double CHigh(ENUM_TIMEFRAMES timeframe,int start_pos,int baru_skaits,int index)
  {
   double high=0;
   ArraySetAsSeries(CHigh,true);
   int copied=CopyHigh(NULL,timeframe,start_pos,baru_skaits,CHigh);
   if(copied>0 && index<copied)
      high=CHigh[index];
   return(high);
  }
datetime CTime(ENUM_TIMEFRAMES timeframe,int start_pos,int baru_skaits,int index)
  {

   datetime time=0;
   ArraySetAsSeries(CTime,true);
   datetime copied=CopyTime(NULL,timeframe,start_pos,baru_skaits,CTime);
   if(copied>0 && index<copied)
      time=CTime[index];
   return(time);
  }

   for(int i=MaxTermnBars; i>0; i--)
     {
      double Test_Chigh=CHigh(PERIOD_H4,i,1,0);
      datetime Test_CTime=CTime(PERIOD_H4,i,1,0);

      if(Test_Chigh!=0)
        {
         Print("-2991- CopyArraySize[",i,"]: ",Test_Chigh," Test_CTime: ",Test_CTime," MaxTermnBars: ",MaxTermnBars);
         break;
        }
     }


 

Hello!

I'm writing an EA based on Japanese candlesticks and indicators. I'm facing a problem with counting the number of candlesticks in candlestick patterns.

Suppose there is such an example.

void Trend_Ending_Patterns_Bulls()
  {
   Ending_Bulls=false;
//Параметры повышающихся свеч
   double body_size_white_1=(Close[1]-Open[1])/Point();
   double size_min_white_1=(Open[1]-Low[1])/Point();
   double size_max_white_1=(High[1]-Close[1])/Point();
   double body_size_white_2=(Close[2]-Open[2])/Point();
   double size_min_white_2=(Open[2]-Low[2])/Point();
if(body_size_white_2>0 && size_min_white_2>=(2*body_size_white_2) && size_max_white_2<=1 && body_size_white_1>0)
     {
      Ending_Bulls=true;
      Print("Модель Hammer - Молот быки");// Молот
     }

}

There are about 50 candlestick patterns. How to make calculation of bars if we don't know what pattern will be found at a certain moment and we should get indicator values from the last bar to the first one?

 

Good evening!

Could you please tell me how to disable auto-scrolling graph on android (MQl 4)?

 
How do you write a line programmatically?
 
Speculator:
How do you write a line programmatically?
void OnTick()
 {
  string com="";

  com+="л";
  com+="и";
  com+="н";
  com+="и";
  com+="я";

  Comment(com);
 }
 
Vitaly Muzichenko:

Thank you, I've done this before!

I don't understand how to use the graphics...

Draw a line?

 
Vitaly Muzichenko:

You were asked to write "line" and you write "line". Why are you misleading people? ))))

 
Alexsandr San:

If it's a horizontal line, it's like this

Thank you!

 
Speculator:

Thank you!

Do you want it for mt4 or mt5? I deleted the code I posted. I didn't immediately notice that mt4 was being discussed here

Reason: