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

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



PureBytes Links

Trading Reference Links

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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/