Hello Duke, Correction: When I opened parameters (Ctrl-R) the colors
that I was able to play with where listed only under "Price" only. Not
chart background. I guess If I want to experiment with chart
background colors I need to accomplish this inside my chart formula
using your code that I pasted in?  Thank you Duke


--- In [email protected], "electricwally77" <[EMAIL PROTECTED]>
wrote:
>
> Hello Duke, WoW !! Very amazing. I'm studying the code now. I copied
> and pasted into my chart formula. Amazing. When I go to parameters and
> play with the color choices as per your suggestion, and hit OK nothing
> happens, No change in colors. My guess is that your original colors
> are still coded into my chart formula. Do I also have to change them
> in the chart formula before I change them in the parameters (Ctrl-R)?
> Thanks Duke. Good work !!
> 
> 
> --- In [email protected], "Duke Jones, CMT" <Duke@> wrote:
> >
> > Try this one and play with the colors using the parameters (Cntrl-R).
> > 
> > Regards,
> > 
> > Duke Jones, CMT
> > 
> > electricwally77 wrote:
> > >
> > > Hello Aron, I pasted your code into my chart formula exactly as
> > > appears below and received an error message on line 4 that said
> > > "Variable 'bgcolor' used without having been initialized." As
soon as
> > > I fix line 4 I assume line 5 will give me the same type of error
> > > message. Appreciate any advice. Thank you Aron.
> > >
> > > --- In [email protected]
> <mailto:amibroker%40yahoogroups.com>, 
> > > Aron <apforex@> wrote:
> > > >
> > > > add this to your chart formula
> > > > > |Color= ParamColor("Bg",ColorRGB( 251,251,252));
> > > > > BgTop=ParamColor("BgTop",ColorRGB(251,251,251) );
> > > > > BgBot=ParamColor("BgBot", ColorRGB(219,225,227));
> > > > > SetChartBkColor( BgColor);
> > > > > SetChartBkGradientFill( BgTop,BgBot);|
> > > >
> > >
> > >  
> > 
> > _SECTION_BEGIN("Price");
> > SetChartOptions(0,chartShowArrows|chartShowDates);
> > _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi
> %g, Lo %g, Close %g Chg %g (%.1f%%) {{VALUES}}", O, H, L, C,
> Prec(C-Ref(C,-1),3),  SelectedValue( ROC( C, 1 ) ) ));
> > Plot( C, "Close", ParamColor("Color", colorBlack ),
> ParamStyle("Style",styleLine|styleCandle));
> > 
> > Red                 =Param("Red",200,0,255,1);
> > Green               =Param("Green",200,0,255,1);
> > Blue                =Param("Blue",200,0,255,1);
> > Hue                 = Param("Hue",0,1,255,1);
> > Saturation  = Param("Saturation",0,1,255,1);
> > Brightness  = Param("Brightness",0,1,255,1);
> > 
> > 
> > Miny = Status("axisminy"); 
> > Maxy = Status("axismaxy"); 
> > 
> > lvb = Status("lastvisiblebar"); 
> > fvb = Status("firstvisiblebar"); 
> > 
> > pxwidth = Status("pxwidth"); 
> > pxheight = Status("pxheight"); 
> > 
> > 
> > GfxSetBkMode( 1 ); // set transparent mode 
> > GfxSetOverlayMode(1);
> > GfxGradientRect(0,0,pxwidth, pxheight, colorBlue, colorLime ); 
> > 
> > 
> > GfxSelectFont("Tahoma", Status("pxheight")/3 );
> > GfxSetTextAlign( 6 );// center alignment
> > GfxSetTextColor( ColorRGB( Red, Green, Blue ) );
> > GfxSetBkColor(ColorHSB(Hue,Saturation,Brightness));
> > GfxTextOut( Name(), Status("pxwidth")/2.1, Status("pxheight")/12 );
> > //axisarea = 56; // may need adjustment if you are using non-default
> font for axis 
> > _SECTION_END();
> >
>


Reply via email to