Page 123 of 429

Re: MT4 Indicators with alerts/signals

Posted: Thu Dec 21, 2017 9:36 pm
by marwilli
mntiwana wrote: Thu Dec 21, 2017 9:16 pm
did you checked this thread
Velocity - Momentum & ROC Indicators
viewtopic.php?p=1295353551#p1295353551
dear mntiwana,
thanks for your reply. I´ve checked it last minutes, but i didn´t find a simple mom-indi with alert or mtf.
Only special like gausian, atr and so on....
Can you make a recommendation, which mom-indi resembles a simple mom-indi?
May be i´m to blind :-)
thanks in advanced Markus

Re: MT4 Indicators with alerts/signals

Posted: Thu Dec 21, 2017 10:12 pm
by mntiwana
marwilli wrote: Thu Dec 21, 2017 9:36 pm
dear mntiwana,
thanks for your reply. I´ve checked it last minutes, but i didn´t find a simple mom-indi with alert or mtf.
Only special like gausian, atr and so on....
Can you make a recommendation, which mom-indi resembles a simple mom-indi?
May be i´m to blind :-)
thanks in advanced Markus
momentum - floating levels
posted here in its belonging thread
viewtopic.php?p=1295367439#p1295367439

Re: MT4 Indicators with alerts/signals

Posted: Fri Dec 22, 2017 1:55 am
by mrtools
marwilli wrote: Thu Dec 21, 2017 8:54 pm dear sirs,
is it possible to get arrows for the momentum indi, when mainline cross the zero line?
best regards Markus
Added zero cross alerts.

Re: MT4 Indicators with alerts/signals

Posted: Fri Dec 22, 2017 2:44 am
by marwilli
mrtools wrote: Fri Dec 22, 2017 1:55 am

Added zero cross alerts.
Thank you very much mrtools,
it works fine. top
wish you marry x-mas
best regards Markus

Re: MT4 Indicators with alerts/signals

Posted: Fri Dec 22, 2017 4:04 am
by Eka
mrtools wrote: Mon Dec 18, 2017 2:06 am

Added the alerts and interpolation.
Thank you mrtools

Re: MT4 Indicators with alerts/signals

Posted: Fri Dec 22, 2017 9:45 am
by pawel.kowalski
I need add alert change color Red and Blue

Code: Select all

//-----------------------------------------------------------
//---------            MONDAY        ------------------------
//-----------------------------------------------------------
#property copyright "Copyright  MONDAY"
#property link      "www.monday.com.pl"

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

int gi_76 = 200;
int gi_80 = 55;
int gi_92 = 1;
double g_ibuf_96[];
double g_ibuf_100[];
bool gi_104;
bool gi_108;
bool gi_112 = TRUE;

