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

[amibroker] Re: Background Color Question



PureBytes Links

Trading Reference Links

Thomas .. thanks a ton for the help ... works like a charm ... here is my slightly modified code for params.

function winterblock()

{

     Winter = Month() == 1 OR Month() == 2 OR Month() == 3 OR Month()

== 11 OR Month() == 12;

     return Winter;

}

Plot(1,"",IIf(winterblock(),paramcolor("Winter", colorrose) , Paramcolor("Summer", colorwhite)),styleArea|styleOwnScale|styleNoTitle|styleNoLabel,0,1);

GraphZOrder = 1;

Plot(C, "Close", Paramcolor("Color", colorblack), stylenotitle|Paramstyle("Style"|GetPriceStyle());

Again... thanks a ton

--- In amibroker@xxxxxxxxxxxxxxx, "Thomas Z." <tzg@xxx> wrote:
>
> Hi Axle,
>
>
>
> you have used AND for every month instead OR.
>
> However it seems that setchartbackground doesn't work on bar by bar basis.
>
> I have changed the code, see below.
>
>
>
>
>
> function winterblock()
>
> {
>
> Winter = Month() == 1 OR Month() == 2 OR Month() == 3 OR Month()
>
> == 11 OR Month() == 12;
>
> return Winter;
>
> }
>
>
>
> Plot(1,"",IIf(winterblock(),colorYellow,colorRed),styleArea|styleOwnScale|st
> yleNoTitle|styleNoLabel,0,1);
>
>
>
>
>
> Regards
>
>
>
> - - - - - - - - - - - - - - - - - - - -
>
> Thomas
>
> www.tradingbasis.com <http://www.tradingbasis.com/>
>
> support@xxx
>
> - - - - - - - - - - - - - - - - - - - -
>
>
>
>
>
>
>
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of axle_d
> Sent: Wednesday, March 29, 2006 7:30 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Background Color Question
>
>
>
> Thomas,
>
>
>
> Thanks for the suggestion but I am definitely doing something wrong
>
> since the whoile background colors yellow for me in the beow code. ANy
>
> suggestions appreciated.
>
>
>
> function winterblock()
>
> {
>
> Winter = Month() == 1 AND Month() == 2 AND Month() == 3 AND Month()
>
> == 11 AND Month() == 12;
>
> return Winter;
>
> }
>
>
>
> Color = IIf(winterblock(), SetChartBkColor(colorYellow), colorRed);
>
>
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Thomas Z." tzg@ wrote:
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > you can use the following two functions:
>
> >
>
> >
>
> >
>
> > SetChartBkColor( color )
>
> >
>
> >
>
> >
>
> > And
>
> >
>
> >
>
> >
>
> > Month()
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Regards
>
> >
>
> >
>
> >
>
> > - - - - - - - - - - - - - - - - - - - -
>
> >
>
> > Thomas
>
> >
>
> > www.tradingbasis.com <http://www.tradingbasis.com/>
>
> >
>
> > support@
>
> >
>
> > - - - - - - - - - - - - - - - - - - - -
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > -----Original Message-----
>
> > From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
>
> Behalf
>
> > Of axle_d
>
> > Sent: Tuesday, March 28, 2006 4:52 PM
>
> > To: amibroker@xxxxxxxxxxxxxxx
>
> > Subject: [amibroker] Background Color Question
>
> >
>
> >
>
> >
>
> > I track the natgas market and it trades seasonally from Nov 1 to MArch
>
> >
>
> > 31, and April 1 to Oct 31.
>
> >
>
> >
>
> >
>
> > I would like to be able to set the bckgrnd color as yellow for the
>
> >
>
> > winter period and white for the summer period.
>
> >
>
> >
>
> >
>
> > TIA
>
> >
>
> >
>
> >
>
> > Alex
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Please note that this group is for discussion between users only.
>
> >
>
> >
>
> >
>
> > To get support from AmiBroker please send an e-mail directly to
>
> >
>
> > SUPPORT {at} amibroker.com
>
> >
>
> >
>
> >
>
> > For other support material please check also:
>
> >
>
> > http://www.amibroker.com/support.html
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Yahoo! Groups Links
>
> >
>
> >
>
> >
>
> > http://groups.yahoo.com/group/amibroker/
>
> >
>
> >
>
> >
>
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> >
>
> >
>
> >
>
> > http://docs.yahoo.com/info/terms/
>
> >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
>
>
> To get support from AmiBroker please send an e-mail directly to
>
> SUPPORT {at} amibroker.com
>
>
>
> For other support material please check also:
>
> http://www.amibroker.com/support.html
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
> http://groups.yahoo.com/group/amibroker/
>
>
>
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
>
>
> http://docs.yahoo.com/info/terms/
>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS