Requests & Ideas - page 660

 
I would like a push notification for this arrow indicator that I downloaded somewhere.

Here is the code of the indicator:

 

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red

extern int NumBars = 500;
double G_ibuf_80[];
double G_ibuf_84[];
double Gd_88;

int init() {
   SetIndexStyle(0, DRAW_ARROW);
   SetIndexBuffer(0, G_ibuf_80);
   SetIndexArrow(0, 233);
   SetIndexStyle(1, DRAW_ARROW);
   SetIndexBuffer(1, G_ibuf_84);
   SetIndexArrow(1, 234);
   Gd_88 = MarketInfo(Symbol(), MODE_SPREAD) * Point;
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   double Lda_0[100];
   int ind_counted_4 = IndicatorCounted();
   int Li_8 = 7;
   double Ld_12 = 7.0;
   double Ld_20 = 0.7;
   int Li_28 = 0;
   int Li_32 = 0;
   bool Li_36 = TRUE;
   double Ld_40 = 0;
   double Ld_48 = 0;
   double Ld_56 = 0;
   int index_64 = 0;
   double Ld_68 = 0;
   int index_76 = 0;
   double Ld_80 = 0;
   double Ld_unused_88 = 0;
   double Ld_96 = 0;
   int Li_104 = 0;
   int Li_108 = 0;
   double iatr_112 = 0;
   double Ld_120 = 2;
   double Ld_unused_128 = 10;
   double Ld_136 = 0;
   double Ld_144 = 0;
   double Ld_unused_152 = 0;
   double Ld_unused_160 = 0;
   double Ld_unused_168 = 0;
   double Ld_unused_176 = 0;
   double Ld_unused_184 = 0;
   double Ld_unused_192 = 0;
   double Ld_unused_200 = 0;
   double Ld_unused_208 = 0;
   double Ld_unused_216 = 0;
   double Ld_unused_224 = 0;
   double Ld_unused_232 = 0;
   double Ld_unused_240 = 0;
   double Ld_unused_248 = 0;
   double Ld_unused_256 = 0;
   double Ld_unused_264 = 0;
   double Ld_unused_272 = 0;
   double Ld_unused_280 = 0;
   double Ld_unused_288 = 0;
   double Ld_unused_296 = 0;
   double Ld_unused_304 = 0;
   double Ld_unused_312 = 0;
   double Ld_unused_320 = 0;
   double Ld_unused_328 = 0;
   if (Bars < NumBars) Li_28 = Bars;
   else Li_28 = NumBars;
   if (Close[Li_28 - 2] > Close[Li_28 - 1]) Li_36 = TRUE;
   else Li_36 = FALSE;
   Ld_40 = Close[Li_28 - 2];
   for (Li_32 = Li_28 - 3; Li_32 >= 0; Li_32--) {
      Ld_56 = Gd_88 + High[Li_32] - Low[Li_32];
      if (MathAbs(Gd_88 + High[Li_32] - (Close[Li_32 + 1])) > Ld_56) Ld_56 = MathAbs(Gd_88 + High[Li_32] - (Close[Li_32 + 1]));
      if (MathAbs(Low[Li_32] - (Close[Li_32 + 1])) > Ld_56) Ld_56 = MathAbs(Low[Li_32] - (Close[Li_32 + 1]));
      if (Li_32 == Li_28 - 3) for (index_76 = 0; Li_32 <= Li_8 - 1; index_76++) Lda_0[index_76] = Ld_56;
      Lda_0[index_64] = Ld_56;
      Ld_68 = 0;
      Ld_80 = Li_8;
      Li_108 = index_64;
      for (index_76 = 0; index_76 <= Li_8 - 1; index_76++) {
         Ld_68 += Lda_0[Li_108] * Ld_80;
         Ld_80 -= 1.0;
         Li_108--;
         if (Li_108 == -1) Li_108 = Li_8 - 1;
      }
      Ld_68 = 2.0 * Ld_68 / (Ld_12 * (Ld_12 + 1.0));
      index_64++;
      if (index_64 == Li_8) index_64 = 0;
      Ld_48 = Ld_20 * Ld_68;
      if (Li_36 && Low[Li_32] < Ld_40 - Ld_48) {
         Li_36 = FALSE;
         Ld_40 = Gd_88 + High[Li_32];
      }
      if ((!Li_36) && Gd_88 + High[Li_32] > Ld_40 + Ld_48) {
         Li_36 = TRUE;
         Ld_40 = Low[Li_32];
      }
      if (Li_36 && Low[Li_32] > Ld_40) Ld_40 = Low[Li_32];
      if ((!Li_36) && Gd_88 + High[Li_32] < Ld_40) Ld_40 = Gd_88 + High[Li_32];
      iatr_112 = iATR(NULL, 0, 10, Li_32);
      Ld_136 = 0;
      Ld_144 = 0;
      if (Li_36) {
         if (Li_104 != 1) Ld_96 = Low[Li_32] - iatr_112 * Ld_120 / 3.0;
         if (Li_104 == 1) Ld_96 = -1.0;
         if (Ld_96 > 0.0) {
            Ld_136 = Ld_96;
            Ld_144 = 0;
         } else {
            Ld_136 = 0;
            Ld_144 = 0;
         }
         G_ibuf_80[Li_32] = Ld_136;
         Li_104 = 1;
      } else {
         if (Li_104 != 2) Ld_96 = Gd_88 + High[Li_32] + iatr_112 * Ld_120 / 3.0;
         if (Li_104 == 2) Ld_96 = -1.0;
         if (Ld_96 > 0.0) {
            Ld_136 = 0;
            Ld_144 = Ld_96;
         } else {
            Ld_136 = 0;
            Ld_144 = 0;
         }
         G_ibuf_84[Li_32] = Ld_144;
         Li_104 = 2;
      }
   }
   return (0);

}

