NO LINKS, SOURCE CODE REQUESTS OR MODIFICATION OF DECOMPILED INDICATORS. To avoid post deletion please follow the rules.

Re: ADX DMI Indicators for MT4

#291
naluvs01 wrote:
Tue Sep 29, 2020 7:12 am
mrtools wrote:
Tue Sep 29, 2020 2:11 am


Try this one.
Hi Mr. Tools...Thanks for the indicator. However, it's based on crosses as well. See pic...thank you!!
Change lines 198 & 199 from this

Code: Select all

if (DIp[i]>DIm[i] && ADX[i]>Level) value[i] =  1;
 if (DIp[i]<DIm[i] && ADX[i]>Level) value[i] = -1;
to this

Code: Select all

if (ADX[i]>Level) value[i] =  1;
  if (ADX[i]<Level) value[i] = -1;
then lines 226 & 227 change the comment from this

Code: Select all

  if (value[whichBar] == 1) doAlert(" up");
  if (value[whichBar] ==-1) doAlert(" down");      
to

Code: Select all

  if (value[whichBar] == 1) doAlert(" trending");
  if (value[whichBar] ==-1) doAlert(" not trending");      


Re: ADX DMI Indicators for MT4

#292
mrtools wrote:
Tue Sep 29, 2020 7:19 am
naluvs01 wrote:
Tue Sep 29, 2020 7:12 am

Hi Mr. Tools...Thanks for the indicator. However, it's based on crosses as well. See pic...thank you!!
Change lines 198 & 199 from this

Code: Select all

if (DIp[i]>DIm[i] && ADX[i]>Level) value[i] =  1;
 if (DIp[i]<DIm[i] && ADX[i]>Level) value[i] = -1;
to this

Code: Select all

if (ADX[i]>Level) value[i] =  1;
  if (ADX[i]<Level) value[i] = -1;
then lines 226 & 227 change the comment from this

Code: Select all

  if (value[whichBar] == 1) doAlert(" up");
  if (value[whichBar] ==-1) doAlert(" down");      
to

Code: Select all

  if (value[whichBar] == 1) doAlert(" trending");
  if (value[whichBar] ==-1) doAlert(" not trending");      
OMG...I'm going to program...!!!!!!! Ok, thanks. I will try and let you know. THANK YOU!!!!

Re: MT4 Indicators with alerts/signals

#293
naluvs01 wrote:
Tue Sep 29, 2020 11:36 am
mrtools wrote:
Tue Sep 29, 2020 7:19 am


Change lines 198 & 199 from this

Code: Select all

if (DIp[i]>DIm[i] && ADX[i]>Level) value[i] =  1;
 if (DIp[i]<DIm[i] && ADX[i]>Level) value[i] = -1;
to this

Code: Select all

if (ADX[i]>Level) value[i] =  1;
  if (ADX[i]<Level) value[i] = -1;
then lines 226 & 227 change the comment from this

Code: Select all

  if (value[whichBar] == 1) doAlert(" up");
  if (value[whichBar] ==-1) doAlert(" down");      
to

Code: Select all

  if (value[whichBar] == 1) doAlert(" trending");
  if (value[whichBar] ==-1) doAlert(" not trending");      
OMG...I'm going to program...!!!!!!! Ok, thanks. I will try and let you know. THANK YOU!!!!
Hi Mr. Tools,

I inserted the code but the results are the same. As you can see, I set the level to 30 and there should be no signals at all because the Di +/- did not cross the level. However, there are arrows drawn. Unless the arrows represent the other color lines. And I was happy to add the code and had no errors after I compiled. We're close. I just need an alert when the Di+/- crosses the predefined user level...Thank you again in advance for your help!
Screen Shot 2020-09-28 at 9.57.47 PM.png
Screen Shot 2020-09-28 at 9.53.40 PM.png
Screen Shot 2020-09-28 at 9.53.53 PM.png

Re: ADX DMI Indicators for MT4

#294
naluvs01 wrote:
Tue Sep 29, 2020 11:59 am
naluvs01 wrote:
Tue Sep 29, 2020 11:36 am


OMG...I'm going to program...!!!!!!! Ok, thanks. I will try and let you know. THANK YOU!!!!
Hi Mr. Tools,

