Pages

Wednesday 31 December 2008

BollingerBandwidth Indicator for NinjaTrader

NinjaTrader didn't have my favorite indicator already pre-built in, so today I made my first custom indicator for NinjaTrader. The BollingerBandwidth indicator is essentially the same as the Standard Deviation indicator already built in.

The Basic Formula for the BollingerBandwidth indicator is:

Bollinger Band Width = (Upper Band - Lower Band)/Middle Band



As you can see, the Bollingerbandwidth indicator drawn matches the underlying Standard Deviation indicator. The direction of the two will always match each other regardless of the parameters used. With the Bollingerbandwidth indicator that I made, the only real thing that is added is a standard deviation parameter which can be used to reduce or amplify the shape of the indicator to match the standard deviation your using on your Bollingerbands. You could come up with a number of ideas to use the extra StdDev. parameter I've added.



In addition to the basic Bollingerbandwidth indicator I made 2 variations of this indicator which I prefer to use over the standard indicator (All 3 indicators shown in chart above). The first variation I made is an indicator which gives you the raw value between the Upper and Lower Bollingerbands.

Bollinger Band Width Raw = Upper Band - Lower Band

This indicator can be used a number of ways. For example, maybe you want to look for trades where there is a move in a stock of XX pts, or maybe you want to look for when the Raw bollingerbandwidth on ES is greater then XX pts.

The next indicator is my favorite variation of this indicator because it tells me the percentage between the upper and lower bollingerbands.

Bollinger Band Width Percent = ((Upper Band / Lower Band) -1) *100

I like to use this indicator because it is the easiest to understand. For example the standard bollingerbandwidth indicator normally gives values between 0.001-0.01, while the BollingerbandwidthPercent indicator gives you a pecentage of the difference between the upper and lower bollingerband, normally between 0.1-2.0% depending on the range of the move in the stock or futures contract. I like to use this indicator with a combination of other indicators for finding low volatility entry areas and high volatility exit areas.

I've made these indicators available for download for Free at MediaFire.com

BollingerBandwidth Indicators

I've created a new website where I will be posting free Ninjatrader Indicators and strategies. My goal is to make a new indicator or strategy once weekly to share with others. If Traders have ideas or suggestions for me please leave a comment.

BollingerBandwidth Indicator for NinjaTrader

NinjaTrader didn't have my favorite indicator already pre-built in, so today I made my first custom indicator for NinjaTrader. The BollingerBandwidth indicator is essentially the same as the Standard Deviation indicator already built in.

The Basic Formula for the BollingerBandwidth indicator is:

Bollinger Band Width = (Upper Band - Lower Band)/Middle Band



As you can see, the Bollingerbandwidth indicator drawn matches the underlying Standard Deviation indicator. The direction of the two will always match each other regardless of the parameters used. With the Bollingerbandwidth indicator that I made, the only real thing that is added is a standard deviation parameter which can be used to reduce or amplify the shape of the indicator to match the standard deviation your using on your Bollingerbands. You could come up with a number of ideas to use the extra StdDev. parameter I've added.



In addition to the basic Bollingerbandwidth indicator I made 2 variations of this indicator which I prefer to use over the standard indicator (All 3 indicators shown in chart above). The first variation I made is an indicator which gives you the raw value between the Upper and Lower Bollingerbands.

Bollinger Band Width Raw = Upper Band - Lower Band

This indicator can be used a number of ways. For example, maybe you want to look for trades where there is a move in a stock of XX pts, or maybe you want to look for when the Raw bollingerbandwidth on ES is greater then XX pts.

The next indicator is my favorite variation of this indicator because it tells me the percentage between the upper and lower bollingerbands.

Bollinger Band Width Percent = ((Upper Band / Lower Band) -1) *100

I like to use this indicator because it is the easiest to understand. For example the standard bollingerbandwidth indicator normally gives values between 0.001-0.01, while the BollingerbandwidthPercent indicator gives you a pecentage of the difference between the upper and lower bollingerband, normally between 0.1-2.0% depending on the range of the move in the stock or futures contract. I like to use this indicator with a combination of other indicators for finding low volatility entry areas and high volatility exit areas.

