NexusFi: Find Your Edge


Home Menu

 





User defined lines with alerts


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 28 posts (38 thanks)
    2. looks_two madLyfe with 24 posts (2 thanks)
    3. looks_3 Big Mike with 5 posts (8 thanks)
    4. looks_4 tst1 with 2 posts (0 thanks)
      Best Posters
    1. looks_one Silvester17 with 5 thanks per post
    2. looks_two trendisyourfriend with 3 thanks per post
    3. looks_3 Big Mike with 1.6 thanks per post
    4. looks_4 Fat Tails with 1.4 thanks per post
    1. trending_up 24,422 views
    2. thumb_up 56 thanks given
    3. group 15 followers
    1. forum 72 posts
    2. attach_file 17 attachments




 
Search this Thread

User defined lines with alerts

  #61 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


RTR1701 View Post
Hi

Can @Fat Tails or anyone else using this indie please help me?

Thanks to Harry for the indie - very useful for something I am working on. But as I am still very much a newbie with NT7 and indicators in general I need to ask what I am sure is a very basic question.

SO: I want to reference the CurrentDayOHLV indicator and have sound alarms only and I just want to make sure I have this right.

For example, if I was trying to get an alert as price approaches ADN-High from 6 ticks away from above or below - do I have the right settings as the screenshot below? In particular I wasn't sure what was meant in this case by indicator value?



Assuming I do - I then do the same for each line I want alerts on, and the indicator then will alert at each new days adjusted levels?

Apologies again for the noob question!

Thanks

Graeme


@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.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
Battlestations: Show us your trading desks!
26 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
  #62 (permalink)
 RTR1701 
London UK
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IG Index
Trading: FX. Futures, Spreadbetting
Posts: 78 since Aug 2011
Thanks Given: 160
Thanks Received: 40


Fat Tails View Post
@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.

Thanks for the reply @Fat Tails aka Harry

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.

Graeme

Never stop learning - never stop applying the knowledge.
Visit my NexusFi Trade Journal Reply With Quote
  #63 (permalink)
 markus3500 
Cleveland OH
 
Experience: Intermediate
Platform: NINJATRADER 7
Trading: ES
Posts: 74 since Dec 2012
Thanks Given: 32
Thanks Received: 15


Hi Fat Tails... hoping you could help me on this indicator


I cannot get the sound file to fire off no matter what I try. The sound file works on the "price alert" that is built into NT so I know that sound is working.

I seem to have it set up the right way and the price line level shows up on the chart as does the label but when it approaches the target no sound.

Not sure if it makes a difference but when I go to the "sound file" field on the indicator there is no drop down menu to choose between sound files, it just has

Thanks

Here is a pic of my settings


Reply With Quote
  #64 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


markus3500 View Post
Hi Fat Tails... hoping you could help me on this indicator


I cannot get the sound file to fire off no matter what I try. The sound file works on the "price alert" that is built into NT so I know that sound is working.

I seem to have it set up the right way and the price line level shows up on the chart as does the label but when it approaches the target no sound.

Not sure if it makes a difference but when I go to the "sound file" field on the indicator there is no drop down menu to choose between sound files, it just has

Thanks

Here is a pic of my settings



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.

Reply With Quote
  #65 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,615 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,988

Hi @Fat Tails,

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?

Attached Thumbnails
Click image for larger version

Name:	UserLines.png
Views:	204
Size:	90.0 KB
ID:	134970  
Visit my NexusFi Trade Journal Reply With Quote
  #66 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


aligator View Post
Hi @Fat Tails,

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?

@aligator,

you just need to activate the alert line


Reply With Quote
  #67 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

I am getting an Index out of range error.
If I change instrument the line will appear

Reply With Quote
  #68 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

@Mindset: Checked it with the same settings, not getting any errors here.

I have updated the files in the download section, but the update fixes a bug that occurred when sending e-mails, so it is not related to your problem.


Reply With Quote
Thanked by:
  #69 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,534

Notifications sent.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #70 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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:


Reply With Quote




Last Updated on February 12, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts