Hello,
Thank you very much for your e-mail.
It uses Tick Size as defined in the Symbol Information window.
This Tick size is property of symbol.
So you need to go to Symbol Information window and enter
desired TickSize there.
Grid can not change on bar-by-bar basis.
TickSize variable defined in the formula is a local copy in the current execution of the formula.
Changes done to variable(s) in one formula apply to that execution only and do not propagate to other formulas
and do not propagate to Symbol Information window.
Best regards,
Tomasz Janeczko
amibroker.com
Thanks Thomasz;
Still can't get it to work.
I am wanting to set the tick size based on the Price, rather than enter it for each symbol, and so are using TickSize.
_SECTION_BEGIN("Price");
Indicative_Price = LastValue( ValueWhen( ExRem( Close, 0 ), Close ) );
printf("Indicative_Price %f", Indicative_Price);
SetChartOptions(0,chartShowDates);
ChartNumber = GetChartID();
Support = Study("SU", ChartNumber );
if (Indicative_Price > 5)
{
TickSize = 0.25;
}
else
{
TickSize = 0.1;
}
printf("Tick_Size %f", TickSize);
SetChartOptions(0,chartShowArrows|chartShowDates);
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
From: Tomasz Janeczko groups@amibroker.com [amibroker] [mailto:amibroker@yahoogroups.com]
Sent: Wednesday, 18 May 2016 9:26 PM
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] 6.13 Beta Release Feature: Charting: new feature – Snap to Tick grid. Snap drawing tool end points to TickSize-spaced grid (if TickSize > 0 for given symbol)
Hello,
Thank you very much for your e-mail.
1. Go to Symbol Information, enter 0.01 in "Tick size" field
2. Select "Snap to Tick grid" from "Format" menu.
3. Draw a trendline - you will notice that start and endpoints of the trendline change with 0.01 increments
For greater effect you can enter 1 in "tick size".
Best regards,
Tomasz Janeczko
On 2016-05-18 12:58, tavenui@googlemail.com [amibroker] wrote:
HI, I am working through the 6.13 features.
I am having difficulty with getting this to work as I expected.
Snap drawing tool end points to TickSize-spaced grid (if TickSize > 0 for given symbol)
I am wondering what settings I need to make.
Could someone please provide a worked example?
Regards
Paul
Posted by: Tomasz Janeczko <groups@amibroker.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
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/
EmoticonEmoticon