Can anybody code in a pushnotification for up arrow as well as a push notification for the down arrow?
I don't know where to put the SendNotification command (two times) in the code. 

Thanks already very much for help.

Best regards,

Johan
 

 

 

 
korthouj:
I would like a push notification for this arrow indicator that I downloaded somewhere.

Here is the code of the indicator:

 

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red

extern int NumBars = 500;
double G_ibuf_80[];
double G_ibuf_84[];
double Gd_88;

int init() {
   SetIndexStyle(0, DRAW_ARROW);
   SetIndexBuffer(0, G_ibuf_80);
   SetIndexArrow(0, 233);
   SetIndexStyle(1, DRAW_ARROW);
   SetIndexBuffer(1, G_ibuf_84);
   SetIndexArrow(1, 234);
   Gd_88 = MarketInfo(Symbol(), MODE_SPREAD) * Point;
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   double Lda_0[100];
   int ind_counted_4 = IndicatorCounted();
   int Li_8 = 7;
   double Ld_12 = 7.0;
   double Ld_20 = 0.7;
   int Li_28 = 0;
   int Li_32 = 0;
   bool Li_36 = TRUE;
   double Ld_40 = 0;
   double Ld_48 = 0;
   double Ld_56 = 0;
   int index_64 = 0;
   double Ld_68 = 0;
   int index_76 = 0;
   double Ld_80 = 0;
   double Ld_unused_88 = 0;
   double Ld_96 = 0;
   int Li_104 = 0;
   int Li_108 = 0;
   double iatr_112 = 0;
   double Ld_120 = 2;
   double Ld_unused_128 = 10;
   double Ld_136 = 0;
   double Ld_144 = 0;
   double Ld_unused_152 = 0;
   double Ld_unused_160 = 0;
   double Ld_unused_168 = 0;
   double Ld_unused_176 = 0;
   double Ld_unused_184 = 0;
   double Ld_unused_192 = 0;
   double Ld_unused_200 = 0;
   double Ld_unused_208 = 0;
   double Ld_unused_216 = 0;
   double Ld_unused_224 = 0;
   double Ld_unused_232 = 0;
   double Ld_unused_240 = 0;
   double Ld_unused_248 = 0;
   double Ld_unused_256 = 0;
   double Ld_unused_264 = 0;
   double Ld_unused_272 = 0;
   double Ld_unused_280 = 0;
   double Ld_unused_288 = 0;
   double Ld_unused_296 = 0;
   double Ld_unused_304 = 0;
   double Ld_unused_312 = 0;
   double Ld_unused_320 = 0;
   double Ld_unused_328 = 0;
   if (Bars < NumBars) Li_28 = Bars;
   else Li_28 = NumBars;
   if (Close[Li_28 - 2] > Close[Li_28 - 1]) Li_36 = TRUE;
   else Li_36 = FALSE;
   Ld_40 = Close[Li_28 - 2];
   for (Li_32 = Li_28 - 3; Li_32 >= 0; Li_32--) {
      Ld_56 = Gd_88 + High[Li_32] - Low[Li_32];
      if (MathAbs(Gd_88 + High[Li_32] - (Close[Li_32 + 1])) > Ld_56) Ld_56 = MathAbs(Gd_88 + High[Li_32] - (Close[Li_32 + 1]));
      if (MathAbs(Low[Li_32] - (Close[Li_32 + 1])) > Ld_56) Ld_56 = MathAbs(Low[Li_32] - (Close[Li_32 + 1]));
      if (Li_32 == Li_28 - 3) for (index_76 = 0; Li_32 <= Li_8 - 1; index_76++) Lda_0[index_76] = Ld_56;
      Lda_0[index_64] = Ld_56;
      Ld_68 = 0;
      Ld_80 = Li_8;
      Li_108 = index_64;
      for (index_76 = 0; index_76 <= Li_8 - 1; index_76++) {
         Ld_68 += Lda_0[Li_108] * Ld_80;
         Ld_80 -= 1.0;
         Li_108--;
         if (Li_108 == -1) Li_108 = Li_8 - 1;
      }
      Ld_68 = 2.0 * Ld_68 / (Ld_12 * (Ld_12 + 1.0));
      index_64++;
      if (index_64 == Li_8) index_64 = 0;
      Ld_48 = Ld_20 * Ld_68;
      if (Li_36 && Low[Li_32] < Ld_40 - Ld_48) {
         Li_36 = FALSE;
         Ld_40 = Gd_88 + High[Li_32];
      }
      if ((!Li_36) && Gd_88 + High[Li_32] > Ld_40 + Ld_48) {
         Li_36 = TRUE;
         Ld_40 = Low[Li_32];
      }
      if (Li_36 && Low[Li_32] > Ld_40) Ld_40 = Low[Li_32];
      if ((!Li_36) && Gd_88 + High[Li_32] < Ld_40) Ld_40 = Gd_88 + High[Li_32];
      iatr_112 = iATR(NULL, 0, 10, Li_32);
      Ld_136 = 0;
      Ld_144 = 0;
      if (Li_36) {
         if (Li_104 != 1) Ld_96 = Low[Li_32] - iatr_112 * Ld_120 / 3.0;
         if (Li_104 == 1) Ld_96 = -1.0;
         if (Ld_96 > 0.0) {
            Ld_136 = Ld_96;
            Ld_144 = 0;
         } else {
            Ld_136 = 0;
            Ld_144 = 0;
         }
         G_ibuf_80[Li_32] = Ld_136;
         Li_104 = 1;
      } else {
         if (Li_104 != 2) Ld_96 = Gd_88 + High[Li_32] + iatr_112 * Ld_120 / 3.0;
         if (Li_104 == 2) Ld_96 = -1.0;
         if (Ld_96 > 0.0) {
            Ld_136 = 0;
            Ld_144 = Ld_96;
         } else {
            Ld_136 = 0;
            Ld_144 = 0;
         }
         G_ibuf_84[Li_32] = Ld_144;
         Li_104 = 2;
      }
   }
   return (0);

}