int init() {
   gi_112 = TRUE;
   SetIndexStyle(0, DRAW_HISTOGRAM, EMPTY, 3, Red);
   SetIndexBuffer(0, g_ibuf_96);
   SetIndexStyle(1, DRAW_HISTOGRAM, EMPTY, 3, RoyalBlue);
   SetIndexBuffer(1, g_ibuf_100);
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   double low_44;
   double high_52;
   double lda_92[10000][3];
   string ls_unused_96;
   if (!gi_112) return (0);
   
   int ind_counted_8 = IndicatorCounted();
   int li_20 = 0;
   int li_16 = 0;
   int index_24 = 0;
   double high_60 = High[gi_76];
   double low_68 = Low[gi_76];
   int li_32 = gi_76;
   int li_36 = gi_76;
   for (int li_12 = gi_76; li_12 >= 0; li_12--) {
      low_44 = 10000000;
      high_52 = -100000000;
      for (int li_28 = li_12 + gi_80; li_28 >= li_12 + 1; li_28--) {
         if (Close[li_28] < low_44) low_44 = Low[li_28];
         if (Close[li_28] > high_52) high_52 = High[li_28];
      }
      if (Low[li_12] < low_44 && Open[li_12] > high_52) {
         li_16 = 2;
         if (li_20 == 1) li_32 = li_12 + 1;
         if (li_20 == -1) li_36 = li_12 + 1;
      } else {
         if (Low[li_12] < low_44) li_16 = -1;
         if (High[li_12] > high_52) li_16 = 1;
      }
      if (li_16 != li_20 && li_20 != 0) {
         if (li_16 == 2) {
            li_16 = -li_20;
            high_60 = High[li_12];
            low_68 = Low[li_12];
            gi_104 = FALSE;
            gi_108 = FALSE;
         }
         index_24++;
         if (li_16 == 1) {
            lda_92[index_24][1] = li_36;
            lda_92[index_24][2] = low_68;
            gi_104 = FALSE;
            gi_108 = TRUE;
         }
         if (li_16 == -1) {
            lda_92[index_24][1] = li_32;
            lda_92[index_24][2] = high_60;
            gi_104 = TRUE;
            gi_108 = FALSE;
         }
         high_60 = High[li_12];
         low_68 = Low[li_12];
      }
      if (li_16 == 1) {
         if (High[li_12] >= high_60) {
            high_60 = High[li_12];
            li_32 = li_12;
         }
      }
      if (li_16 == -1) {
         if (Low[li_12] <= low_68) {
            low_68 = Low[li_12];
            li_36 = li_12;
         }
      }
      li_20 = li_16;
      if (gi_108 == TRUE) {
         g_ibuf_100[li_12] = 1;
         g_ibuf_96[li_12] = 0;
      }
      if (gi_104 == TRUE) {
         g_ibuf_100[li_12] = 0;
         g_ibuf_96[li_12] = 1;
      }
   }
   return (0);
}

Re: MT4 Indicators with alerts/signals

Posted: Fri Dec 22, 2017 12:27 pm
by mntiwana
pawel.kowalski wrote: Fri Dec 22, 2017 9:45 am I need add alert change color Red and Blue

Code: Select all

//-----------------------------------------------------------
//---------            MONDAY        ------------------------
//-----------------------------------------------------------
#property copyright "Copyright  MONDAY"
#property link      "www.monday.com.pl"

}
Looks like a decompiled code,but experts can better explain
and then plz try to post in mq4 file format

Re: MT4 Indicators with alerts/signals

Posted: Fri Dec 22, 2017 6:27 pm
by knaimad
mntiwana wrote: Fri Dec 22, 2017 12:27 pm
Looks like a decompiled code,but experts can better explain
and then plz try to post in mq4 file format
The funny side of this is:
monday.com.pl is a real estate developement company in Poznań, Poland... :)

Re: MT4 Indicators with alerts/signals

Posted: Sat Dec 23, 2017 3:10 am
by parkin1947
Dear colleagues ! About a year ago I got a very promising indicator, but its potential is strongly reduced by silence. The funny thing is that both are found on the Internet option include a complete alarm set. However, in reality, no sound, no punsh notification to failed. Compiling under the old build did not solve the problem. The errors during compilation nor in the new nor in the old build is not defined. Can anyone solve this mystery ?

Re: MT4 Indicators with alerts/signals

Posted: Tue Dec 26, 2017 6:32 pm
by ljubo.bn
Dear Coders,
# Indicator is #SURE1:
Have to code a message and push notification alerts on closed bars as a template says (based on indicator #SURE1).
Main lines:
BLUE – price line
MAGENTA – top line
LIME – middle line
OLIVE – bottom line
Situations:
• When BLUE – price line touched MAGENTA – top line message should be ( Price line goes IN Top line)
• When BLUE – price line untouched MAGENTA – top line message should be ( Price line goes OUT Top line)
• When BLUE – price line touched LIME – middle line message should be ( Price line goes IN Middle line)
• When BLUE – price line untouched LIME – middle line message should be ( Price line goes OUT Middle line)
A message should contains Symbol + TF + Message + Local Time