Pages

Tuesday 23 December 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.

0 comments:

Post a Comment