[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: How to make Range Bars


  • Date: Sun, 20 Dec 2009 21:19:05 +1100
  • From: "Neil Wrightson" <neilw@xxxxxxxxxx>
  • Subject: RE: [amibroker] Re: How to make Range Bars

PureBytes Links

Trading Reference Links



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

TimeFrameSet10 ); // 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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of kevinoversby
Sent: Sunday, 20 December 2009 5:04 PM
To: amibroker@xxxxxxxxxxxxxxx
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 amibroker@xxxxxxxxxps.com, "Neil Wrightson" <neilw@xxx> 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.
>



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___