[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 583

 
I>ALL YOU CAN DO IS HELP!
i would like to ask you if there are any EAs that work and bring profit, and not flickers in the eyes of the monitor from their useless testing and waiting when the demo will work?! Or EAs that give 100% results from memory.
The only thing they come across is one piece of shit.... honestly!
i have already gutted the entire web: these reviews on some EAs! in practice, they do not do anything! do they write about themselves?! egor_bukov@inbox.ru
 
I'd like to know who's got a billion quid in the account and, of course, the account number.
 
SergNF >>:

Если конечно не "OnArray"

I can't find any documentation on "OnArray", please give me a link.
 
A tip, please. using zigzag. 1. If zigzagbufer is zero, then go through the bars until we find the point where it is not reversed (i.e. inflection point), 2. remember the point 3. go back to the original bar 4. when checking the last bar, do not enter the check, so as not to clog variables 5. after the inflection itself, check the zigzagbuffer again using the corresponding bar number
 
valenok2003 >>:

Что-то я не нашел документации по "OnArray", дайте ссылку пож.

https://docs.mql4.com/ru/indicators

All indicators whose name ends with "OnArray", e.g. iBandsOnArray, iCCIOnArray.

I saw somewhere a list of OnArray indicators where there were more than in the link given, but I can't find it.

 
pyatka__ASD >>:
Подскажите, пожалуйста. использую zigzag. 1. Если zigzagbufer равен нулю, то идем по барам, пока не найдем точку, в которой он не будет равер (т.е. точку перегиба), 2. запомнить точку 3. вернуться на исходный бар 4. при проверке послед.бара уже не заходить в проверку, чтоб переменные на забивать 5. после самого перегиба опять проверять по соответствующему номеру бара наличие данных в zigzagbuffer
On each new bar you must check the buffer for a value greater than zero, as the bar number is shifted with the appearance of the new bar.
 

Help me make the indicator draw arrows. This is a buy pattern. Only the last condition changes to sell.(l0 < l1)



#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 White
#property indicator_color2 White

double buf_up[];
double buf_down[];

int DateTime = 0;


int init() {
   SetIndexStyle(0, DRAW_ARROW, EMPTY);
   SetIndexArrow(0, 233);
   SetIndexBuffer(0, buf_up);
   SetIndexStyle(1, DRAW_ARROW, EMPTY);
   SetIndexArrow(1, 234);
   SetIndexBuffer(1, buf_down);
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   int l;
   double arrow_above;
   double h_l;
   int bars = IndicatorCounted();
   if (bars < 0) return (-1);
   if (bars > 0) bars--;
   int limit = Bars - bars;
   for (int shift = 0; shift <= limit; shift++) 
   {
      l = shift;
      arrow_above = 0;
      h_l = 0;
      buf_up[shift] = 0;
      buf_down[shift] = 0;
      for (l = shift; l <= shift + 9; l++) 
         h_l += MathAbs(High[l] - Low[l]);
      arrow_above = h_l / 10.0;
      /*double d1_c1=iClose(NULL,PERIOD_D1,1);
      double d1_c2=iClose(NULL,PERIOD_D1,2);
      double d1_o1=iOpen(NULL,PERIOD_D1,1);
      double d1_o2=iOpen(NULL,PERIOD_D1,2);*/
      double d1_h0=iHigh(NULL,PERIOD_D1,0);
      double d1_h1=iHigh(NULL,PERIOD_D1,1);
      double d1_h2=iHigh(NULL,PERIOD_D1,2);
      double d1_l0=iLow(NULL,PERIOD_D1,0);
      double d1_l1=iLow(NULL,PERIOD_D1,1);
      double d1_l2=iLow(NULL,PERIOD_D1,2);
         
      if (d1_h1 < d1_h2 && d1_l1 > d1_l2  && d1_l1 > d1_l0) 
      {
         buf_up[shift] = Low[shift] - arrow_above / 2.0;
         if (shift < 2 && DateTime != iTime(NULL, PERIOD_D1, 0)) 
         {
            Print("** D1 UP **" );
            DateTime = iTime(NULL, PERIOD_D1, 0);
         }
      } 
      else 
      {
         if (d1_h1 < d1_h2 && d1_l1 > d1_l2 &&  d1_h0 > d1_h1) 
         {
            buf_down[shift] = High[shift] + arrow_above / 2.0;
            if (shift < 2 && DateTime != iTime(NULL, PERIOD_D1, 0)) 
            {
               Print("** D1 DOWN **");
               DateTime = iTime(NULL, PERIOD_D1, 0);
            }
         }
      }
   }
   return (0);
}

 

Help! There are a number of orders in each of them with different lots. How do I close, say, 40% of the lots (of the total number of lots in these orders)?

 

Hello veterans and young millionaires.

Are the codes different in XP and W7? Doing it by the book, it returns a different character on the chart. Passavetute )

 

241 - up arrow (blue), 150 - curl (red)... everything seems to be correct.


upd

look at the object properties instead of just pointing with your mouse, the terminal can make a mistake with cursor positioning...