What is the difference between bar types RangeAlt and RangeNoGap? - NinjaTrader | futures io social day trading
futures io futures trading


What is the difference between bar types RangeAlt and RangeNoGap?
Updated: Views / Replies:1,564 / 8
Created: by aligator Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

What is the difference between bar types RangeAlt and RangeNoGap?

  #1 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

What is the difference between bar types RangeAlt and RangeNoGap?

What is the difference between bar types RangeAlt and RangeNoGap? Which is better? They seem to produce almost similar bars.

Reply With Quote
 
  #2 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


aligator View Post
What is the difference between bar types RangeAlt and RangeNoGap? Which is better? They seem to produce almost similar bars.

Hi Aligator,

Since one of my creations is involved here, I have an interest. Post some side by side images for discussion. Better yet, post a link to the RangeAlt code. My RangeNoGap is already available in the download area.

RJay

Reply With Quote
 
  #3 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary



RJay View Post
Hi Aligator,

Since one of my creations is involved here, I have an interest. Post some side by side images for discussion. Better yet, post a link to the RangeAlt code. My RangeNoGap is already available in the download area.

RJay

Thanks @RJay.

Here is the RangeAlt bar type that I downloaded here on futures.io (formerly BMT) a couple of days ago, can't recall the link.

Just a word of caution; although this bar type has been around quite awhile and the code is fine, somehow it replaced another bar type that I had in the drop-down menu (Seem like it is using the same bar type number as LineBreakWicked in my case, which is missing now)

Attached Files
Register to download File Type: zip RangeAlt7.zip (2.0 KB, 63 views)
Reply With Quote
 
  #4 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received

Answer
This post has been selected as an answer to the original posters question Answer


aligator View Post
Thanks @RJay.

Here is the RangeAlt bar type that I downloaded here on futures.io (formerly BMT) a couple of days ago, can't recall the link.

Just a word of caution; although this bar type has been around quite awhile and the code is fine, somehow it replaced another bar type that I had in the drop-down menu (Seem like it is using the same bar type number as LineBreakWicked in my case, which is missing now)

RangeAlt Appears to be a simpler, possibly earlier version of range bar. RangeNoGap has all the Updates that are in NT7's current Range bars. See attached code.

ALT Range

if (bars.Instrument.MasterInstrument.Compare(close, bar.Low + rangeValue) > 0)
{
double newClose = bar.Low + rangeValue; // every bar closes either with high or low
UpdateBar(bars, bar.Open, newClose, bar.Low, newClose, time, 0, isRealtime);
AddBar(bars, close, close, close, close, time, volume, isRealtime);
}
else if (bars.Instrument.MasterInstrument.Compare(bar.High - rangeValue, close) > 0)
{
double newClose = bar.High - rangeValue; // every bar closes either with high or low
UpdateBar(bars, bar.Open, bar.High, newClose, newClose, time, 0, isRealtime);
AddBar(bars, close, close, close, close, time, volume, isRealtime);
}
else
UpdateBar(bars, open, (close > bar.High ? close : bar.High), (close < bar.Low ? close : bar.Low), close, time, volume, isRealtime);



RangeNoGap

if (bars.Instrument.MasterInstrument.Compare(close, bar.Low + rangeValue) > 0)
{
int NewBarCount = bars.Count - 2; bool isFirstNewBar = true;double newClose = bar.Low + rangeValue;
UpdateBar(bars, bar.Open, newClose, bar.Low, newClose, time, 0, isRealtime);double newBarOpen = newClose;
while (bars.Instrument.MasterInstrument.Compare(close, newClose) > 0)
{newClose = Math.Min(close, newBarOpen + rangeValue);

AddBar(bars, newBarOpen, newClose, newBarOpen, newClose, time, isFirstNewBar ? volume : 0, isRealtime);

newBarOpen = newClose;NewBarCount = bars.Count - 1;isFirstNewBar = false;
}
}
else if (bars.Instrument.MasterInstrument.Compare(bar.High - rangeValue, close) > 0)
{
int NewBarCount = bars.Count - 2;bool isFirstNewBar = true;double newClose = bar.High - rangeValue;
UpdateBar(bars, bar.Open, bar.High, newClose, newClose, time, 0, isRealtime);double newBarOpen = newClose;
while (bars.Instrument.MasterInstrument.Compare(newClose, close) > 0)
{
newClose = Math.Max(close, newBarOpen - rangeValue);

AddBar(bars, newBarOpen, newBarOpen, newClose, newClose, time, isFirstNewBar ? volume : 0, isRealtime);
newBarOpen = newClose;NewBarCount = bars.Count - 1;isFirstNewBar = false;
}
}
else
UpdateBar(bars, open, high, low, close, time, volume, isRealtime);

