NO EXTERNAL 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 152 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 341 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


  1. Similar Topics

    1. Already Converted TradingView Indicators to MT4 Indicators

      19 Replies 7664 Views

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

      19 Replies
      7664 Views
    2. TDI indicators for MT5

      0 Replies 9984 Views

      by Jimmy, Wed Feb 20, 2019 8:50 pm in MT5 Indicators

      0 Replies
      9984 Views

Return to “MT4 Indicators”