I was asked to updated the BloodHound MACD/Keltner 20.5 strategy to add a trend filter and a multiple time frame for the trend. The suggestion was for a 21 HMA. So I included a 5 minute chart for that and added it to the strategy. I backtested the strategy in Crude for January 2014 on a 233 tick chart, and it was profitable on that. I will post the performance report on the new BloodHound strategy post: https://nexusfi.com/
This indicator can be used to create a watch list and to let you know when it might be time to enter a position. Getting confirmation in the short, medium and long timeframes also gives you more confidence on the current direction.
This indicator uses a slow SMA and a faster EMA and plots those on a chart based on the time frame setting. There are three settings, Slow, Medium and Fast timeframes. Data exposed in this indicator can be used in a strategy or on a Market Analyzer. The values exposed are the number of periods back the last cross occurred and the direction of the cross. 1 indicates a cross above and the -1 indicates a cross below.
The EMA and SMA included indicators are just the standard Ninja indicators.
This old standby/classic/war horse has been recoded with every efficiency trick I can think of to minimize CPU use. It looks like it plots the same as the original, but I haven't checked. That can be your job.
Efficient indicators ensure the utmost in responsiveness with rock solid stability and dependability. Also added error trapping... just in case.
The techniques used include:
- incorporating all supporting calculations into the indicator to eliminate calls to external classes SUM and CMO.
- calculating only on FirstTickOfBar the variable values that depend only on previous bar data.
- removing redundant processing steps, eliminating intermediate, locally declared variables and combining calculations into a minimal number of algebraic expressions.
- allowing OnBarUpdate to execute only when it will affect the output result.
- providing the option of disabling the setting of plot values and colors when called by another indicator or strategy.
- providing a public data series to give the output values when called by another indicator or strategy, even it this indicator is running in the background with ShowPlot false, with no plot values being set.
The Variable Moving Average (VMA) or Volatility Index Dynamic Average (VIDYA), developed by Tushar S. Chande, uses a Volatility Index to adjust the smoothing period. When prices are congested the average slows down and when prices are trending the average speeds up (note steps in plot).
The indicator is completely self contained. There are no calls to external indicators.
If you call this indicator from another indicator or from a strategy, set the ShowPlot parameter to false to avoid wasting resources setting the values and colors of plots that are not being displayed, and get your outputs from the public dataseries that was provided specifically for that purpose.
This little indicator is given in humble thanks to the BMT community. Thank you!
No image....indicator has no plots and does not draw anything on the chart. except for debugging.
This BETA/Experimental code is intended to be used by other coders who want to customize it to their needs.
For example, the Quantity field on ChartTrader is converted in this code to an integer. This code does not know all the special cases possible for this Quantity field. It could be that, for example, Forex brokers use non numeric characters in this field, such as commas, or a code for 1 Million, et cetera. This code will fail with a string conversion error in these situations. It is up to you to provide the solution as you integrate this code to your usage.
USE AT YOUR OWN RISK on LIVE ACCOUNTS. Methods used to submit orders and cancel positions are not supported by NinjaTrader. Author provides no warranties of any kind.
You need to have "ATI Interface" selected on the Control Center / File / ATI Interface.
version: Beta V 1.2
Coded Actions:
Left Mouse + Shift = Place BUY with ChartTrader Account, Quantity, ATM at the price clicked on chart
Left Mouse + Control = Place SELL with ChartTrader Account, Quantity, ATM at the price clicked on chart
Space = Press ChartTrader CLOSE button (programmatically)
Change Log:
Beta 1.1 Added Globalization to set the decimal point to a period and not comma (ToString(usa))
Beta 1.2 Handle null object -- When ChartTrader is hidden Clicker will neither submit orders, nor close positions
Coders:
* There are print and draw line in code for debugging
* You will need to handle condiitions when selected ATM is Active, None, or Custom
Thanks noted in code to vvMiniTradePanel indicator and user decs0057.
Volumes at Bid Ask:
Buying volume at and above the ask is displayed on the top portion of the bar (green), and selling
volume at and below the bid is displayed on the bottom portion of the bar (red). Volumes in between
the ask and bid are displayed in between the buying and selling portion of the bar (gray).
Buy Sell Ratio:
A histogram with the ratio of buying to selling volume in percent form (values 0 to 100)
with a setting option for cumulative values. Volume above the ask and below the bid are also included as
buying and selling volume, respectively.
This is a real-time indicator that fits buying and selling values into a single bar.
Buying volume at and above the ask is displayed on the top portion of the bar (green), and selling
volume at and below the bid is displayed on the bottom portion of the bar (red). Volumes in between
the ask and bid are displayed in between the buying and selling portion of the bar (gray).
Please let me know if you notice any glitches. From what I observed, not all of the indicator's total
volume values matched the values from Ninjatrader's default volume indicator. Check the data box
for accuracy.
I contacted the programmer back about these issues. He tested it again, and stated that it worked
fine from his end. So I'm assuming it's a data feed issue. I contacted the NT support forum, and sent
them my log and trace files. They didn't find anything problematic either. In the meantime, I'm going
to have this indicator tested by another programmer for a second opinion. If the programmer does find
any errors, I'll have it updated and post it here as a revision.
FatTail_AdvBar is a paintbar study to show volume on advanced bar types. I have no idea where I got the original code which I chopped up and changed. I use this on a Kase Bar chart OHLC- makes a nice candle volume appearance. Use on a Renko chart with the box color completely transpareant to see gaps and highlight support and resistance areas. The bar width is determined by volume over n periods and the color gets brighter based on the uptick/downtick ratio. I have RedGreen set to false, show color= true, show Tails True. Mess around with the length to get the volume representaion you like.
Version1: This indicator automatically draws trend lines on the CCI based on pivots. It shows an alert arrow when the average of the CCI breaks a trend line. It also has a configurable audio alert.
It took me a while to extrapolate the trend lines. That data isn't available as it is in easy language. You have to manually create the data points. I wrote my own formula for the slope. Its not just an X/Y conversion when you use an oscillator because some values are above 0 and some are negative. Bearing that in mind i do see a few instances where a trend line break was printed but didn't actually happen. I'm sure I will learn more as I work with this in the markets an make some refinements.
VIP members only please don't distribute this to anyone else!
Version 3: 3/9/2015:
Cleaned up code. Configurable audio alerts. Option for CCI Cross Up/ Down Dots, Arrow color choice, Thermite alert for trendline intersection. Output for bloodhound integration. Enjoy!
BloodHound chart template for momentum trading strategy currently being tested in the crude market. Users will need to test the strategy for performance and risk before trading. Use a 256 Tick Chart for entries and exits. Do not take additional trades if a trade is entered into.
The signals are from the TSI Oscillator, Ergodic Oscillator, and MACD 3/10/16 oscillator.
Note: Momentum style trading systems do not perform well in trading ranges. If price action is trading within a trading range, do not trade this strategy. A filter can be added to require 32 SMA sloping or TSI above 0 before entry. This may eliminate chop but reduce potential profits.
Entries: 256 Chart
1. TSI Crossover (Ergodic 3,5,32, Main x Signal) - OR -
2. SMI Slope 5-32-3 - AND -
3. TSI Slope (5/32 with nested EMA 5) - AND -
4. TSI Slope (5/32 with nested EMA 5) (156 Tick Chart Settings)
Exits: 256 Tick Chart
1. anaTSI Crossover (3/7/14/3)
Discretionary trading signals
Take entries when SMI Slope and TSI Slope are in the same direction and the TSI Slope on the 156 tick chart is also in the same direction. Or, entries can be taken when TSI crosses its signal line.
Note the MACD 3/10/16 oscillator with MACD 32/5/5 histogram is included on the chart template. The MACD signals usually occur after the Ergodic oscillator signals, providing confirmation or allowing a late entry. The MACD histogram also provides good divergence signals. A third trend filter can be added to trade long when TSI is above zero line, or short when TSI is below zero line, but this will diminish profits and may cause entries near exhaustion for shorter moves.
November 19th, 2015 10:43 PM michaelleemoore Just learning my way around Bloodhounds and appreciate some other templates to work with.
December 21st, 2013 04:58 PM br8080 many thanks! i haven't been able to locate on BMT the ana TSI file that is in the template. can you point me to it? th
anks again!
bruce
November 23rd, 2013 10:57 AM Herbert Thank you
November 21st, 2013 10:48 AM jiggles This is a .bht file? Can't download.
November 15th, 2013 02:40 PM Gary Lucas Can this indicator be programed for use on the NinjaTrader platform?