I've made these indicators available for download for Free at MediaFire.com

BollingerBandwidth Indicators

I've created a new website where I will be posting free Ninjatrader Indicators and strategies. My goal is to make a new indicator or strategy once weekly to share with others. If Traders have ideas or suggestions for me please leave a comment.

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.

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.

Saturday 13 December 2008

Chart Setups for Quotetracker

I have a number of different chart setups with varying signals used. This is my most recent chart setup that I am testing out for the ATS. Indicators for buys/sells are based off a number of things like bollinger bands and the NYSE TICK trend.
The is my older ADX signal based chart.
Another ADX/Trend based chart.
This is the generic 7min vs 30min trend based chart. You will get the code for these signals when you download my Quotetracker chart setup file from the download link.
This is a plain Volume Profile based chart.

Chart Setups for Quotetracker

I have a number of different chart setups with varying signals used. This is my most recent chart setup that I am testing out for the ATS. Indicators for buys/sells are based off a number of things like bollinger bands and the NYSE TICK trend.
The is my older ADX signal based chart.
Another ADX/Trend based chart.
This is the generic 7min vs 30min trend based chart. You will get the code for these signals when you download my Quotetracker chart setup file from the download link.
This is a plain Volume Profile based chart.

Wednesday 3 December 2008

HPT's QuoteTracker Chart Setup Video Tutorial



