@RTR1701: This is not a noob question. The problem is more that there is are so far no user manuals for the over 100 indicators that I have coded.
The idea of the anaLineAlertsOnIndicator is to select an alert level. The alert is triggered,
case indicator plot: if the indicator moves above or below that level (for example an EMA)
case histogram: if the inidcator moves above that level (for example volume)
anaLineAlertsOnIndicator requires that you select the indicator that you want to monitor as the input series.
Now let us assume that you select the D-High plot of the anaCurrentDayOHL as input series. Then you can select a level, let us say 1565 for ES, and you will be alerted when the high of the day crosses that level - that is when the preceding bar showed a daily high lower than 1565 and the current bar a daily high higher or equal than 1565.
This is not what you wanted. In your case you would need to code an indicator that displays the difference between the current bars high and the daily high plotted until the prior bar. And if that value crosses the zero line, the indicator would fabricate a signal.
The indicator is simply not designed for the special application that you had in mind. It would be easier to simply add alerts to the anaCurrentDayOHL indicator.
The following user says Thank You to Fat Tails for this post:
I would have no idea how to add alerts to an indicator regrettably so as an interim I think I should just add the levels I am interested each day probably using the alert on price function and adjust each day. At least I will get the alert I require for now and I am only currently watching two instruments so not too much hassle. However if I am proved right I will want to extend the theory to more so will need to work it out eventually.
I seem to remember some thread somewhere on adding alerts to indicators and will look that up when I am back from work to see if I can work it out, as I need to try. I think it was only a small thread so if you happen to have any suggested reference for someone new to coding to look at that would be really helpful. Also if you have time can you suggest where in the code I would need to add the alert using your example D-High. Then I should be able to work it out for each line - maybe!!
As for the user manuals - that would be a gigantic task!! But it crosses my mind that the more experienced and code savvy users here could maybe assist. Perhaps if you or @Big Mike felt there was merit some sort of Wiki entry/entries could be set up for that purpose. Clearly not for me to say as I doubt I could add anything of substance to that idea but thought I would throw it out there for consideration.
Really appreciate your taking the time to reply Harry.
Never stop learning - never stop applying the knowledge.
You have selected an offset of 10 ticks. This means that the indicator will trigger an alert, when the line is approached by 10 ticks, or otherwise put, it should trigger 2.5 points (for ES) before the line is touched. If the line value is 1690, the sound alert is therefore triggered if the value 1687.50 is crossed from below, or if the value 1692.50 is crossed from above, something which did not happen during the chart period shown.
There is no dropdown menu for the alert file, you simply have to type in the file name.
For some reason I am not getting the lines on my chart using your User defined line indicator. I have used the default settings and just typed in two line values. I am using NT Version 21. Any advice please?
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following 2 users say Thank You to Big Mike for this post:
There was a small bug in anaLineAlertsOnIndicatorV3, while anaLineAlertsOnPriceV3 was not affected.
This is how the bug affected the indicator:
Let us assume that you had added four alert lines (alerts 01 - 04) and then disabled alert 02. In this case the indicator would not display alert 02 (expected), would display alert 01 (expected), but not display alerts 03 and 04 (bug). The reason for this bug was a false command in the plot section. The identical plot section of anaLineAlertsOnPriceV3 was correctly coded, so I cannot tell exactly, how the false command made its way into the code.
The bug is now removed. Please download the updated version here: