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

[amibroker] Re: Determining cycles



PureBytes Links

Trading Reference Links




Hello,
I would like to show the 
names of days for today and the last data bar 
on some of my charts. Can somebody help me complete code for Today's 
Weekday?

  <FONT 
  color=#ff0000>function<FONT 
  face=Arial> DayString( D ) 
     {    DayNames = <FONT 
  color=#ff00ff>"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday"<FONT 
  face=Arial>; 
     return<FONT 
  color=#000000>    <FONT 
  color=#0000ff>StrExtract<FONT 
  size=2>(DayNames, D);    } 
  TodaysWeekDay = DayString(Now<FONT 
  color=#000000>(3<FONT 
  color=#000000>)-LastValue<FONT 
  color=#000000>(DateNum<FONT 
  color=#000000>())); // <<<< WRONG - 
  HELP NEEDED!!!<FONT 
  color=#000000> <FONT 
  face=Arial>LastDataWeekDay = 
  DayString(LastValue<FONT 
  color=#000000>(ValueWhen<FONT 
  color=#000000>(BarIndex<FONT 
  color=#000000>()==(BarCount<FONT 
  color=#000000>-1<FONT 
  color=#000000>),DayOfWeek<FONT 
  face=Arial>()))); LastDataDate = 
  LastValue(<FONT 
  color=#0000ff>DateTime<FONT 
  color=#000000>()); Title<FONT 
  color=#000000> =    "Today's Date: 
  "+TodaysWeekday+" 
  "+Now<FONT 
  color=#000000>(1<FONT 
  face=Arial>)+ 
        "\nLast 
  Data: "+LastDataWeekDay+<FONT 
  color=#ff00ff>" "+<FONT 
  color=#0000ff>NumToStr(LastDataDate,<FONT 
  color=#ff0000>formatDateTime); 
  
many thank!
herman


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.