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

Re: [amibroker] Re: Determining cycles



PureBytes Links

Trading Reference Links




Not 
quite, Graham, because this requires the cursor to be on the last bar. I want a 
line that always gives me today's day of the week, regardless of where 
my cursor is. I tried for some time to this, either i have a mental block or 
perhaps it can't be done... but heh (true Canadian!) everything is possible in 
AB, right?
 
many 
thanks for the try!
<FONT face=Arial color=#0000ff 
size=2>herman 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Graham 
  [mailto:gkavanagh@xxxxxxxxxxxxx]Sent: Sunday, February 08, 2004 
  2:41 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
  [amibroker] When every day is Saturday...
  
  Is this what you are 
  looking for?
  TodaysWeekDay = DayString(<FONT color=#0000ff 
  size=2>SelectedValue(<FONT color=#0000ff 
  size=2>DayOfWeek()));<FONT color=#008000 
  size=2>
   
   
  Cheers,Graham<A 
  href="">http://www.golala.com/forums/?mforum=asxsharetrading<A 
  href="">http://groups.msn.com/fmsaustralia 
  
  
    
    <FONT 
    face=Tahoma size=2>-----Original Message-----From: Herman van den 
    Bergen [mailto:psytek@xxxxxxxx] Sent: Sunday, 8 February 2004 
    3:25 PMTo: AmiBrokerSubject: [amibroker] When every 
    day is Saturday...
    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(<FONT 
      color=#0000ff>Now(<FONT 
      color=#ff00ff>3)-<FONT 
      color=#0000ff>LastValue(<FONT 
      color=#0000ff>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>),<FONT 
      color=#0000ff>DayOfWeek<FONT 
      size=2>()))); LastDataDate = <FONT 
      color=#0000ff>LastValue(<FONT 
      color=#0000ff>DateTime<FONT 
      size=2>()); <FONT 
      color=#ff0000>Title = 
         "Today's Date: "<FONT 
      color=#000000>+TodaysWeekday+" "<FONT 
      color=#000000>+Now<FONT 
      color=#000000>(1<FONT 
      face=Arial>)+ 
            "\nLast 
      Data: "+LastDataWeekDay+<FONT 
      color=#ff00ff>" "+<FONT 
      color=#0000ff>NumToStr<FONT 
      color=#000000>(LastDataDate,<FONT 
      color=#ff0000>formatDateTime); 
      
    many thank!
    hermanSend BUG REPORTS to 
    bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
    SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    


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.