Hi Kevin,
 
Thanks for responding.
It sounds like what I'm looking for but does not quite work. The price chart
I'm using has an increment size (tick) is 0.5 (FTSE)
 
I have the following code set.
_SECTION_BEGIN("Price");

SetChartOptions(0,chartShowArrows|chartShowDates);

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

TimeFrameSet( 10 ); // range in tick size

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo
%g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) )
));

Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
ParamStyle("Style") | GetPriceStyle()|4*ParamToggle("Z-order", "On
top|Behind", 1)); 

_SECTION_END();

Actually whilst composing this email, I looked over the help files and the
above should have been correct but I thought, what the hey and changed the
TimeframeSet to 500 instead of 5 and it looks better. Closer to
TimeframeMode(3) usage. Perhaps I need to talk with the developer?

Still 50% of the bars are restricted to 5 points (10) ticks as they should.
The others are 5..11 points in size.

The other unfortunate thing, is that the time at the top of the chart does
not show the start time of this bar.

Regards, 

Neil Wrightson. 



  _____  

From: [email protected] [mailto:[email protected]] On Behalf
Of kevinoversby
Sent: Sunday, 20 December 2009 5:04 PM
To: [email protected]
Subject: [amibroker] Re: How to make Range Bars


  

In theory you type

TimeFrameMode( 3 ); // turn on range bars
TimeFrameSet( 1 ); // range in tick size

but I wasn't able to successfully plot my 15 second ES database in 1-4 tick
range bars. Let me know how you get on.

Kevin

--- In amibro...@yahoogrou <mailto:amibroker%40yahoogroups.com> ps.com,
"Neil Wrightson" <ne...@...> wrote:
>
> Hi,
> 
> I was watching a web presentation the other day and the speaker mentioned
> using range bars. These are apparently available in TradeStation.
> If the setting is set for 4 points, than whilst ever the data is within a
> four point range it will stay on the same bar.
> I.e. if the market is bouncing between 4000..4004 then a new bar will not
be
> generated, no matter how much time has passed.
> When the price moves to 4004.5, a new bar will be started and whilst the
> price stays within 4 points of 4004.5 it will stay on this bar.
> This also means that every bar is 4 points in height.
> 
> So there is my question.
> How do I make range bars in Amibroker?
> 
> 
> Regards, 
> 
> Neil Wrightson.
>




Reply via email to