Big Mike's Trading Forum
 

Go Back   Big Mike's Trading Forum

> Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming


Notices
     

Inside Bar convert from MT4
Started:August 15th, 2010 (10:28 AM) by zt379 Views / Replies:3,585 / 12
Last Reply:January 20th, 2011 (10:59 AM) Attachments:4

Welcome to Big Mike's Trading Forum.

Welcome, Guest!

This forum was established to help traders by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

BMT is fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 4  
 
Thread Tools Search this Thread

Inside Bar convert from MT4

Old August 15th, 2010, 10:28 AM   #1 (permalink)
Elite Member
UK London
 
Trading Experience: None
Platform: NT and XTrader
Favorite Instrument: Piano
 
zt379's Avatar
 
Posts: 1,085 since Sep 2009
Thanks: 1,204 given, 1,312 received

Inside Bar convert from MT4

Can anyone convert MT4 to NinjaTrader 6.5?

This thread on Forex Factory Site post # 169 has 3 indicators.
The Amazing Magic of 3MW of now - Page 12 @ Forex Factory

SHI Channel
Brian Inside Bar
Square

It would be interesting to have these converted to Ninja (6.5) if anyone can help?
Many thx

Edit:
If it helps, this is my understanding of the above 3 indicators.
Brian Inside Bar:
a horizontal line (blue) is plotted at the high and low of the previous bar.
a horizontal line (red) is plotted for the current bar open price, if the current bar opens lower than previous bars open.
a horizontal line (yellow) is plotted for the current bar open price, if the current bar opens higher than previous bars open.

Square:
Two horizontal lines (yellow) plotting the highest high and lowest low of the preceding 3 bars, not including the current bar.

SHI Channel.
I do not know how this is configured and don't have the MT4 platform to see it plotting.

HTH..thx

Attached Thumbnails
Inside Bar convert from MT4-brian-indise-bar-square.jpg  

Last edited by zt379; August 15th, 2010 at 01:53 PM.
Reply With Quote
     

Old August 15th, 2010, 10:28 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

     

Old August 20th, 2010, 05:17 PM   #3 (permalink)
Market Wizard
Berlin, Europe
 
Trading Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Instrument: Keyboard
 
Fat Tails's Avatar
 
Posts: 8,377 since Mar 2010
Thanks: 3,940 given, 19,576 received
Forum Reputation: Legendary



zt379 View Post
Can anyone convert MT4 to NinjaTrader 6.5?

This thread on Forex Factory Site post # 169 has 3 indicators.
The Amazing Magic of 3MW of now - Page 12 @ Forex Factory

SHI Channel
Brian Inside Bar
Square

It would be interesting to have these converted to Ninja (6.5) if anyone can help?
Many thx

Edit:
If it helps, this is my understanding of the above 3 indicators.
Brian Inside Bar:
a horizontal line (blue) is plotted at the high and low of the previous bar.
a horizontal line (red) is plotted for the current bar open price, if the current bar opens lower than previous bars open.
a horizontal line (yellow) is plotted for the current bar open price, if the current bar opens higher than previous bars open.

Square:
Two horizontal lines (yellow) plotting the highest high and lowest low of the preceding 3 bars, not including the current bar.

SHI Channel.
I do not know how this is configured and don't have the MT4 platform to see it plotting.

HTH..thx

SHI Channel

Had a look at the indicator. I am interested in the SHI Channel indicator and may try to code it. I have a modified version in mind that fits my personal trading style.

Square

This is an easy task. It is nothing else than a Donchian Channel with the period 3. I would actually suggest to use a rectangle, colour it (user selectable) and put it behind the price bars.

I think there is a better way of drawing trading ranges, which is in sync with the market, have already coded another indicator.

Brian Inside Bar

Honestly, I think that this is nonsense. I do use inside bars, but an inside bar becomes an inside bar, when the bar has closed, showing that the volatility during the period covered by the last bar was lower than the volatility covered by the previous bar. I use inside and narrow range bars, following the preachings of Toby Crabel.

Let me know, whether you are still interested.


Last edited by Fat Tails; August 21st, 2010 at 07:35 AM.
Reply With Quote
     
