Cool! I will test this next week
Thank you again!
Trynaluvs01 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!!!!!!
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.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...
Hi Mr. Tools...Thanks for the indicator. However, it's based on crosses as well. See pic...thank you!!
Change lines 198 & 199 from thisnaluvs01 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!!
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;
Code: Select all
if (ADX[i]>Level) value[i] = 1;
if (ADX[i]<Level) value[i] = -1;
Code: Select all
if (value[whichBar] == 1) doAlert(" up");
if (value[whichBar] ==-1) doAlert(" down");
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!!!!mrtools wrote: Tue Sep 29, 2020 7:19 am
Change lines 198 & 199 from this
to thisCode: Select all
if (DIp[i]>DIm[i] && ADX[i]>Level) value[i] = 1; if (DIp[i]<DIm[i] && ADX[i]>Level) value[i] = -1;
then lines 226 & 227 change the comment from thisCode: Select all
if (ADX[i]>Level) value[i] = 1; if (ADX[i]<Level) value[i] = -1;
toCode: Select all
if (value[whichBar] == 1) doAlert(" up"); if (value[whichBar] ==-1) doAlert(" down");
Code: Select all
if (value[whichBar] == 1) doAlert(" trending"); if (value[whichBar] ==-1) doAlert(" not trending");
Hi Mr. Tools,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!!!!
My bad I misunderstood you, am going to sleep now will fix in the morning.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!