Can anybody code in a pushnotification for up arrow as well as a push notification for the down arrow?
I don't know where to put the SendNotification command (two times) in the code. 

Thanks already very much for help.

Best regards,

Johan
 

 

 

That is decompiled code. Please post the original (non-decompiled) source code so that it can be changed
 
I downloaded it from somewhere like this and I would like to add the push notification functionality
for my own use. 
 
korthouj:
I downloaded it from somewhere like this and I would like to add the push notification functionality
for my own use. 
Sorry, decompiled code is not something that coders will do changes on
 

Sorry mladen this indicator does not update..and you can do something?


or you know you recommend something like?

Files:
 
glasser:

Sorry mladen this indicator does not update..and you can do something?


or you know you recommend something like?

Use this one


Files:
 

Mister Mladen!!!

Let me remind you about my request

Post 6600

 
mladen:

Use this one


Very very thanks mladen...
 

Hello dear Mladen, thank you for all new MT5 indicators, i test every single one every time you release new versions... you are pushing our trading to another level... your work is incredible...

i understand your time is precious, but i would like to ask you if you had any chance to take a look at my request 2016.09.23 #6102

the idea was to make the HP  oscillate on zero line, or in dynamic zone , or to hook it up to another indicator like RSI or RSX... even on MT5...
Can you please take a look when you have time?  Thanks in advance...

 

Files:
HP_2.mq4  3 kb
 
AlexDemo:

Hello dear Mladen, thank you for all new MT5 indicators, i test every single one every time you release new versions... you are pushing our trading to another level... your work is incredible...

i understand your time is precious, but i would like to ask you if you had any chance to take a look at my request 2016.09.23 #6102

the idea was to make the HP  oscillate on zero line, or in dynamic zone , or to hook it up to another indicator like RSI or RSX... even on MT5...
Can you please take a look when you have time?  Thanks in advance...

 

What would be the math to make it an oscillator from what it is now?
Reason: