Re: ADX DMI Indicators for MT4

284
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...
Attachments

Re: ADX DMI Indicators for MT4

285
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.
These users thanked the author mrtools for the post (total 4):
moey_dw, naluvs01, pipsquirrel, Jedidiah


Re: ADX DMI Indicators for MT4

287
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");      
These users thanked the author mrtools for the post:
naluvs01

Re: ADX DMI Indicators for MT4

288
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

289
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!
Attachments

Re: ADX DMI Indicators for MT4

290
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.
These users thanked the author mrtools for the post:
naluvs01


Who is online

Users browsing this forum: kvak, LUCAS123, Telegram [Bot], Yandex [Bot] and 63 guests