NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 06-10-2008, 11:04 PM   #1
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Lightbulb The best Heiken Ashi implementation I have seen!!!



For those that know how to convert MetaTrader indicators to NT I think this one is DEFINITELY worth it.

Although a proper conversion would be optimal, I'd like to mention that the T3 slope value (positive/negative) gets really close to this as does MACD using 5,13 with a smooth of 1. When the plot is above zero the bar is blue, when below its red etc..
Attached Files
File Type: zip Heiken_Ashi_Smoothed.zip (1.2 KB, 1129 views)
Elliott Wave is offline  
Reply With Quote
Old 06-11-2008, 07:18 PM   #2
mason
Member
 
Join Date: Feb 2008
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

AFAIK, it is similar to MA cross, but I couldn't remember the exact parameters, someone in tsd have exposed it.

Other interpretation is using multiple timeframe, it looks nice in trending, but as you know what happened in ranging then.
mason is offline  
Reply With Quote
Old 06-12-2008, 05:08 AM   #3
calibri
Junior Member
 
Join Date: Apr 2008
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default think it is already done

hi elliott,

there went on a discussion about the modheikenashi and a change from eld that is similar yours. I didn`t follow thoroughly but i think ben from affordable indicators did it.

c.
calibri is offline  
Reply With Quote
Old 06-16-2008, 05:59 AM   #4
Bondi9999
Junior Member
 
Join Date: Jun 2008
Location: australia
Posts: 16
Thanks: 0
Thanked 0 times in 0 posts
Default HA

Hi Elliot Wave,

My first post and 3rd day with the software so excuse any ignorance...

I take it the cose posted was for MT as I tried importing it into NT without luck.

Regards...
Bondi9999 is offline  
Reply With Quote
Old 06-22-2008, 11:53 AM   #5
scjohn
Senior Member
 
Join Date: Dec 2004
Location: , ,
Posts: 224
Thanks: 0
Thanked 11 times in 8 posts
Default

My attempt at converting Heiken Ashi Smoothed to NT.

I used NT's HeikenAshi indicator as the base upon which to build this indicator. Th NT code was heavily modified based upon the MQ4 code that was attached in the 1st post.

You have 12 different moving averages to choose from in calculating the indicator.

Not sure about the plot. Since the NT version is based upon the HeikenAshi indicator, this indicator is plotted as the NT HeikenAshi indicator would be plotted. The MQ4 version would appear to plot as a histogram (AKA Bar in NT).

Warning. I am not a MQ4 expert and I do not have any means of running MQ4 indicators. Therefore it is quite possible that my implementation is NOT correct.
Attached Images
File Type: jpg Heiken Ashi Smoothed.JPG (83.8 KB, 1515 views)
Attached Files
File Type: zip HeikenAshiSmoothed.zip (26.3 KB, 630 views)
scjohn is offline  
Reply With Quote
Old 06-22-2008, 07:56 PM   #6
Ninja B
Member
 
Join Date: Apr 2008
Posts: 99
Thanks: 0
Thanked 0 times in 0 posts
Default

^^^ Thank you so much. Great job. I can't wait to use this
Ninja B is offline  
Reply With Quote
Old 06-23-2008, 06:54 AM   #7
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

Thanks for converting this. It looks good. I'm trying to learn to do MQL to C# myself, so looking at this along side the original code should help...

Elliott Wave is offline  
Reply With Quote
Old 10-08-2008, 10:36 AM   #8
bonnyshi
Junior Member
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the great job!

I have compare HeikenAshi in MT4 and NinjiaTrader, everything is same but on NinjiaTrader it hiden Last Bar ( Bar[0] ) until next bar is formed, on every timeframe, NinjiaTrader less one bar compare to MT4.

Would you fix this problem?
Attached Images
File Type: gif 1.png (57.0 KB, 1139 views)
bonnyshi is offline  
Reply With Quote
Old 12-10-2008, 06:31 AM   #9
clfield
Member
 
Join Date: Sep 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Just started working with this Indicator. I found the info on the HAMA PAD system to be very interesting. They display the actual price bars as well which really comes in handy.
Does anyone know how to modify this indicator to do that?
I have tried changing all the settings in the Initialize area to no avail.
clfield is offline  
Reply With Quote
Old 12-10-2008, 06:45 AM   #10
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

Use the hide price option in the visual section of this version.
Attached Files
File Type: zip HeikenAshiSmoothedWithPrice.zip (26.4 KB, 689 views)
Elliott Wave is offline  
Reply With Quote
Old 12-10-2008, 09:32 AM   #11
clfield
Member
 
Join Date: Sep 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Many thanks for the help. I am working on learning the programming...but I have along way to go.
Regards
clfield is offline  
Reply With Quote
Old 12-10-2008, 09:52 AM   #12
clfield
Member
 
Join Date: Sep 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by bonnyshi View Post
Thanks for the great job!

I have compare HeikenAshi in MT4 and NinjiaTrader, everything is same but on NinjiaTrader it hiden Last Bar ( Bar[0] ) until next bar is formed, on every timeframe, NinjiaTrader less one bar compare to MT4.

Would you fix this problem?
I am wondering if you could run this indicator in the OnMarketUpdate Section and get it to plot the bar as it forms?
clfield is offline  
Reply With Quote
Old 12-10-2008, 09:57 AM   #13
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

Try changing 'Calculate on Bar Close' to false. That might work.
Elliott Wave is offline  
Reply With Quote
Old 12-10-2008, 10:51 AM   #14
clfield
Member
 
Join Date: Sep 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

That does not seem to bring it up. If it is forming as the Market data is updated it would be changing similar to the price bars.
I have a feeling that it can not be done using the "draw tools" . But I am a novice to this so I will defer to the vetreans here.
Thanks for your post
clfield is offline  
Reply With Quote
Old 12-10-2008, 12:39 PM   #15
clfield
Member
 
Join Date: Sep 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

My apologies that does work. I jhad to reload the Indicator and set that switch at that time.
Learn something new everday
clfield is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: Ninja Trader very slow using Heiken Ashi Currywurst Charting 6 07-20-2008 04:41 AM
Heiken Ashi arilano Strategy Development 14 06-23-2008 12:18 PM
Strategy implementation stefy Strategy Development 1 06-03-2008 02:37 PM
Heikin-Ashi Candle technique Help to CREATE!! akwonline Indicator Development 4 03-04-2008 08:07 AM
Using Heinkin ashi indicator in strategy latkinso Strategy Development 1 01-08-2008 06:56 AM


All times are GMT -6. The time now is 12:07 PM.