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

Re: [amibroker] Re: Exploration and background color



PureBytes Links

Trading Reference Links

4th parameter is color of TEXT
and
5th parameter is color of BACKGROUND:
 
 
AddColumn( C4, "Tr-4", 1.2, colorDefault, DC4 );  // this changes BACKGROUND color
 
AddColumn( C4, "Tr-4", 1.2, DC4, colorDefault );  // this changes TEXT color
 
Use colorDefault constant to use default color for either text and/or background.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Thursday, April 02, 2009 2:16 PM
Subject: RE: [amibroker] Re: Exploration and background color


 Thank's for you help , but it just change the color of the numbers (as my formula make) but don't fill the background
 
Thank's again
 
MG

To: amibroker@xxxxxxxxxxxxxxx
From: sfclimbers@xxxxxxxxx
Date: Thu, 2 Apr 2009 03:57:33 +0000
Subject: [amibroker] Re: Exploration and background color

The AddColumn syntax expects a color value, not the result of an assignment operation.

e.g.
AddColumn(C4,"Tr-4",1.2,DC4);

Not

AddColumn(C4,"Tr-4",1.2,bkgndColor = DC4);

Mike

--- In amibroker@xxxxxxxxxps.com, Michel Guibert <michelg14@x..> wrote:
>
>
>
> Hi
>
> I just want to make an exploration in 5 minutes to give me the trend by comparing the close
>
> *************************************************************
>
>
>
> _SECTION_BEGIN("Trend");
>
> in5minutes = 5*60;
>
> TimeFrameSet (in5minutes);
>
> C=Close;
>
> C1=Ref(Close,-1);
>
> C2=Ref(Close,-2);
>
> C3=Ref(Close,-3);
>
> C4=Ref(Close,-4);
>
> C5=Ref(Close,-5);
>
> DC=IIf((C>C1), colorGreen,IIf((C<C1), colorRed, colorDarkYellow));
>
> DC1=IIf((C1>C2), colorGreen,IIf((C1<C2), colorRed, colorDarkYellow));
>
> DC2=IIf((C2>C3), colorGreen,IIf((C2<C3), colorRed, colorDarkYellow));
>
> DC3=IIf((C3>C4), colorGreen,IIf((C3<C4), colorRed, colorDarkYellow));
>
> DC4=IIf((C4>C5), colorGreen,IIf((C4<C5), colorRed, colorDarkYellow));
>
> AddColumn (C4,"Tr-4",1.2,bkgndColor = DC4);
>
> AddColumn (C3,"Tr-3",1.2,bkgndColor = DC3);
>
> AddColumn (C2,"Tr-2",1.2,bkgndColor = DC2);
>
> AddColumn (C1,"Tr-1",1.2,bkgndColor = DC1);
>
> AddColumn (C,"Tr-0",1.2,bkgndColor = DC);
>
> TimeFrameRestore ();
>
> _SECTION_END();
>
> ==========================================
>
>
>
> I don't care about the value of the different close but want to fill the case with a background of the good color to see the trend.
>
>
>
> Any help appreciate
>
>
>
> Thank's
>
>
>
> __________________________________________________________
> Share photos with friends on Windows Live Messenger
> http://go.microsoft.com/?linkid=9650734
>




Windows Live Messenger makes it easier to stay in touch - learn how!


__._,_.___


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





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___