Hello,

Below from TJ 10/11/2007, hope it helps.

Regards

JG
//////////////////////////////////////////////
Hello,

Turn off default grid, and then use PlotGrid function:

gridINCR = Param("incr",0.0004,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);
}
else
 SetChartOptions(1,chartShowArrows|chartShowDates);

Best regards,
Tomasz Janeczko
amibroker.com

/////////////////////////////////////////////
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of william.schram
Sent: Tuesday, August 03, 2010 12:50 AM
To: [email protected]
Subject: [amibroker] Commands to create a white on black chart:
SetChartOptions for Axes/Grid Color

I found code on the knowledge base for a chart that normally has a colored
background (because the plots are white). I want to know if there are
commands like: "SetChartOptions( 2, chartShowDates );" for setting the color
of the Grid and Axes of a chart, without altering my default white
background with black text?

I am aware that the work around would be alter the code from the knowledge
base, but I'd rather learn something about editing the chart environment.

Below is the code I use presently to setup the chart formatting:

//====================================================================
// Chart Formatting
//====================================================================
GraphXSpace = 5; // Adds % extra space above and below the graph line.
SetChartBkColor( colorBlack );
SetChartOptions( 2, chartShowDates );
SetChartOptions( 2, chartLogarithmic );
//SetChartAxes(colorWhite); // Don't know how to do this!!!
//GridColor = ParamColor( "GridColor", colorLightGrey );
//SetChartGrid(GridColor); // Don't know how to do this!!!

Are the comparable functions to set the Chart Axes and/or grid color?

Any help would be appreciated,
-WILLIAM



------------------------------------

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




Reply via email to