This indicator identifies different market phases based on price action.
Phases 1. Up-Trend: An up-trend is a confirmed range breakout to the up-side, a consolidation continuation, or a down-trend that pulls back Initial Range ticks over n-Periods. 2. Up-Trend Consolidation: An up-trend consolidation period is when a new trend high has not been set in Consolidation Periods, but price has not pulled back Pull-Back Ticks. 3. Up-Trend Pull-Back: An up-trend pull-back is when price has moved down Pull-Back Ticks from the trend high. If price pulls back Initial Range ticks over n-Periods, the market is considered to be in a new down-trend. 4. Up-Trend Breakout: An up-trend breakout is when price moves Breakout Ticks above the current range high. If price remains above the range high for Confirmation Periods, the trend is considered an up-trend. 5. Upper Range: If the current range is at least Tradeable Range wide, and price is in the upper Range Percentage of the range, the market is in the upper range phase. 6. Range: The market is ranging if price is consolidating OR pulling back, BUT has not broken out of the previous high or low n-Periods from that high or low AND price has not moved Initial Range ticks over n-Periods in the same direction as a pull-back. 7. Lower Range: If the current range is at least Tradeable Range wide, and price is in the lower Range Percentage of the range, the market is in the lower range phase. 8. Down-Trend Breakout: A down-trend breakout is when price moves Breakout Ticks below the current range low. If price remains below the range low for Confirmation Periods, the trend is considered a down-trend. 9. Down-Trend Pull-Back: A down-trend pull-back is when price has moved up Pull-Back Ticks from the trend low. If price pulls back Initial Range ticks over n-Periods, the market is considered to be in a new up-trend. 10. Down-Trend Consolidation: A down-trend consolidation period is when a new trend low has not been set in Consolidation Periods, but price has not pulled back Pull-Back Ticks. 11. Down-Trend: A down-trend is a confirmed range breakout to the down-side, a consolidation continuation, or an up-trend that pulls back Initial Range ticks over n-Periods.
Parameters Periods, Initial Range, Tradeable Range, Pull-Back Ticks, Breakout Ticks, Confirmation Periods, & Consolidation Periods: See Above Description Color Outlines: Colors candle outlines according to the current phase. Range Lines: Draws lines at the current range high and low. Note: This indicator updates the highs and lows based on price action. These lines could move in real time. Range Zone: Draws a Range Color rectangle during ranging periods from the current range start period to current bar, Zone Opacity: Opacity of the Range Zone rectangle.
Message Parameters Phase Message: Draws a text box with the current phase in the in the selected position. Message Position: Positions phase message in desired corner. 1=Upper-Right, 2=Lower-Right, 3=Lower-Left, 4=Upper-Left Message Font: Font used for phase message. Font Size: Font size used for phase message.
MTF Parameters MTF: If true, a custom MTF data-series is used to calculate market phases. Periods: Periods or value of custom MTF input series. Period Type: Type of periods used for custom MTF input series(Day, Minute, Range, Second, Tick, or Volume).
Colors
-The colors for the 11 market phases can be set by the user.
Please visit the discussion thread for a sample MTF template.
Change-log:
9/16/12 - V1b released. Added Range Zones and Phase Message. Fixed 1 bar lag for range.
9/17/12- V1c released. Fixed pull-back to new trend bug.
9/22/12- V2 released. Added MTF capabilities. Made range max and min public dataseries. Made message customizable.
Took a few minutes to improve the function and performance of this "stock" NinjatraderŽ indicator. This should give the same results as the NinjatraderŽ version but is a lot more efficient and has multicolor plotting. Aside from that there is nothing new here.
Quoting
Developed by Larry Williams in 1976 and featured in Stocks & Commodities Magazine in 1985, the Ultimate Oscillator is a momentum oscillator designed to capture momentum across three different timeframes.
This study was inspired by the 9/30 method setup... hope others will find it useful. it's amazing how few lines of code can produce something as effective and nice looking (they don't have to be ugly, you know... )
The K_Trader_Ribbon is a trend following setup based on 2 crossing-MA's concept.
we use WMA and an EMA of shorter length of that WMA.
the "ribbons" shade the area between the EMA, the WMA, and the midline of the Hi/lo Channel of the WMA.
the price/WMA will be on either sides of that channel depending on up/down trend ..
visualizing it this way hides a lot of unnecessary noise..
we can also better visualize the "buy" area (light shading) and the "exit loss" areas (inside the darker shades or if price penetrates the TrendLine)
added a buy/sell signal (up/down arrow) based on the crossing of the WMA with it's EMA (it provides the earliest signal) beside the color clue (red/Green) for an established trend up or down.
couple of nice visual enhancements to expereiment with(hi-contrast clouds and hide/show all lines) - see screenshots
try different length settings.. i liked 4/3 and 6/3 on a 5min chart..
Adjust length settings based on underlying & time aggregation until you see the price bars penetrating the ribbon to the other side of current trend *just before reversal*, and staying within the ribbon during retraces.. this will be the best settings in most cases..
This indicator is used to analyze the effectiveness of simple automated strategies. The GlassBox dynamically monitors the maximum favorable excursion (MFE) and maximum adverse excursion (MAE) of a recent sample of trade signals produced by those strategies. By manipulating the Target %Profitable, Minimum MFE, and Minimum MFE/MAE variables, the user can then determine which strategies' trade signals are plotted on the price chart.
The Strategies
The strategies tested by the GlassBox are based on eight signals. Four of the signals are "fast" signals; four are "slow" signals. Each of these eight individual signals is itself a strategy, and by combining each fast signal with each of the four possible slow signals an additional sixteen combination strategies are generated.
Signal Inputs
Each of the eight basic signals has five potential inputs.
1) Indicator: The name of the indicator, with its parameters in parentheses.
2) Plot: If the indicator entered in (1) has multiple plots, the name of the plot used for the signal is entered here.
3) Slope Signal: If set to "true", the slope of the indicator plot selected in input (2) is used as the signal. A positive slope will trigger a long position, a slope of zero will signal a flat market position, and a negative slope triggers a short position.
4) Price Cross: If set to true, a long position will be triggered when price crosses above the indicator plot chosen in input (2). If price crosses below the indicator plot a short position will be triggered.
5) Cross Value: If neither the slope signal approach nor the price cross is chosen, the final option is the value cross. When the indicator plot chosen in input (2) crosses above the Cross Value a long signal is generated; when it crosses below a short signal fires.
Strategy Analysis Parameters
1) Trade Memory: The number of trades stored in memory for each strategy.
2) Minimum Bars: The minimum number of bars a trade must be active before it is stored in memory.
3) Target %P: The target percent profitable desired by the user. This is the percentage of the trades stored in memory that reach the Target MFE without going beyond the Target MAE.
4) Slippage: The slippage in ticks per turn used to adjust the Target MFE and Target MAE calculations.
Strategy Plot Parameters
1) Min MFE: The minimum Target MFE that a strategy must reach in order to be plotted.
2) Min MFE/MAE: The minimum Target MFE / Target MAE ratio required for a strategy to be plotted.
3) Plot Averages: If true, the Average MFE and Average MAE of the profitable trades will be plotted as triangles, but only for those strategies that meet the conditions set by Strategy Plot Parameters (1) and (2).
Strategy Plots
The GlassBox will plot entry signals that include an arrow on the entry bar, the Target MFE for the corresponding strategy, and the Target MAE for that strategy. If Plot Averages is set to true it will also plot Average MAE and Average MFE. The plots themselves are coded according to color (for fast signal strategies) and dash style (for slow signal strategies). This allows the user to identify the strategy that is signaling based on its plot.
Fast Signal Strategies
Indicator1 is red
Indicator2 is green
Indicator3 is blue.
Indicator4 is fuchsia
Slow Signal Strategies
Indicator5 is dashed
Indicator6 is dot
Indicator7 is dash-dot
Indicator8 is dash-dot-dot
Combination strategies can be recognized on the chart by combination plots. For example: a combination strategy involving Fast Signal 1 and Slow Signal 1 will be plotted as a red dash.
Signal plots will be removed from the chart if the signal condition fails to remain valid for the minimum bars set by the minimum bars parameter. A sound alert will play if an entry signal is removed from the chart to let the user know that the original signal is no longer valid.
This indicator creates a convergence-divergence indicator, similar to a MACD, using any two indicator plots. Parameters: Fast Indicator: Enter the fast indicator name and parameters here. Ex: Stochastics(7,14,3) Fast Indicator Plot: Enter the name of the plot you want to use as an input for the fast indicator. Ex: D Slow Indicator: Enter the slow indicator name and parameters here. Slow Indicator Plot: Enter the name of the plot you want to use as an input for the slow indicator. Smooth Periods: Number of SMA periods used to smooth the ICD plot.
The three plots are Avg, Diff, and ICD which are exactly like the MACD plots.
Big thanks goes out to @gomi and @NJAMC for their indicator instantiating code.
Changes from previous version:
1. Advanced divergence removed, simple divergence optimized, fix divergence bug.
2. Add DM trend filter to all time frames.
3. Add additional MA.
4. Improved markers mechanism with the addition of dynamic offset based on ATR.
5. Add background options.
6. CPU performance should be approximately 20% better after code optimization.
The indicator provides real time analysis of user defined set of conditions which can be enabled separately for up to four time frames simultaneously, the result is real-time true/false signal for the selected combination.
Features:
Current intra bar trend direction.
Current intra bar counter trend direction.
Four selectable MAs for each TF with user defined slope or rising/falling.
1. Advanced divergence removed, simple divergence optimized
2. Separation to second MA is now available also when second MA is disabled.
3. Additional options at section 6.1 Paint Bars Type.
4. Additional options at section 5.4.1 Background mode.
5. DM filter is improved with more advanced options, filter result can be reflected to the followings: Paint Bars, MA line, Background, all options are listed at section 7.1.2
6. Fixed few minor bugs, also CPU performance should be slightly better after optimizing several parts in code.
Compatibility to previous templates: it depends on the options are used, changed properties may not keep its previous value.
Existing features:
1. Double MA capability (optional), each MA type can be doubled with any other MA type except momentums, which can be doubled with itself only.
2. Display real-time and history MA slope (normalized).
3. Divergence with second MA mode.
4. Display MA line colored.
5. Optional colored background.
6. Optional colored Paint bars.
7. The following coloring modes are enabled independently for MA line, background and paint bars:
1. By slope threshold.
2. By rising/falling.
3. By support/resistance mode (when time bar closes above MA line, it become a support, and vice versa).
8. By support/resistance mode with slope threshold.
9. By support/resistance mode with rising/falling.
10. Paint bars contain additional filter for specific trend type.
11. User defined text for slope box.
12. DM filter
Please remove previous version and restart ninja trader, before installing this release.
This new version comes as protected assembly.
Updated December 25, 2012 version 2.83
Updated February 28, 2012 version 3.10
Updated June 30, 2012 version 3.35
Updated September 03, 2012 version 3.42
Exported using NT version 7.0.1000.10
April 11th, 2015 05:54 AM uzzo great indicator, thanks
November 16th, 2013 11:53 AM westsider Nice work!
May 18th, 2013 03:00 AM moorookaman
September 10th, 2012 11:25 AM jmont1 @Erez, thanks for all these updates. Minor questions - Why not include the slope in the MA Package as an option for eac
h MA?
Also, any chance you would participate in the divergence thread started by Big Mike:
February 10th, 2014 11:45 AM StarSpangled Thanks Erez!!! Tip for installing folks is to install the MASlopeMultiV3.42 FIRST and then this indicator. You may
get an import error otherwise. This is a very "Heady" but most powerful tool. Awesome work!!
December 6th, 2013 10:32 PM 1973Hog Thanks, RedK. Just wanted to let you know that I loaded this up to ToS and am experimenting with which Time Frames and S
ettings to use for short term Intra Day trading -- trading the intra day trends that last from 10-30 minutes.
Here is a chart of how I used your system to trade TNA today (12-06-2013). It works very well on a 5 min chart with 4,2
as the setting. It identified the Up trend in the pre market, the chop zone in the first part of the trading day, and th
en the Up trend from 1045 to 1155.
Thanks again.
October 16th, 2013 10:41 PM LukhyG Thanks for This great help
September 29th, 2012 01:33 AM ticker I would be grateful to anyone who can translate into Ninja?
September 15th, 2012 11:06 PM kareem40 Good work again. Nice to see more TOS indicators.
September 13th, 2012 05:47 PM Cloudy Nice, the colors help see the continuation trades. Thanks RedK