I inserted the code but the results are the same. As you can see, I set the level to 30 and there should be no signals at all because the Di +/- did not cross the level. However, there are arrows drawn. Unless the arrows represent the other color lines. And I was happy to add the code and had no errors after I compiled. We're close. I just need an alert when the Di+/- crosses the predefined user level...Thank you again in advance for your help!
My bad I misunderstood you, am going to sleep now will fix in the morning.

Re: ADX DMI Indicators for MT4

#295
naluvs01 wrote:
Tue Sep 29, 2020 11:59 am
naluvs01 wrote:
Tue Sep 29, 2020 11:36 am


OMG...I'm going to program...!!!!!!! Ok, thanks. I will try and let you know. THANK YOU!!!!
Hi Mr. Tools,

I inserted the code but the results are the same. As you can see, I set the level to 30 and there should be no signals at all because the Di +/- did not cross the level. However, there are arrows drawn. Unless the arrows represent the other color lines. And I was happy to add the code and had no errors after I compiled. We're close. I just need an alert when the Di+/- crosses the predefined user level...Thank you again in advance for your help!
Try this one, and the arrows are coded for the di +/- cross only.
wilders dmi 3.5 arrows.mq4
(14.96 KiB) Downloaded 310 times


Re: ADX DMI Indicators for MT4

#296
Hello mrtools,

I believe the "wilders dmi 3.5 arrows.mq4" in the post quoted below is the latest file.
Is it possible to add the option of drawing a moving average on the adx line? Dragging the standard moving average of mt4 onto the indicator does not work.

mrtools wrote:
Wed Sep 30, 2020 1:19 am
naluvs01 wrote:
Tue Sep 29, 2020 11:59 am

Hi Mr. Tools,

I inserted the code but the results are the same. As you can see, I set the level to 30 and there should be no signals at all because the Di +/- did not cross the level. However, there are arrows drawn. Unless the arrows represent the other color lines. And I was happy to add the code and had no errors after I compiled. We're close. I just need an alert when the Di+/- crosses the predefined user level...Thank you again in advance for your help!
Try this one, and the arrows are coded for the di +/- cross only.

Re: ADX DMI Indicators for MT4

#297
chris006 wrote:
Wed Sep 30, 2020 8:19 pm
Hello mrtools,

I believe the "wilders dmi 3.5 arrows.mq4" in the post quoted below is the latest file.
Is it possible to add the option of drawing a moving average on the adx line? Dragging the standard moving average of mt4 onto the indicator does not work.

mrtools wrote:
Wed Sep 30, 2020 1:19 am


Try this one, and the arrows are coded for the di +/- cross only.
Added an adx ma option.
EURUSDM15.png
wilders dmi 3.6 arrows.mq4
(19.44 KiB) Downloaded 590 times

Re: ADX DMI Indicators for MT4

#298
mrtools wrote:
Thu Oct 01, 2020 2:37 am
chris006 wrote:
Wed Sep 30, 2020 8:19 pm
Hello mrtools,

I believe the "wilders dmi 3.5 arrows.mq4" in the post quoted below is the latest file.
Is it possible to add the option of drawing a moving average on the adx line? Dragging the standard moving average of mt4 onto the indicator does not work.


Added an adx ma option.
Dear Sir,
Is it possible to create an option in this indi that can be seen upside down?
Untitled-1.jpg

IdeaRe: ADX DMI Indicators for MT4

#299
Sr Mrtools
Do we have a similar version of this that shows the arrow on open candle rather?
No Repainting

Code: Select all

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

extern int ADXbars = 14;
extern int CountBars = 350;
double G_ibuf_84[];
double G_ibuf_88[];
double G_iadx_92;
double G_iadx_100;
double G_iadx_108;
double G_iadx_116;

int init() {
   IndicatorBuffers(2);
   SetIndexStyle(0, DRAW_ARROW);
   SetIndexArrow(0, 108);
   SetIndexStyle(1, DRAW_ARROW);
   SetIndexArrow(1, 108);
   SetIndexBuffer(0, G_ibuf_84);
   SetIndexBuffer(1, G_ibuf_88);
   return (0);
}