QuoteTracker Chart Setup File- (HPT's Basic Chart setup with indicators)

NOTE- If you already have a backup file in QT, save your own BACKUP FILE first(make a copy, paste on desktop, rename it to your liking to go back to at a later time).

If the download above does not work here is the code for the paintbars

here is the buy signal-

if Bar High>bar high[30] and Bar High>bar high[60] and bar low<bar low[7] and bar high>bar high[1] set color to Blue

sell signal-

if bar low<bar low[30] and bar low<bar low[60] and bar low<bar low[1] and bar high>bar high[7] set color to Red


It took me 2 hours to figure out how to paste this code in blogger- Next time I will know I have to use a Parse service and then Block Quote the selected code in order for blogger to display it properly.

HPT's QuoteTracker Chart Setup Video Tutorial



QuoteTracker Chart Setup File- (HPT's Basic Chart setup with indicators)

NOTE- If you already have a backup file in QT, save your own BACKUP FILE first(make a copy, paste on desktop, rename it to your liking to go back to at a later time).

If the download above does not work here is the code for the paintbars

here is the buy signal-

if Bar High>bar high[30] and Bar High>bar high[60] and bar low<bar low[7] and bar high>bar high[1] set color to Blue

sell signal-

if bar low<bar low[30] and bar low<bar low[60] and bar low<bar low[1] and bar high>bar high[7] set color to Red


It took me 2 hours to figure out how to paste this code in blogger- Next time I will know I have to use a Parse service and then Block Quote the selected code in order for blogger to display it properly.

Downloads

QuoteTracker Chart Setup File- (HPT's Basic Chart setup with indicators)

NOTE- If you already have a backup file in QT, save your own BACKUP FILE first(make a copy, paste on desktop, rename it to your liking to go back to at a later time).

For more info, go to My Quote Tracker Chart Setup page.

HPT ATS Perl Script - (script needed for automated trade system)

For more info, go to my Free Automated Trading System page.

HPT's 7 vs 60min Trend indicator for NinjaTrader .

For more info, go to my "HPT 7min Vs 60min Trend Indicator page"

Downloads

QuoteTracker Chart Setup File- (HPT's Basic Chart setup with indicators)

NOTE- If you already have a backup file in QT, save your own BACKUP FILE first(make a copy, paste on desktop, rename it to your liking to go back to at a later time).

For more info, go to My Quote Tracker Chart Setup page.

HPT ATS Perl Script - (script needed for automated trade system)

For more info, go to my Free Automated Trading System page.

HPT's 7 vs 60min Trend indicator for NinjaTrader .

For more info, go to my "HPT 7min Vs 60min Trend Indicator page"

Sunday 30 November 2008

ES Volume Profile Chart

ES Volume Profile Chart

Thursday 27 November 2008

Who is HPT?

Hi, I go by the name of HPT. I live in California and I'm a full time trader.
I've been trading stocks, futures and options for years.
I primarily day trade stocks and stock futures such as ES, YM, and NQ.
I also day trade bond futures ZF, ZN, and ZB.

I use QuoteTracker and NinjaTrader for my charting software, Zenfire as my data feed for futures, and Interactive Brokers as my stock data feed and broker. I'm also using NinjaTrader to backtest trading ideas for my automated trading system. (learn about the free automated trading system I setup with Quotetracker)

I run a live trading channel where you can see me trade live and where you can chat with several other traders-

Justin.tv HPT Trading Channel



Ustream.tv HPT Trading Channel (Ustream channel is inactive currently)


For trading I use two 22 inch monitors and a fast computer. To read more about my setup checkout My Chart Setup.



I have several trading techniques that I use for day trading that I go into great detail on my "High Probability Trade Setups" post.



I also have recorded videos of my live trading and put them on my youtube channel.

Who is HPT?

Hi, I go by the name of HPT. I live in California and I'm a full time trader.
I've been trading stocks, futures and options for years.
I primarily day trade stocks and stock futures such as ES, YM, and NQ.
I also day trade bond futures ZF, ZN, and ZB.

I use QuoteTracker and NinjaTrader for my charting software, Zenfire as my data feed for futures, and Interactive Brokers as my stock data feed and broker. I'm also using NinjaTrader to backtest trading ideas for my automated trading system. (learn about the free automated trading system I setup with Quotetracker)

I run a live trading channel where you can see me trade live and where you can chat with several other traders-

Justin.tv HPT Trading Channel



Ustream.tv HPT Trading Channel (Ustream channel is inactive currently)


For trading I use two 22 inch monitors and a fast computer. To read more about my setup checkout My Chart Setup.



I have several trading techniques that I use for day trading that I go into great detail on my "High Probability Trade Setups" post.



I also have recorded videos of my live trading and put them on my youtube channel.

Tuesday 25 November 2008

ATS Results

Testing indicators can be a big waste of time, but its a necessary evil. The ATS kicked butt again today. I turned it off 30min before the close.

42 Trades: 28 wins, 14 losses. Net P/L= $391

I lowered the stop from 24pts to 18pts mid-day. I also messed up by not letting the ATS exit a trade with its original exit signal(I put in a different exit signal mid-day), instead of 100-140pts it only got 74pts.

ATS Results

Testing indicators can be a big waste of time, but its a necessary evil. The ATS kicked butt again today. I turned it off 30min before the close.

42 Trades: 28 wins, 14 losses. Net P/L= $391

I lowered the stop from 24pts to 18pts mid-day. I also messed up by not letting the ATS exit a trade with its original exit signal(I put in a different exit signal mid-day), instead of 100-140pts it only got 74pts.

Saturday 22 November 2008

ATS video from Nov 14

ATS video from Nov 14

Friday 21 November 2008

ATS Results

The ATS had another positive day. Making it positive each day this week. I ran the ATS all day today and it took 44 trades. 26 wins, 17 losses, and 1 Breakeven. the avg. win was 90 and the avg loss was -100. I did move the stop a few times during the day on 3 or 4 trades, and I shouldn't have because the trades would have worked better without my intervention. Next week I will be testing out a different exit strategy because as you will see from the Maximum Favorable Excursion Stats, the ATS could've made a lot more pts per trade if the profit target/trailing stop was optimized. I do agree that there is no perfect parameters and that what works one day will not work the next but there is still a lot of work to do on these ATS signals. The buy signal around 12:30 should have gotten 200 to 250 pts easy but only got 11 pts because the trailing stop was too tight. I'm thinking of changing the exit signal parameters for different time periods of the day because the first hour and last hour will be better suited to exit trades based on my exit signals as opposed to my trailing stop method. I'm happy to hear that people are trying the ATS out on there own and having positive results. I look forward to sharing ideas on automated trading and the signals the ATS makes. Also, ustream has been having problems the last 2 days, so it is likely I will be staying with justin.tv until uStream gets its act together. I did broadcast on both channels today, but I'm planning on making justin.tv the primary live video feed as long as they keep there servers running with no problems.



ATS Results

The ATS had another positive day. Making it positive each day this week. I ran the ATS all day today and it took 44 trades. 26 wins, 17 losses, and 1 Breakeven. the avg. win was 90 and the avg loss was -100. I did move the stop a few times during the day on 3 or 4 trades, and I shouldn't have because the trades would have worked better without my intervention. Next week I will be testing out a different exit strategy because as you will see from the Maximum Favorable Excursion Stats, the ATS could've made a lot more pts per trade if the profit target/trailing stop was optimized. I do agree that there is no perfect parameters and that what works one day will not work the next but there is still a lot of work to do on these ATS signals. The buy signal around 12:30 should have gotten 200 to 250 pts easy but only got 11 pts because the trailing stop was too tight. I'm thinking of changing the exit signal parameters for different time periods of the day because the first hour and last hour will be better suited to exit trades based on my exit signals as opposed to my trailing stop method. I'm happy to hear that people are trying the ATS out on there own and having positive results. I look forward to sharing ideas on automated trading and the signals the ATS makes. Also, ustream has been having problems the last 2 days, so it is likely I will be staying with justin.tv until uStream gets its act together. I did broadcast on both channels today, but I'm planning on making justin.tv the primary live video feed as long as they keep there servers running with no problems.



Novermber 21 Ustream Server is down

Novermber 21 Ustream Server is down. We are live at the HPT Justin.tv channel.

Novermber 21 Ustream Server is down

Novermber 21 Ustream Server is down. We are live at the HPT Justin.tv channel.

Thursday 20 November 2008

ATS work in progress

The ATS is coming along nicely. My current problems are trying to find the best parameters on Bracket Trader for setting the trailing stop and profit protection offsets. Most of the trade signals were correct, but some of the good trades got stopped out around breakeven from the trailing stop getting hit. The question that I will have to continue to test for is how wide of a trailing stop will be most profitable at locking in winning trades without getting stopped out before the move has completed its move.


ATS work in progress

The ATS is coming along nicely. My current problems are trying to find the best parameters on Bracket Trader for setting the trailing stop and profit protection offsets. Most of the trade signals were correct, but some of the good trades got stopped out around breakeven from the trailing stop getting hit. The question that I will have to continue to test for is how wide of a trailing stop will be most profitable at locking in winning trades without getting stopped out before the move has completed its move.


Monday 17 November 2008

Automated Trading System Trade Review


Today I ran one of my trading systems on ES. I was surprised to see it positive considering it had 25 losses and only 10 wins. I was glad to see the avg. profit three times bigger than the avg. loss. I set each trade to have a 1pt hard stop on each trade with an exit based off a signal or an 8pt limit target.
I'm still working on a few things but I've been making pretty good progress in determining the best stops for this system. Many of the trades were winners of 3pts of more, only to be stopped out because I set the "exit signal" to far. I also got stopped out on a few trades because I had a time stop set to breakeven after 3 minutes. I will likely get rid of the time stop. I've noticed the majority of the really good trades are winners immediately even with the ATS's crappy entries. Most good trades don't have more than 3 ticks of heat and are in the black within the first 15 seconds. Almost all of the bad trades are stopped out within 10-40 seconds. I will need to work on the entry method for the system and try buying on the bid and selling on the ask instead of using all market orders.

Below you can see the Trade log from bracket trader, the alert log from quotetracker, and some of the signals the ATS took off the ES chart.