Fave This

Sunday, 17 June 2012

[Komunitas AmiBroker] the clock



mohon bantuannya agar tampilan clock  berada di posisi sebelah pojok kanan atas caranya gimana yach

_SECTION_BEGIN(" the clock ");
function GetSecondNum()
{
Time = Now( 4 );
Seconds = int( Time % 100 );
Minutes = int( Time / 100 % 100 );
Hours = int( Time / 10000 % 100 );
SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds );
return SecondNum;
}

RequestTimedRefresh( 1 );
TimeFrame = Interval();
SecNumber = GetSecondNum();
SecsLeft = SecNumber - int( SecNumber / TimeFrame ) * TimeFrame;
SecsToGo = TimeFrame - SecsLeft;
Secsleft = SecsToGo % 60 ;
Minleft = int( SecsToGo / 60 );
Time = "\\c06 " + Minleft + "\\c06 :" + "\\c06 " + Secsleft ;
sec10=IIf(Minleft<1AND Secsleft<10,4,0); // <<== where is 10 means 10 sec

secColor=WriteIf(sec10==1,"\\c08 ","\\c06 ");
Title = "\\c06 " + Minleft + " :" + secColor+ Secsleft ;

MinleftSTR=NumToStr(Minleft,1); SecsleftSTR=NumToStr(Secsleft ,1); 
PlotText(MinleftSTR+":"+SecsleftSTR,BarCount +1, 1, colorBlack, IIf(sec10,colorYellow,colorWhite));
_SECTION_END();


__._,_.___


Apabila membutuhkan software AmiBroker, Realtime Intraday Data & Pelatihan silahkan kontak : Dendo Valentino | Cell : 08159304868 | e-mail: amibrokerfreak{at}yahoo.co.id | YM id : dendov | http://www.facebook.com/dendo.amibrokerfreak | http://www.amibroker-4-bei.org





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

__,_._,___

No comments:

Post a Comment