Page 29 of 56

Re: ADX DMI Indicators for MT4

Posted: Sat Aug 22, 2020 8:56 am
by carlosmartins
mrtools wrote: Sat Aug 22, 2020 8:17 am

Left the coloring as is and added the alerts.
Cool! I will test this next week
Thank you again!

Re: ADX DMI Indicators for MT4

Posted: Sat Sep 26, 2020 6:35 am
by naluvs01
Hi Mr. Tools and Coders Respectively,

I would like to know if there is an ADX/DMI (or similar) indicator that gives an alert once the DI+ or DI- crosses a user defined level...
Thank you in advance for your response!!!!!!

Re: ADX DMI Indicators for MT4

Posted: Sat Sep 26, 2020 8:29 am
by Cladi39
naluvs01 wrote: Sat Sep 26, 2020 6:35 am Hi Mr. Tools and Coders Respectively,

I would like to know if there is an ADX/DMI (or similar) indicator that gives an alert once the DI+ or DI- crosses a user defined level...
Thank you in advance for your response!!!!!!
Try

Re: ADX DMI Indicators for MT4

Posted: Tue Sep 29, 2020 1:18 am
by naluvs01
Cladi39 wrote: Sat Sep 26, 2020 8:29 am

Try
Hi and Thanks for your response. However, I need to know if there exist an ADX/DMI that alerts when either the Di+/Di- lines cross a user defined level, not a Di+/- cross. For instance, if I set the level to 22, when either the Di +/- crosses that level, I would receive a push notification. Sorry, if I added confusion to my request...

Re: ADX DMI Indicators for MT4

Posted: Tue Sep 29, 2020 2:11 am
by mrtools
naluvs01 wrote: Tue Sep 29, 2020 1:18 am
Hi and Thanks for your response. However, I need to know if there exist an ADX/DMI that alerts when either the Di+/Di- lines cross a user defined level, not a Di+/- cross. For instance, if I set the level to 22, when either the Di +/- crosses that level, I would receive a push notification. Sorry, if I added confusion to my request...
Try this one.

Re: ADX DMI Indicators for MT4

Posted: Tue Sep 29, 2020 7:12 am
by naluvs01
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!!

Re: ADX DMI Indicators for MT4

Posted: Tue Sep 29, 2020 7:19 am
by mrtools
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");      

Re: ADX DMI Indicators for MT4

Posted: Tue Sep 29, 2020 11:36 am
by naluvs01
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!!!!

Re: MT4 Indicators with alerts/signals

Posted: Tue Sep 29, 2020 11:59 am
by naluvs01
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!

Re: ADX DMI Indicators for MT4

Posted: Tue Sep 29, 2020 4:53 pm
by mrtools
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!
My bad I misunderstood you, am going to sleep now will fix in the morning.