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 Trafford 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,809 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

  #1 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,175
Thanks Received: 6,020

I am using and testing this indicator created by FatTails anaUserDefinedLines.

I am presently using it in an indicator panel on a tick chart. For example on the ES, i want to get an alert when price forms a bar of at least 1.5 point on a 800 ticks chart. It works as expected except there is a line that displays at the 0 level in the indicator panel. This is not a problem but i wanted to point this out. Also, i noticed that the plots section does not order the various alerts as they are for the other two sections: User defined labels and User defined values. The first alert is defined in row 1 of the User defined labels section (Label01) and User defined values section (Value01) while the corresponding alert is found in the last row of the Plots section. Again, this is not a problem. I just wanted to point this out.

Some suggestions:
I find 20 lines is too many lines. 5 lines would be more appropriate since we can add many instances of this indicator on the same chart.

Would it be possible to have a version where we could define a few moving averages instead of fixed price levels? When price would cross a MA, an alert would be triggered.

Attached Thumbnails
Click image for larger version

Name:	anaUserDefinedLines.jpg
Views:	488
Size:	248.2 KB
ID:	44910  
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
What is Markets Chat (markets.chat) real-time trading ro …
Trading Reviews and Vendors
Increase in trading performance by 75%
The Elite Circle
Better Renko Gaps
The Elite Circle
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (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


trendisyourfriend View Post
I am using and testing this indicator created by FatTails anaUserDefinedLines.
I am presently using it in an indicator panel on a tick chart. For example on the ES, i want to get an alert when price forms a bar of at least 1.5 point on a 800 ticks chart. It works as expected except there is a line that displays at the 0 level in the indicator panel.

This is a bug, I had used Reset() for 19 out of 20 lines, but for the second label I had erroneously used Set(0) which produced the line.


trendisyourfriend View Post
Also, i noticed that the plots section does not order the various alerts as they are for the other two sections: User defined labels and User defined values. The first alert is defined in row 1 of the User defined labels section (Label01) and User defined values section (Value01) while the corresponding alert is found in the last row of the Plots section. Again, this is not a problem. I just wanted to point this out.

The order of the plots section follows that NinjaTarder logic -> Plots[0], Plots[1], Plots[10], Plots[11] .... Plots[2] etc. Problem should be solved, because I reduced the number of lines to 10.


trendisyourfriend View Post
I find 20 lines is too many lines. 5 lines would be more appropriate since we can add many instances of this indicator on the same chart.

Reduced.


trendisyourfriend View Post
Would it be possible to have a version where we could define a few moving averages instead of fixed price levels? When price would cross a MA, an alert would be triggered.

That would be a different indicator.


The updated indicator is here: Zeroline will no longer show up, number of lines reduced to 10.


Reply With Quote
  #3 (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,441 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,599


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:
  #4 (permalink)
 
GridKing's Avatar
 GridKing 
San Diego, CA USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES
Posts: 3,630 since May 2011
Thanks Given: 584
Thanks Received: 881

Thanks for this , not sure why but not playing sound (have sound alert active true and levels set

also was wondering if it would be possible to have a different sound at different levels

Thanks for all you do

"Successful trading is one long journey, not a destination" Peter Borish Former Head of Research for Paul Tudor Jones speaking on conversations with John F. Carter
Visit my NexusFi Trade Journal Reply With Quote
  #5 (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


GridKing View Post
Thanks for this , not sure why but not playing sound (have sound alert active true and levels set

also was wondering if it would be possible to have a different sound at different levels

Thanks for all you do

Checked the alerts, they work. You need to locate a .wav/PCM file in the NinjaTrader sounds directory and select the file name via indicator dialogue box. The default file is Alert4.wav.

It is possible to have different sounds at different levels. Maybe will add this with the next release, as this more sort of a toy thing.

Reply With Quote
Thanked by:
  #6 (permalink)
 
madLyfe's Avatar
 madLyfe 
Des Moines, Iowa
 
Experience: None
Platform: Ninja, TOS
Broker: AMP/CQG, TOS
Trading: CL, TF, GC
Posts: 1,641 since Feb 2011
Thanks Given: 9,220
Thanks Received: 1,020

i like your work, thanks for this!

Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
Trafford's Avatar
 Trafford 
London, England
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus Futures/Zen-Fire
Trading: EUR
Posts: 337 since Sep 2010
Thanks Given: 378
Thanks Received: 229

FT,

@Fat Tails

1). I like the 20 Lines feature.However I tried plotting this indicator on GOMI's CD but it does not plot negative numbers. I put -10000 but it did not plot these numbers only the positive ones such as 10000, 20000 etc.

2)I tried installing new version I got 'Error plotting indicator 'anaUserDefinedLines'. Please check the 'OnBarUpdate' or the Plot' method: Index was outside the bounds of the array.

Thanks,

Reply With Quote
  #8 (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


Trafford View Post
FT,

@ Fat Tails

1). I like the 20 Lines feature.However I tried plotting this indicator on GOMI's CD but it does not plot negative numbers. I put -10000 but it did not plot these numbers only the positive ones such as 10000, 20000 etc.

2)I tried installing new version I got 'Error plotting indicator 'anaUserDefinedLines'. Please check the 'OnBarUpdate' or the Plot' method: Index was outside the bounds of the array.

Thanks,


(1) The indicator does plot negative values, I do not know, where problem lies.

(2) The indicator is pretty straight forward. It should not throw any exceptions. If you can reproduce the problem, I would like to have a look at your log file.

The indicator was designed for plotting lines at the price panel. If you use it on the indicator panel, it can not trigger the alerts as expected, as it uses the TickSize to define the alert zone. I will modify the indicator and come back with a version that will also trigger alerts on the indicator panel.

This is not linked to the two points above.

Reply With Quote
  #9 (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

Following your suggestions I have now added a second version of the indicator that can be applied to indicators.

If you want to be alerted to a value on the main price panel

-> please use anaLineAlertsOnPrice

However, if you want to be alerted to a specific indicator value

-> please use anaLineAlertsOnIndicator


There are two differences between those two indicators:

(1) anaLineAlertsOnPrice will automatically show up on the price panel, anaLineAlertsOnIndicator requires that you select the panel manually where it will be plotted.

(2) anaLineAlertsOnPrice uses ticks to calculate the offset for the price alerts, anaLineAlertsOnIndicator uses units which are calculated from the volatility (price-to-price changes) of the indicator, as the notion of the ticksize does not make sense when applied to an indicator.

The new indicators can be downloaded here:

Downloads - [AUTOLINK]NinjaTrader[/AUTOLINK] 7 Indicators - Big Mike's Trading Forum


Reply With Quote
  #10 (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,441 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,599


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




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