Tuesday, December 23, 2008

HPT 7min Vs 60min Trend Indicator for NinjaTrader Software

As many of you know, I'm testing out NinjaTrader to backtest my Quotetracker strategies.
Making custom indicators for NinjaTrader reminds me of when I was taking my first Visual Basic class. You basically spend 10min making the indicator and hours debugging for errors you've made.

I just got done setting up the basic 7min vs 60min Trend Signals for NinjaTrader; an indicator that I've given out in my basic Quotetracker Chart setup.

I did notice some small discrepanices for this indicator between Quotetracker and NinjaTrader as you can see from the LONG red arrows in the above chart.

I tried posting the code here, but BLOGGER has issues with the code and it doesn't post correctly, so I've put a Free Download link to the "HPT Seven Vs Sixty Minute Indicator" and I've added this indicator to my free download section.

Note- This file is written in C#. If you don't have NinjaTrader you can still view this file by unzipping the file and opening it with Notepad or Visual Studio.

Additionally, this indicator may be improved upon by using the MAX and MIN function in ninjatrader for finding the 60min high and 60min low respectively, as opposed to how I wrote the code (ie. High[60] , Low[60]). Based on how I wrote the code, I don't believe adding the MAX/MIN function will make a big difference, because it also looks back to the 30 period bar. I will likely improve this indicator in the future. If anyone has any suggestions or ideas, please leave a comment.


aupi on 2:10 PM said...

high[60] and low[60] give you the high and low of the 60th bar back, not the high/low between now and then. min and max will make a difference.

HPT on 7:29 PM said...

This indicator is a duplication of a QT signal I made. QT doesn't have the MAX and MIN function so that's why I had this indicator check the 30 period bar as well. I will let you guys know when I update this indicator with the MAX/MIN used.

jiqiren on 11:06 PM said...

Merry Christmas and Happy New Year to HPT

Subscribe via email

Enter your email address:

Delivered by FeedBurner


High Probability Trade. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com