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



From: tradinghumble 
Sent: Saturday, February 14, 2009 12:17 AM
To: [email protected] 
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);



Reply via email to