Range Bars Queries - AmiBroker | futures io social day trading
futures io futures trading


Range Bars Queries
Updated: Views / Replies:6,961 / 11
Created: by sr114 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
 2  
 
Thread Tools Search this Thread
 

Range Bars Queries

  #1 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received

Range Bars Queries

Hello

another query:

i generally use range bars in my trading intraday and my market is India (NSE-NIFTY). its price is between INR 5000+
now i use 500R for it.

Nifty Range bars- 500R
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


the code i use is

Quoting 
_SECTION_BEGIN( "Price" );
SetChartOptions( 0, chartShowArrows | chartShowDates );
SetChartBkGradientFill( ParamColor( "Inner panel upper", colorBlack ), ParamColor( "Inner panel lower", colorBlack ) );
_N( Title = EncodeColor( colorWhite ) + StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );

TimeFrameMode( 4 ); // turn on range bars where N is expressed in tick size
TimeFrameSet( 20 ); // range in tick size

SetBarFillColor( IIf( C > O, ParamColor( "Candle UP Color", colorGreen ), IIf( C <= O, ParamColor( "Candle Down Color", colorRed ), colorLightGrey ) ) );
Plot( C, "", IIf( C > O, ParamColor( "Wick UP Color", colorDarkGreen ), IIf( C <= O, ParamColor( "Wick Down Color", colorDarkRed ), colorLightGrey ) ), 64, 0, 0, 0, 0 );


a1=EMA(EMA(C,21),21); //DEMA of Close
a2=EMA(a1,21);
Difference=a1-a2;
a=a1+difference; //zerolag
Plot( A, "", colorWhite, styleLine, styleThick );


b1=EMA(EMA(C,8),8); //DEMA of Close
b2=EMA(b1,8);
Difference=b1-b2;
b=b1+difference; //zerolag
Plot( B, "", colorAqua, styleLine, styleThick );

_SECTION_END();

i am right in my analysis. i do not use and tick size in the symbol information - i keep it blank.

this is in case of bank nifty - Price - 10000+)

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


am i in right direction? waiting values response from forum
sr

Reply With Quote
 
  #2 (permalink)
Membership Temporarily Revoked
London, UK
 
Futures Experience: Advanced
Platform: Amibroker, Sierra Chart
Favorite Futures: Futures/Forex
 
Posts: 36 since Jul 2012
Thanks: 0 given, 5 received


sr114 View Post
i am right in my analysis. i do not use and tick size in the symbol information - i keep it blank.

this is in case of bank nifty - Price - 10000+)

?

Reply With Quote
 
  #3 (permalink)
Elite Member
New Delhi, India
 
Futures Experience: Intermediate
Platform: NEOTICKER, NinjaTrader, MarketDelta
Favorite Futures: ES,Stocks, Futures
 
Posts: 160 since Sep 2011
Thanks: 731 given, 100 received



sr114 View Post
Hello

another query:

i generally use range bars in my trading intraday and my market is India (NSE-NIFTY). its price is between INR 5000+
now i use 500R for it.

Nifty Range bars- 500R
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


the code i use is


i am right in my analysis. i do not use and tick size in the symbol information - i keep it blank.

this is in case of bank nifty - Price - 10000+)

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


am i in right direction? waiting values response from forum
sr

Please try to be a bit more clear about what are you really asking ? What response do you want from the forum ? Exactly about what ?

Thanks

Reply With Quote
The following 2 users say Thank You to ab456 for this post:
 
  #4 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received


ab456 View Post
Please try to be a bit more clear about what are you really asking ? What response do you want from the forum ? Exactly about what ?

Thanks

as u see the scrip is behaving well in rb, but when i apply this afl for gold or silver in MCX, the bars are not that co- herent. for gold - i use 2750R (price - 30K) and for silver 5000R(silver price 54k+)?

is the afl used is right in implementing range bars and for gold and silver what will be the optimum ranges?

if the afl is not right then pls correct it. also can i combine the fractal based trend line along this afl

thanx and regards
sr

Reply With Quote
 
  #5 (permalink)
Membership Temporarily Revoked
London, UK
 
Futures Experience: Advanced
Platform: Amibroker, Sierra Chart
Favorite Futures: Futures/Forex
 
Posts: 36 since Jul 2012
Thanks: 0 given, 5 received

Doing a quick look at your code it seems to be OK. But I did not test it.
Timeframeset (20) would mean to set to range bars of size of 20 ticks via AFL and not using range bar sizes set in tools-preferences-intraday.

In the information window of each symbol you can define the tick size of each smybol per data base. But you can also set ticksize in AFL. Ticksize set in AFL overrides ticksize set in according information window.

You can alternatively use Param function to set range bar size via parameters dialog (CTRL+R or mouse right-click on the chart) .

 
Code
_SECTION_BEGIN( "Price" );
SetChartOptions( 0, chartShowArrows | chartShowDates );
SetChartBkGradientFill( ParamColor( "Inner panel upper", colorBlack ), ParamColor( "Inner panel lower", colorBlack ) );
_N( Title = EncodeColor( colorWhite ) + StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );

rangesize = Param("Range bar size", 20, 1, 1000, 1);

TimeFrameMode( 4 ); // turn on range bars where N is expressed in tick size
TimeFrameSet( rangesize ); // range in tick size

SetBarFillColor( IIf( C > O, ParamColor( "Candle UP Color", colorGreen ), IIf( C <= O, ParamColor( "Candle Down Color", colorRed ), colorLightGrey ) ) );
Plot( C, "", IIf( C > O, ParamColor( "Wick UP Color", colorDarkGreen ), IIf( C <= O, ParamColor( "Wick Down Color", colorDarkRed ), colorLightGrey ) ), 64, 0, 0, 0, 0 );

