NexusFi: Find Your Edge


Home Menu

 





NoGapRangeBars / RangeNoGap


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one RJay with 27 posts (42 thanks)
    2. looks_two trs3042 with 6 posts (9 thanks)
    3. looks_3 cclsys with 5 posts (0 thanks)
    4. looks_4 bbviolation with 5 posts (0 thanks)
      Best Posters
    1. looks_one RJay with 1.6 thanks per post
    2. looks_two trs3042 with 1.5 thanks per post
    3. looks_3 Silvester17 with 1.4 thanks per post
    4. looks_4 TheGaryGuy with 1.2 thanks per post
    1. trending_up 51,467 views
    2. thumb_up 86 thanks given
    3. group 28 followers
    1. forum 100 posts
    2. attach_file 30 attachments




 
Search this Thread

NoGapRangeBars / RangeNoGap

  #41 (permalink)
 
cclsys's Avatar
 cclsys 
Sydney, NS
 
Experience: Intermediate
Platform: Ninja
Broker: Zen-Fire
Trading: TF,S,GC
Posts: 605 since Nov 2009
Thanks Given: 248
Thanks Received: 393


kronie View Post
what is that askbartimer?
does it require, under ninja, constant feed, so if you rescale, resize or chnge symbols, you loose the data from the volume analysis of the prior bars, ticks, up, downs, etc?

please perhaps post a download link, unless restricted to VIP section only (that sort of thing, don't want to violate rules or anything)

thanks in advance

Kronie: I apologise for not replying earlier. I missed it somehow.

The AshBarTimer (Ash is short for my actual name) is for minute charts, it was just left over when I started playing with the Renko chart type and I neglected to remove it. The bottom right text printout 'BTx' is a small alteration I made to the provided code to show that it ain't working on this chart.

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Are there any eval firms that allow you to sink to your …
Traders Hideout
Futures True Range Report
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Build trailing stop for micro index(s)
Psychology and Money Management
 
  #42 (permalink)
 
cclsys's Avatar
 cclsys 
Sydney, NS
 
Experience: Intermediate
Platform: Ninja
Broker: Zen-Fire
Trading: TF,S,GC
Posts: 605 since Nov 2009
Thanks Given: 248
Thanks Received: 393

PS re the RangeBarHighLow. Unless I am mistaken - and have now run out of time today to check - the latest version of this works fine with Renko, Range, SBS Renko, RangeAlt. Not very important but for those who work with these charts they might find it helpful. And if I am wrong and you want this feature with Renkos, let me know and I will update the code in the downloads section.

Visit my NexusFi Trade Journal Reply With Quote
  #43 (permalink)
 j0hnth0m 
Elk River, MN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp Futures/Zen-Fire
Trading: ES
Posts: 30 since Sep 2009
Thanks Given: 7
Thanks Received: 60


FYI...
I have updated RJays RangeNoGap for NT7. Since this was his work originally I'll post it when he gives the okay.

Reply With Quote
  #44 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


j0hnth0m View Post
FYI...
I have updated RJays RangeNoGap for NT7. Since this was his work originally I'll post it when he gives the okay.

j0hnth0m,

I'm beginning my conversion to NT7 today.

NoGapRangeBars was at the top of the list.

I sent you my personal email.

Till Then,

RJay

Started this thread Reply With Quote
Thanked by:
  #45 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


j0hnth0m View Post
FYI...
I have updated RJays RangeNoGap for NT7. Since this was his work originally I'll post it when he gives the okay.

Hi All,

Looked over j0hnth0m's NT7.0 version of NoGapRangeBars and it looks perfect.

It is now available in the download area.



Be sure to thank j0hnth0m for his contribution.

RJay

Started this thread Reply With Quote
  #46 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541

Does it work ONLY with nt7, or with both nt 6.5 and nt7 (in other words, the old one should be deleted)?

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #47 (permalink)
 
sharky's Avatar
 sharky 
MIAMI,FL
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, tradingview
Broker: Private
Trading: Crypto and natural gas
Posts: 1,063 since Jun 2009
Thanks Given: 625
Thanks Received: 3,906

i just tried it on 6.5 it works fine

KILLING THE MARKETS DAILY
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #48 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


Big Mike View Post
Does it work ONLY with nt7, or with both nt 6.5 and nt7 (in other words, the old one should be deleted)?

Mike

Hi Mike,

Because of the differences between the files for each version, I think it would be prudent to leave both versions up for now.

RJay

Started this thread Reply With Quote
Thanked by:
  #49 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110

Hello,

I did not know where to put this. Anyway...

It's about john thom's RangeMarker indicator which can go hand in hand with RangeNoGap bars too.

I've made very light modifications on this one which appeal to me and maybe to you:
* the above and below box prices show the prices to be hit to create a new bar instead of displaying the top and bottom of the range bar. Understand, above price is now "top of the possible range + 1 tick" and below price "bottom of the possible range - 1 tick"
* the 3 different range captions depending on when the range bar is about to create a new one are now customised by plot style instead of color (color is fixed to purple but can be changed inside the code).
1) newly created range still possibly moving a lot in dot style
2) about to be locked range in dash style
3) locked range in plain line style

