This indicator allows a user to draw a horizontal line on their chart and have an audio alert wav file sound when the line is pierced (either from above or from below).
I didn't originate this indicator. It is a modification of NT's native price alert indicator, NT's original indicator only gives you an alert in a their alert window which I found not so helpful.
With the help of others here at BMT, I modified this indicator to include the ability to type in audio wav files in the indicator settings so you would get an audio alert when the hand drawn horizontal line is breached.
Things you should know:
You will need to insert 2 of these indicators into your chart indicator list.
On one choose "true" in the "uptrend/downtrend drop down box at the top. In the 2nd one, chose "false".
You will want to choose false for "calculate on bar close" on both indicators
For audio files, type in the name of an audio file you know exists in your program files/ninja 6.5/ sounds folder.
Instances of all external MA's that are used by this indicator are pre-instantiated and the instances are defined before use.
Calls to the external MIN and MAX indicators have been replaced by calls to new internal private functions that give the minimum and maximum values.
The calls to those functions can only be made on the first tick of each new bar, and then ONLY when the maximum or minimum value of the applicable series is known to have changed. This eliminates a great deal of unnecessary loop processing.
Special thanks to Richard of MoveTheMarkets.com for the optimization strategies, at least SOME of which should be used whenever an external indicator is called from a Ninjacript INDICATOR or STRATEGY... it's a Paradigm Shifter.
This version should work on NT6.5 or NT7, but I have not tested it on NT6.5.
Revised May 25 2011: This is an updated G40 version. The installation package includes the GomRecorder and related files from latest Gom Package version 2.3b.
Revised at 4:50 PM ET on May 27: Added user selectable values for the fast and slow smoothing parameters of the Tick Volume Index, and changed the default values that previously had been hard coded.
We've come a long way since version G35. This one includes bar by bar values of Delta, Delta Momentum, and the Tick Volume Index. There were some optimizations to make it run a little faster, but it was still relatively slow to load.
On Tuesday May 26 I did some further code optimization and it now loads much faster. If you downloaded prior to around 7PM ET on that date, you should download and install the updated version posted at that time.
May 26th, 2010
Size: 32.52 KB
Downloaded: 1781 times
458
Zondor
VIP Only, please do not distribute outside of the Elite Circle.
This an optimization of the December 2009 BMTDivergence Indicator. The code has been optimized by predefining the instances of the external indicators that are used.
VIP Only, please do not distribute outside of the Elite Circle.
Mike's version, posted in June of 2009, was downloaded almost 700 times!
It colors the volume bars based on a sophisticated linear regression analysis without using bid ask volume data. It corresponds well with Delta Momentum generated from GomRecorder buy/sell volume.
I applied Richard's optimization method from his article, aboot the right way to call external indicators, at MoveTheMarkets.com. (eh?)
This greatly improves the performance, so much so that in NT7 it can run with CalculateOnBarClose = false. However, DO NOT run it this way. CoBC must be true for it to calculate correctly... for now.
VIP Only, please do not distribute outside of the Elite Circle. It's based on Mike's Version 2.02 from February. This plots the same as Mike's except for two differences.
Quick Start Modification causes value of CMA to rapidly converge to the correct value within a few bars of startup.
The method of calling the EMA's was changed for greater efficiency. This causes initial loading to be much faster, and resource use while indicator runs to be much lower. Thanks to Richard of MoveTheMarkets.com for his excellent article about this subject.
To see the envelope bands, chart must go back at least one day. Bands begin to display on the second day.
As in original version, all band colors are hard coded and are best for a chart with a dark background.
BetterRenko is avail in elite area, and provides a better implementation, but this is left here for those interested.
Renko implemenation that maintains the correct wicks/volume.
It should coexist with SbsRenko and MedianRenko and NT Renko. The implementation also allows CandleSticks or OpenClose bar types to be used, but maintains the wick data reguardless of how it is displayed. The bar open is repainted, which is a weakness.
To use this, just import the zip file, compile some indicator, and restart Ninja to get the code loaded.
Description
This is an indicator NinjaTrader_Ray published for the September 07 issue of Stocks & Commodities magazine. Converted it to NT7 by fixing the DrawRay code break.
To Import
1. Download the attached file to your desktop
2. From the Control Center window select the menu File > Utilities > Import NinjaScript
3. Select the downloaded file
Automatically draws a line representing the current trend and generates an alert if the trend line is broken. 0 = no signal, 1 = buy signal on down trend break, 2 = sell signal on up trend break
Ok, not very MatLab, but MatLab, R, ...
This simple script download historical data from IB (360 days, 1 minutes bar) for all SP500 stocks, without risking the "Pace violation ..." from IB. The files are wrote in the user home directory.
October 11th, 2015 12:43 PM gpokc thanks for ths indicator.
October 6th, 2011 12:08 AM Default User
May 20th, 2010 12:04 AM chrisflow Neat! But it crashes my NT7 every time I try to use an input other than standard minute or range bars etc. i.e. it crash
September 22nd, 2011 11:42 AM Tiberius I found this indie did not plot correcting (math,code) in fast markets. Seems like a great indie, but my faith has dimin
June 12th, 2016 11:31 AM dilbert618 Thank you Zondor
September 26th, 2015 08:07 AM PharmDoc Great work
February 12th, 2013 07:03 PM OpalDragon Epically awesome sir... Thank you very very much! Would love the option for the little diamonds to appear right on to
p of the bars on the chart...
with out any left scale - just diamonds on the chart
all I would need is to know that there is divergence it is so just diamonds appearing on top of the bar would be gr
eat -- but it is freakin awesome!
November 20th, 2010 03:42 AM MasterSeer Thanks So Much for your great contribution to my profitable trading!