int start() {
   if (CountBars >= Bars) CountBars = Bars;
   SetIndexDrawBegin(0, Bars - CountBars);
   SetIndexDrawBegin(1, Bars - CountBars);
   int ind_counted_8 = IndicatorCounted();
   if (ind_counted_8 < 0) return (-1);
   if (ind_counted_8 < 1) {
      for (int Li_0 = 1; Li_0 <= CountBars; Li_0++) G_ibuf_84[CountBars - Li_0] = 0.0;
      for (Li_0 = 1; Li_0 <= CountBars; Li_0++) G_ibuf_88[CountBars - Li_0] = 0.0;
   }
   for (int Li_4 = CountBars; Li_4 >= 0; Li_4--) {
      G_iadx_92 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_PLUSDI, Li_4 - 1);
      G_iadx_100 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_PLUSDI, Li_4);
      G_iadx_108 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_MINUSDI, Li_4 - 1);
      G_iadx_116 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_MINUSDI, Li_4);
      if (G_iadx_92 > G_iadx_108 && G_iadx_100 < G_iadx_116) G_ibuf_84[Li_4] = Low[Li_4] - 5.0 * Point;
      if (G_iadx_92 < G_iadx_108 && G_iadx_100 > G_iadx_116) G_ibuf_88[Li_4] = High[Li_4] + 5.0 * Point;
   }
   return (0);
}

Or would it be possible to create alerts during the candle without repainting?
ADX.mq4
(1.63 KiB) Downloaded 96 times

Re: ADX DMI Indicators for MT4

#300
RVelasco wrote:
Fri Oct 30, 2020 1:13 pm
Sr Mrtools
Do we have a similar version of this that shows the arrow on open candle rather?
No Repainting

Code: Select all

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

extern int ADXbars = 14;
extern int CountBars = 350;
double G_ibuf_84[];
double G_ibuf_88[];
double G_iadx_92;
double G_iadx_100;
double G_iadx_108;
double G_iadx_116;

int init() {
   IndicatorBuffers(2);
   SetIndexStyle(0, DRAW_ARROW);
   SetIndexArrow(0, 108);
   SetIndexStyle(1, DRAW_ARROW);
   SetIndexArrow(1, 108);
   SetIndexBuffer(0, G_ibuf_84);
   SetIndexBuffer(1, G_ibuf_88);
   return (0);
}

int start() {
   if (CountBars >= Bars) CountBars = Bars;
   SetIndexDrawBegin(0, Bars - CountBars);
   SetIndexDrawBegin(1, Bars - CountBars);
   int ind_counted_8 = IndicatorCounted();
   if (ind_counted_8 < 0) return (-1);
   if (ind_counted_8 < 1) {
      for (int Li_0 = 1; Li_0 <= CountBars; Li_0++) G_ibuf_84[CountBars - Li_0] = 0.0;
      for (Li_0 = 1; Li_0 <= CountBars; Li_0++) G_ibuf_88[CountBars - Li_0] = 0.0;
   }
   for (int Li_4 = CountBars; Li_4 >= 0; Li_4--) {
      G_iadx_92 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_PLUSDI, Li_4 - 1);
      G_iadx_100 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_PLUSDI, Li_4);
      G_iadx_108 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_MINUSDI, Li_4 - 1);
      G_iadx_116 = iADX(NULL, 0, ADXbars, PRICE_CLOSE, MODE_MINUSDI, Li_4);
      if (G_iadx_92 > G_iadx_108 && G_iadx_100 < G_iadx_116) G_ibuf_84[Li_4] = Low[Li_4] - 5.0 * Point;
      if (G_iadx_92 < G_iadx_108 && G_iadx_100 > G_iadx_116) G_ibuf_88[Li_4] = High[Li_4] + 5.0 * Point;
   }
   return (0);
}

Or would it be possible to create alerts during the candle without repainting?
No, not that I'm aware of.


  1. Similar Topics

    1. Already Converted TradingView Indicators to MT4 Indicators

      25 Replies 15928 Views

      by Banzai, Sat Jul 18, 2020 4:19 pm in MT4 Indicators

      25 Replies
      15928 Views
    2. How Do You Like FS Indicators?

      13 Replies 2533 Views

      by ionone, Sun Jul 05, 2020 7:25 pm in MT4 Indicators

      13 Replies
      2533 Views
    3. What are the best mobile indicators to use?

      4 Replies 2296 Views

      by Dondbaze, Mon Jul 27, 2020 9:56 am in New Members & Common Forex Q&A's

      4 Replies
      2296 Views
    4. What are these indicators doing or made from?

      1 Replies 395 Views

      by billbroch, Mon Aug 24, 2020 10:00 am in MT4 Indicators

      1 Replies
      395 Views

Return to “MT4 Indicators”