Here is the code for NT6.5

 
Code
//
// john thom @ johnthom.com - 11/7/2009  - please do not remove this line if you make copies of this code.  Thanks.
//
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion


namespace NinjaTrader.Indicator
{
    [Gui.Design.DisplayName("SARdynamite | domino")]
    [Description("UT x dominos SARdynamite (range continu sans gap)")]    
    public class SARdynamite_domino : Indicator
    {
        #region Variables
        bool isRangeChart;
        bool firstTime;
        private SolidBrush chartFontBrushH = new SolidBrush(Color.Lime);
        private SolidBrush chartFontBrushB = new SolidBrush(Color.Red);
        #endregion
        
        protected override void Initialize()
        {
            AutoScale = false;
            CalculateOnBarClose    = false;
            Name = " ";
            Overlay    = true;
            PriceTypeSupported= false;
            PaintPriceMarkers = false;
            firstTime = true;
            isRangeChart = false;
        }

        public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
        {
            try
            {
                base.Plot(graphics, bounds, min, max);
            
                if (Bars == null)return;
                if (isRangeChart)
                {
                    int margin = (Bars.Period.Value-(int)((High[0]-Low[0])/TickSize));
                    double highPrice2 = High[0]+(margin*TickSize)+TickSize;
                    double lowPrice2 =  Low[0]-(margin*TickSize)-TickSize;
                    double highPrice = High[0]+(margin*TickSize);
                    double lowPrice =  Low[0]-(margin*TickSize);    
                    int rangeHighY = (bounds.Y+bounds.Height)-((int)(((highPrice-min)/ChartControl.MaxMinusMin(max, min))*bounds.Height))-1;
                    int rangeLowY = (bounds.Y+bounds.Height)-((int)(((lowPrice-min)/ChartControl.MaxMinusMin(max,min))*bounds.Height))-1;
                    int height = rangeLowY-rangeHighY;
                    int rangeX = ChartControl.GetXByBarIdx(CurrentBar)-(ChartControl.BarSpace/2) ;
                    int width = (ChartControl.BarSpace);
                    int adj = 0;
                    using (Pen tempPen = new Pen(Color.DarkViolet))
                    {
                        switch(margin)
                        {
                            case 0:
                                tempPen.Width = 2;
                                adj = 1;
                                break;
                            case 1:
                                tempPen.Width = 2;
                                tempPen.DashStyle = DashStyle.Dash;
                                adj = 1;
                                break;
                            default:
                                tempPen.Width = 2;
                                tempPen.DashStyle = DashStyle.Dot;
                                adj = 1;
                                break;                                
                        }
                        graphics.DrawRectangle(tempPen, rangeX, rangeHighY, width+adj, height);
                    }    
                    string hPrice = highPrice2.ToString();
                    graphics.DrawString(hPrice, ChartControl.Font, chartFontBrushH, rangeX, rangeHighY-graphics.MeasureString(hPrice, ChartControl.Font).Height);
                    string lPrice = lowPrice2.ToString();
                    graphics.DrawString(lPrice, ChartControl.Font, chartFontBrushB, rangeX, rangeLowY);
                }
            } 
            catch (Exception ex)
            {
                Print(ex.ToString());
            }
        }            
        
        protected override void OnBarUpdate()
        {
            try 
            {
                if (ChartControl==null || ChartControl.Bars==null || ChartControl.Bars.Length==0) return;
                if (firstTime)
                {
                    if (Bars.Period.Id == PeriodType.Range || (Data.BarsType.GetInstance(ChartControl.Bars[0].Period.Id).BuiltFrom==Data.PeriodType.Tick && ChartControl.Bars[0].Period.ToString().IndexOf("Range")>=0))
                    {
                        isRangeChart = true;
                        firstTime = false;
                    }
                }
            }
            catch (Exception ex)
            {
                Print(ex.ToString());
            }
        }
    }
}
I would be very happy if someone could convert it to be used for NT7 as I sadly don't have the skill/knowledge to perform the switch because I can't imagine using range bars without this add-on.
Thanks for any help.

Reply With Quote
Thanked by:
  #50 (permalink)
qwertz
Lolistan
 
Posts: 5 since Nov 2009
Thanks Given: 1
Thanks Received: 1


Just downloaded the RangeNoGap for NT7, stopping by to say thanks as im very satisfied with the NT6.5 version.

Btw. import didnt work on 6.5, gotta try copy/paste the code

Reply With Quote
Thanked by:




Last Updated on August 20, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts