Tomasz

Thank's one thousand times , it works perfect...
 


To: [email protected]
From: [email protected]
Date: Thu, 2 Apr 2009 14:47:52 +0200
Subject: Re: [amibroker] Re: Exploration and background color






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 ----- 
From: Michel Guibert 
To: [email protected] 
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: [email protected]
From: [email protected]
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 [email protected], Michel Guibert <michel...@...> 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! 









_________________________________________________________________
Create a cool, new character for your Windows Liveā„¢ Messenger.
http://go.microsoft.com/?linkid=9656621

Reply via email to