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

[amibroker] Re: Exploration and background color



PureBytes Links

Trading Reference Links

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@xxxxxxxxxxxxxxx, Michel Guibert <michelg14@xxx> 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
>




------------------------------------

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

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/