a1=EMA(EMA(C,21),21); //DEMA of Close
a2=EMA(a1,21);
Difference=a1-a2;
a=a1+difference; //zerolag
Plot( A, "", colorWhite, styleLine, styleThick );

b1=EMA(EMA(C,8),8); //DEMA of Close
b2=EMA(b1,8);
Difference=b1-b2;
b=b1+difference; //zerolag
Plot( B, "", colorAqua, styleLine, styleThick );
_SECTION_END();
Keep in mind that to create proper range bars you need to use true tick data.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received


Letmein View Post
Doing a quick look at your code it seems to be OK. But I did not test it.
Timeframeset (20) would mean to set to range bars of size of 20 ticks via AFL and not using range bar sizes set in tools-preferences-intraday.

In the information window of each symbol you can define the tick size of each smybol per data base. But you can also set ticksize in AFL. Ticksize set in AFL overrides ticksize set in according information window.

You can alternatively use Param function to set range bar size via parameters dialog (CTRL+R or mouse right-click on the chart) .

 
Code
_SECTION_BEGIN( "Price" );
SetChartOptions( 0, chartShowArrows | chartShowDates );
SetChartBkGradientFill( ParamColor( "Inner panel upper", colorBlack ), ParamColor( "Inner panel lower", colorBlack ) );
_N( Title = EncodeColor( colorWhite ) + StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );

rangesize = Param("Range bar size", 20, 1, 1000, 1);

TimeFrameMode( 4 ); // turn on range bars where N is expressed in tick size
TimeFrameSet( rangesize ); // range in tick size

SetBarFillColor( IIf( C > O, ParamColor( "Candle UP Color", colorGreen ), IIf( C <= O, ParamColor( "Candle Down Color", colorRed ), colorLightGrey ) ) );
Plot( C, "", IIf( C > O, ParamColor( "Wick UP Color", colorDarkGreen ), IIf( C <= O, ParamColor( "Wick Down Color", colorDarkRed ), colorLightGrey ) ), 64, 0, 0, 0, 0 );

a1=EMA(EMA(C,21),21); //DEMA of Close
a2=EMA(a1,21);
Difference=a1-a2;
a=a1+difference; //zerolag
Plot( A, "", colorWhite, styleLine, styleThick );

b1=EMA(EMA(C,8),8); //DEMA of Close
b2=EMA(b1,8);
Difference=b1-b2;
b=b1+difference; //zerolag
Plot( B, "", colorAqua, styleLine, styleThick );
_SECTION_END();
Keep in mind that to create proper range bars you need to use true tick data.

Yes i am using tick data for generating the range bars. using the code u rectified - when i change the range via param, the tools-preferences-intraday range settings are used and not the range i am setting. is there any way to overcome this . or i have to go via the intraday settings ?

also can i combine fractal based trend line with this code for getingthe clear picture of price action?

thanx for the reply

sr

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received

Hello

pls require another help

MCX Silver - price 55000 and tick size is INR 1 - what will be the optimum range size if in symbol info i am using tick size = o and tick size = 0.05

MCX Gold - price 30300 tick size - INR 1 and the same condition for tick size - optimum range

MCX Crude Oli - range - INR 5500 , tick size - 1 INR, using tick size - 0.05, optimum range?

pls waiting for the reply

thanx and regards

sr

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
India India
 
Futures Experience: Intermediate
Platform: NT MD
Favorite Futures: Futures
 
Posts: 2 since Aug 2012
Thanks: 2 given, 0 received


sr114 View Post
Yes i am using tick data for generating the range bars. using the code u rectified - when i change the range via param, the tools-preferences-intraday range settings are used and not the range i am setting. is there any way to overcome this . or i have to go via the intraday settings ?

also can i combine fractal based trend line with this code for getingthe clear picture of price action?

thanx for the reply

sr

hi

tick data?
name of the source?
ur charts do not look like tick data

Reply With Quote
 
  #9 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received


bluevasp View Post
hi

tick data?
name of the source?
ur charts do not look like tick data

source of tick data - terminal data capture utility.

cud u suggest a good and proper tick data provider.

also what is a pro[er tick data chart- - cud u provide some screen shots from ami and not from other charting sw.

sr

Reply With Quote
 
  #10 (permalink)
Trading Apprentice
India India
 
Futures Experience: Intermediate
Platform: NT MD
Favorite Futures: Futures
 
Posts: 2 since Aug 2012
Thanks: 2 given, 0 received



sr114 View Post
source of tick data - terminal data capture utility.

cud u suggest a good and proper tick data provider.

also what is a pro[er tick data chart- - cud u provide some screen shots from ami and not from other charting sw.

sr


eSignal - nifty 500R


img829.imageshack.us/img829/2722/nifty500r.png

img571.imageshack.us/img571/9384/nifty500r1.png

Reply With Quote

Reply



futures io > > > > Range Bars Queries

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
Range Bars cgiann Traders Hideout 10 August 28th, 2012 11:40 PM
Range Bars fireman912 ThinkOrSwim 5 May 30th, 2012 01:08 PM
renko bars vs range bars? shodson Traders Hideout 21 April 26th, 2012 04:52 PM
help w/ range bars... YertleTurtle NinjaTrader 2 May 25th, 2011 09:10 PM
How do YOU use range bars? recollect Traders Hideout 2 August 4th, 2010 12:15 AM


All times are GMT -4. The time now is 02:57 PM.

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-16 in 0.15 seconds with 20 queries on phoenix via your IP 54.163.209.109