PureBytes Links
Trading Reference Links
|
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
Messenger has tons of new features that make chatting more fun. Click here to learn more.
__._,_.___
**** 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/
__,_._,___
|
|