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
>


Reply via email to