Reply With Quote
The following 4 users say Thank You to RJay for this post:
 
  #5 (permalink)
Elite Member
Houston,Tx
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,208 given, 4,293 received


RJay View Post
.... RangeNoGap has all the Updates that are in NT7's current Range bars. ...

@RJay

What is the difference between your RangeNoGap and the standard range bar that comes with NT?

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
 
  #6 (permalink)
Elite Member
Austin, TX
 
Futures Experience: Master
Platform: ninjatrader, r-trader
Favorite Futures: CL, NG, TF, NQ, YM, GC, ES
 
liquidcci's Avatar
 
Posts: 862 since Jun 2011
Thanks: 609 given, 1,051 received

I think the difference on these bars may be how the deal with the trading open. They may both do the same thing but I think range alt was an alternative bar from the regular range bar that controlled how bars printed on opening gap. Don't quote me on this as I may be wrong.

"The day I became a winning trader was the day it became boring. Daily losses no longer bother me and daily wins no longer excited me. Took years of pain and busting a few accounts before finally got my mind right. I survived the darkness within and now just chillax and let my black box do the work."
Reply With Quote
 
  #7 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


ThatManFromTexas View Post
@RJay

What is the difference between your RangeNoGap and the standard range bar that comes with NT?

Here is a plot of Range, RangeNoGap, and RangeAlt side by side.

Attached Thumbnails
What is the difference between bar types RangeAlt and RangeNoGap?-6e-06-12-4-rangealt-_-6e-06-12-4-rangenogap-_-6e-06-12-4-range-5_8_2012.png  
Reply With Quote
The following 3 users say Thank You to aligator for this post:
 
  #8 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


ThatManFromTexas View Post
@RJay

What is the difference between your RangeNoGap and the standard range bar that comes with NT?

Hi TMFT,


Code is virtually identical for both charts except for a few small differences.

There are no price gaps from bar body to bar body with RangeNoGap.

Range bars are programmed to have gaps

A 4 tick Range Bar can require 5 ticks to display a full 4 tick bar.
A 4 tick RangeNoGap only requires 4 ticks to display a full 4 tick bar.

RJay

Reply With Quote
The following user says Thank You to RJay for this post:
 
  #9 (permalink)
 Vendor: www.tools4trading.de 
Erfurt Germany
 
Futures Experience: Master
Platform: rtMagic, NinjaTrader
Broker/Data: AMP/CQG, IAB
Favorite Futures: ES, 6E, FDAX, FGBL
 
Posts: 338 since Aug 2011
Thanks: 54 given, 460 received

RJay has realized a nice NoGap variant with using the "right" RangeSize for switch to th next bar.

While i well only using standard (with possible Gaps) variants, i use a simple logic to realize a variant for switch to the next bar to the next tick when the current tick is on the range border.

 
Code
PseudoCode:
if NextNewBarFlag then NextNewBarFlag=false; AddNewBar; exit;
if outside Range then AddNewBar; exit;
if equal Range then NextNewBarFlag=true;
UpdateBar;
exit;
The advantage of this is:
- its use only real traded prices and give nearly the same optical look comperable with the NoGap variant (its only need 4 ticks, when a Range 4 is selected)
- ~90% its give more as one price on the same level-> the next rangebar open exact and optical nice on the Close of bar before
- ~10% have Gaps, smaller Bars or dont close on the RangeBorder (optical is this not very nice, its shows exact the real live)
- with this logic its give only real traded prices, no zero volumes and/or additional ticks
- if needed its is simple to extend this "NextNewBarFlag" concept with a line for to check the HiLo size and add if not equal the range add one virtual price for realize a dummy tick that give the warranty any range nar has the same size (equal the range)...

I think with the simple NT7 variant, with RJay's 2 variants and this as 4. variant, we have its all combinations with a symetric fixed range period bars defined and differences between all this variants described


Last edited by TimeTrade; May 8th, 2012 at 09:59 PM.
Reply With Quote

Reply



futures io > > > > What is the difference between bar types RangeAlt and RangeNoGap?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
End of bar strategies with advanced bar types (Renko, Range, Kagi, etc) RM99 Elite EasyLanguage Automated Trading 2 September 9th, 2011 09:38 AM
Whats the difference between Bar Magnifier & look inside bar testing? crbucks MultiCharts 1 May 4th, 2011 01:22 AM
Difference between IntraBarOrderGeneration and Bar Magnifier arjfca EasyLanguage Programming 13 March 23rd, 2011 02:28 PM
Sierra Chart and custom bar types Big Mike Sierra Chart 34 January 12th, 2011 11:09 AM
Different Bar Types: Advantages and Disadvantages ct1942 NinjaTrader 0 January 20th, 2010 01:20 AM


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

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-15 in 0.15 seconds with 38 queries on phoenix via your IP 54.234.247.118