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

Re: [amibroker] How to plot a custom grid using Gfx?



PureBytes Links

Trading Reference Links

Plot(GridMIN+i*gridINCR, "",ParamColor("color", colorblack ), styleNoTitle | ParamStyle("style", styleLine | styleNoLabel, maskHistogram ) );


Sent: Saturday, February 14, 2009 12:17 AM
Subject: [amibroker] How to plot a custom grid using Gfx?

Hello, found the code below which is used to plot a custom grid. I'm
not too crazy about the dotted grid and would like to plot a solid
line, possibly using GFX... has anyone done that? Thanks

gridINCR = Param("incr",.50,1,10,0.0001);
if( ParamToggle("show custom grid", "NO|YES", 1) )
{
SetChartOptions(1,chartShowArrows|chartShowDates, 0);
firstbarvisible = BarIndex()==1 OR (Status("barvisible") AND NOT Ref(
Status("barvisible"), -1));
GridMIN = LastValue( LowestSince( firstbarvisible, round((Low
-40)/10)*10 ) );
GridMAX = LastValue( HighestSince( firstbarvisible, round((High
+40)/10)*10 ) );
steps = (GridMAX - GridMIN)/ gridINCR ;
for(i=0;i < steps;i++)
PlotGrid(GridMIN+i*gridINCR, colorBlack);
}
else
SetChartOptions(1,chartShowArrows|chartShowDates);



__._,_.___


**** 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

__,_._,___