The AlMaCrossers indicator is my first attempt to build a trading bot. The logic still not finished but the indicator will signal potential entries and exits (I using it on micros and e-mini futures) that one has to assess before taking the real trade.
The indicator takes into account two other indicator types: MACD and SMA.
SMAs are 4, 8, and 15.
The algorithm will (each tick):
1. evaluate if the 4EMA has crossover the 15
2. evaluate if the MACD crossed over the signal
3. evaluate if the MACD histogram is greater than the value (parameter) specified by the user. I made this one flexible because the values vary depending on the instrument.
4. evaluate the steepness of the 4EMA which should be greater than the specified by the user.
I'm working on some other dynamic values to improve accuracy on entries and exists.
Note:
- The indicator won't generate another signal (Long nor short) until the current position is closed!
- The entry (and exit) price s plotted along with a small green (red for shorts) triangle.
- The Exit signal will plot the PnL of the trade.
Standard SMA re-programmed to display fractional pricing to match Interest Rate Futures pricing.
[Will also properly display decimal pricing on contracts other than Interest Rates]
Indicator will only run on NT 7.0.1000.4 or later.
The VisualSMA is a MTF (multi-timeframe) version of the Simple Moving Average. It will plot on any chart and allows to calculate the moving average
- from minute bars
- from second bars
- from tick bars
- from range bars
- from volume bars
For example you can display an hourly SMA on a 235 tick chart, or display a 11-period SMA calculated from a 500 tick chart on a 7 range chart.
The indicator has three modes to display the moving average:
StrategicMode: The first bar series collects the values from the secondary series without any lag on historical data, but a 1-tick lag on real-time data. This mode does not repaint, but shows the values originally recovered from the secondary bar series. On the chart the indicator in Strategy Mode is plotted yellow.
FirstTickMode: To avoid the lag for similar bars with identical time stamps, the indicator repaints the indicator value for the prior bar, after the first tick of the current bar has been registered. The one-tick repainting reduces the lag. On the chart the FirstTick Mode is shown in red.
Visual Mode: To make it easier to use the indicator visually, the indicator interpolates the distance between two consecutive bars of the secondary bar series. The interpolation algorithm works in real-time and simulates the CalculateOnBarClose = false mode for the indicator relative to the secondary bar series. It repaints the current leg of the indicator back to the prior bar of the secondary series. The interpolation adapts itself to equidistant or non-equidistant charts. The Visual Mode is shown in aqua.
This indicator comes as a protected assembly, so you cannot directly access the code.
Update August 30, 2011: 1-Tick Repainting for VisualMode and FirstTickMode was only enabled for fixed period bars. It is now also available for other bar types.
Update September 6, 2011: Bug fixed. VisualMode interpolation could be a few ticks off on real-time data.
Update November 9, 2011: Indicator entirely recoded, robustness and speed improved, lag reduced.
Update November 23, 2011: Indicator was lagging with CalculateOnBarClose = true setting. Lag is eliminated.
Update January 5, 2012: Option added to select color according to the slope of the VisualSMA. Paintbars added as a trendfilter.
Update August 15, 2012: Code updated to allow for displacement of indicator.
Update September 29, 2012: Renko option removed. Indicator could not always be called from a strategy, bug removed.
Please remove prior versions of the indicator, before installing the new release:
(1) Remove old assembly via File -> Utilities -> Remove NinjaScript Assembly.
(2) Shut down NinjaTrader and restart it.
(3) Install new file via File -> Utilities -> Import NinjaScript.
This indicator plots the difference between 2 moving averages as a multicolored plot. The zero line is actually the slower of the 2 moving averages. You can select from 6 different moving averages. The screenshot shows the combination of EMA and SMA. So, you can pick your poison.
The multicolored plot is the difference between the slow and fast moving averages. Lime indicates the plot is rising, red is falling, and yellow is flat.
The dots on the zero line tell you the plot is above or below the zero line.
The histogram tells you the slower moving average is rising or falling.
Written by Mike Winfrey, aka Joe Blow, don't remember when I wrote the first iteration. However, this one, Version 1, was completed on May 11, 2010.
Exported 6.5.1000.15
Haven't done anything with NT7 yet. Not worth the effort yet.
Just a note...send a PM to me if you have questions or comments. I won't be notified if you leave a comment here with the indicator and as a result you may never get an answer.
January 10th, 2022 01:33 PM daytrader2021 This is by far the best indicator I have downloaded from this site. Only ask would be a way to move the text out of the
way without going to properties. Outside of that love it.
September 26th, 2021 08:34 AM newell Thank you! I came here to see if some one was working on this
July 28th, 2021 06:06 PM reddyvasu Looking good, thanks, is there a way to remove the sound alert, Please share if you have any updates over the current on