The following user says Thank You to Fat Tails for this post:
     

Old August 21st, 2010, 08:08 AM   #4 (permalink)
Elite Member
UK London
 
Trading Experience: None
Platform: NT and XTrader
Favorite Instrument: Piano
 
zt379's Avatar
 
Posts: 1,085 since Sep 2009
Thanks: 1,204 given, 1,312 received


Fat Tails View Post
SHI Channel

Had a look at the indicator. I am interested in the SHI Channel indicator and may try to code it. I have a modified version in mind that fits my personal trading style.

Yes it looked interesting.
Hope your able to convert it.
thx

Quoting 
Square

This is an easy task. It is nothing else than a Donchian Channel with the period 3. I would actually suggest to use a rectangle, colour it (user selectable) and put it behind the price bars.

I think there is a better way of drawing trading ranges, which is in sync with the market, have already coded another indicator.

Thx for the Donchian suggestion.
I tried it with your settings (although I don't know what you mean by "rectangle" ?) but it does not plot in the same way as the Square Indicator for MT4.


Quoting 
Brian Inside Bar

Honestly, I think that this is nonsense. I do use inside bars, but an inside bar becomes an inside bar, when the bar has closed, showing that the volatility during the period covered by the last bar was lower than the volatility covered by the previous bar. I use inside and narrow range bars, following the preachings of Toby Crabel.

Thx for your comments.

Yes I am aware of what an inside bar is. Thx.
I believe the indicator is more to do with the current bars open in relation to the previous bars open,
with the addition of the horizontal lines at the high and low of the previous bar.


Quoting 

Let me know, whether you are still interested.

Thx very much for the reply Fat Tails.

As you say, we all have preferences in what and how to use things.
With all 3 indicators, to see them visually plotting on a chart is the only real way I can assess their value.
Always interesting to see if things help.

I hope your able to convert them to NT 6.5.
Many thx

Reply With Quote
     

Old August 21st, 2010, 08:44 AM   #5 (permalink)
Market Wizard
Berlin, Europe
 
Trading Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Instrument: Keyboard
 
Fat Tails's Avatar
 
Posts: 8,377 since Mar 2010
Thanks: 3,940 given, 19,576 received
Forum Reputation: Legendary

Donchian Rectangle

Plots high and low of the last n bars. You can set n=3 to obtain your indicator. This is a version for NT7, but you can just edit a new indicator with NT 6.5. and then copy the code.

Attached Thumbnails
Inside Bar convert from MT4-donchianrectangle.jpg  
Attached Files
Register to download File Type: zip DonchianRectangle.zip (5.7 KB, 33 views)
Reply With Quote
     
The following 2 users say Thank You to Fat Tails for this post:
     

Old August 21st, 2010, 08:48 AM   #6 (permalink)
Elite Member
UK London
 
Trading Experience: None
Platform: NT and XTrader
Favorite Instrument: Piano
 
zt379's Avatar
 
Posts: 1,085 since Sep 2009
Thanks: 1,204 given, 1,312 received


Fat Tails View Post
Plots high and low of the last n bars. You can set n=3 to obtain your indicator. This is a version for NT7, but you can just edit a new indicator with NT 6.5. and then copy the code.

Many thx Fat Tails.
Just to show you how useless I am with this coding, I have no idea how to do what you describe
to convert this from NT7 to NT6.5?

Reply With Quote
     

Old August 21st, 2010, 09:17 AM   #7 (permalink)
Market Wizard
Berlin, Europe
 
Trading Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Instrument: Keyboard
 
Fat Tails's Avatar
 
Posts: 8,377 since Mar 2010
Thanks: 3,940 given, 19,576 received
Forum Reputation: Legendary


zt379 View Post
Many thx Fat Tails.
Just to show you how useless I am with this coding, I have no idea how to do what you describe
to convert this from NT7 to NT6.5?

I am currently not on my main machine, so no NT 6.5. here, and not going to install it.

What you could do: Install an editor for C# on your machine. For example Sharp Develop. Then unzip the code and open it with the editor.

In parallel you can start NinjaTrader 6.5. and edit any system indicator via Tools -> Edit NinjaScript. Then save the indicator under a new name, for example "Donchian Rectangle".

Then delete all code for the indicator, starting with namespace NinjaTrader.Indicator and replace it with the code you have edited with SharpDevelop. Save and compile via F5.

Reply With Quote
     

Old August 27th, 2010, 06:12 AM   #8 (permalink)
Elite Member
UK London
 
Trading Experience: None
Platform: NT and XTrader
Favorite Instrument: Piano
 
zt379's Avatar
 
Posts: 1,085 since Sep 2009
Thanks: 1,204 given, 1,312 received


Fat Tails View Post
I am currently not on my main machine, so no NT 6.5. here, and not going to install it.

What you could do: Install an editor for C# on your machine. For example Sharp Develop. Then unzip the code and open it with the editor.

In parallel you can start NinjaTrader 6.5. and edit any system indicator via Tools -> Edit NinjaScript. Then save the indicator under a new name, for example "Donchian Rectangle".

Then delete all code for the indicator, starting with namespace NinjaTrader.Indicator and replace it with the code you have edited with SharpDevelop. Save and compile via F5.

Thx for your suggestions to create the Donchian Rectangle from NT7 to NT6.5, but I've not been able to figure this out.

Hoping for your assistance to create the MT4 "Square" indicator for NT6.5.
To re-cap, this is having a horizontal line drawn at the highest high and lowest low
of the last 3 bars (or user defined) not including the current bar.

Also any progress converting the MT4 SHI Channel indicator for NT6.5

Many thx

Reply With Quote
     

Old August 27th, 2010, 06:50 AM   #9 (permalink)
Market Wizard
Berlin, Europe
 
Trading Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Instrument: Keyboard
 
Fat Tails's Avatar
 
Posts: 8,377 since Mar 2010
Thanks: 3,940 given, 19,576 received
Forum Reputation: Legendary

Donchian Rectangle for NT 6.5

This should do for NT 6.5. The channel indicator will take some time. I am still playing with opening ranges and rolling pivots.

Attached Files
Register to download File Type: zip DonchianRectangleForNT65.zip (5.1 KB, 8 views)
Reply With Quote
     
The following user says Thank You to Fat Tails for this post:
     

Old January 19th, 2011, 09:55 PM   #10 (permalink)
Elite Member
Los Angeles, CA
 
Trading Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Rithmic
Favorite Instrument: GC
 
plethora's Avatar
 
Posts: 639 since Dec 2010
Thanks: 1,174 given, 400 received


Excuse me but could you advise whether the current version of the DonchianRectangle is compatible with N7? I'm trying to import the 6.5 version to no avail but the problem could definitely be ME.

In any event many, many thanks for your work and contribution to my trading methodology that is slowly evolving.

Reply With Quote
     

Reply



Tags
ai, angle, bars, c#, ces, channel, chart, code, coding, compile, convert, create, el, event, forex, high, horizontal, how to, implied, import, indicator, indicators, line, low, market, metatrader, methodology, mind, ml, mt4, new indicator, ninja, ninjascript, ninjatrader, nt, nt7, open, parallel, period, personal, platform, plot, price, programming, range bars, re-cap, save, settings, start, system, time, trading, volatility
     

Big Mike's Trading Forum > Trading Forums > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Inside Bar convert from MT4

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inside bar indicator code help? hector24 NinjaTrader 4 November 12th, 2012 04:45 PM
Chart Bar with volume indicator inside Bar? hector24 NinjaTrader 11 October 9th, 2011 10:41 AM
Whats the difference between Bar Magnifier & look inside bar testing? crbucks MultiCharts 1 May 4th, 2011 12:22 AM
Inside Bar Indicator Mickey Caine EasyLanguage Programming 3 March 22nd, 2011 03:21 AM
Convert MT4- Indicator-Help : Easy Trend Visualizer Rickb The Elite Circle 4 May 31st, 2010 07:18 AM


All times are GMT -4. The time now is 08:29 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2014 by Big Mike Trading. All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
 
no new posts

Page generated 2014-04-17 in 0.28 seconds with 20 queries on phoenix via your IP 107.20.30.170