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

[amibroker] Re: Day's Name abbreviation.



PureBytes Links

Trading Reference Links

Thank you very much Tomasz. it is ok now :)



--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 
wrote:
>
> Simply you overwrote the x variable with STRING and then you compare
> to a number which obviously generates an error.
> 
> Better and shorter way is:
> 
> x = SelectedValue(DayOfWeek());
> x = StrExtract( "Sun,Mon,Tue,Wed,Thu,Fri,Sat", x );
> 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Mohammed" <softnews2003@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, February 29, 2008 8:06 PM
> Subject: [amibroker] Re: Day's Name abbreviation.
> 
> 
> > Hi Bill,
> > 
> > Thank you very much for your help and advice, I have search the 
User 
> > Guide and User List, But I couldn't find any thing that can help 
some 
> > one who just start with the coding :)
> > 
> > 
> > I try your code and I got Error for : if(x == 4) x = "thu";
> > 
> > Ln: 10, Col: 9 : Error 1. Operation not allowed. Operator/operand 
> > type mismatch.
> > 
> > This what I use.
> > 
> > x = SelectedValue(DayOfWeek());
> > 
> > if(x == 0) x = "Sun";
> > if(x == 1) x = "Mon";
> > if(x == 2) x = "tue";
> > if(x == 3) x = "wed";
> > if(x == 4) x = "thu";
> > if(x == 5) x = "fri";
> > if(x == 6) x = "sat";
> > 
> > Title = Date() + "Today Is   " + x
> > 
> > Regards.
> > 
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <timesarrow@> 
> > wrote:
> >>
> >> Plot and title are not normally interchangeable words.  In any 
> > case, here is one way of going (all functions are in Users Guide) 
to 
> > display what you asked for - date and day in title of selected 
bar.  
> > In order to learn this stuff, don't just copy but try to 
understand 
> > what is happening.  Ask yourself "why" a particular function is 
used 
> > in the way that it is.
> >> 
> >> x = selectedvalue(dayofweek());
> >> if(x == 0) x = "sun";
> >> if(x == 1) ...
> >> etc.
> >> title = date() + "  " + x; 
> >> 
> >> Bill
> >> 
> >> 
> >> ----- Original Message ----- 
> >> From: "Mohammed" <softnews2003@>
> >> To: <amibroker@xxxxxxxxxxxxxxx>
> >> Sent: Friday, February 29, 2008 10:47 AM
> >> Subject: [amibroker] Re: Day's Name abbreviation.
> >> 
> >> 
> >> > Hi Bill,
> >> > 
> >> > I think you misunderstood me. I need to add the abbreviation 
of 
> > the 
> >> > Day's Name  in the title.  Something like this: Mon, Tue, Wed, 
> > Thu, 
> >> > Fri, and Sat. depending to the date. If I click in any bar it 
> > will 
> >> > showing the date and the name of the day in the title.
> >> > 
> >> > Regards.
> >> > 
> >> > 
> >> > 
> >> > --- In amibroker@xxxxxxxxxxxxxxx, "Mohammed" <softnews2003@> 
> > wrote:
> >> >>
> >> >> Hi all,
> >> >> 
> >> >> I'm using WeeklyBar = DayOfWeek() == 0; To plot a small arrow 
> >> > bellow 
> >> >> the weekly bar in daily chart.
> >> >> 
> >> >> Any one can help please to plot the abbreviation of the day 
as 
> >> > (Sun, 
> >> >> Mon, Tue, wed, Thu, Fri and Sat). 
> >> >> 
> >> >> I search the AmiBroker Site and On-line Reference But I 
couldn't 
> >> > find 
> >> >> any.
> >> >> 
> >> >> I will appreciated your help.
> >> >> 
> >> >> Regards
> >> >>
> >> > 
> >> > 
> >> > 
> >> > 
> >> > Please note that this group is for discussion between users 
only.
> >> > 
> >> > To get support from AmiBroker please send an e-mail directly 
to 
> >> > SUPPORT {at} amibroker.com
> >> > 
> >> > For NEW RELEASE ANNOUNCEMENTS and other news always check 
DEVLOG:
> >> > http://www.amibroker.com/devlog/
> >> > 
> >> > For other support material please check also:
> >> > http://www.amibroker.com/support.html
> >> > 
> >> > Yahoo! Groups Links
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > -- 
> >> > No virus found in this incoming message.
> >> > Checked by AVG Free Edition. 
> >> > Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release 
Date: 
> > 2/29/2008 8:18 AM
> >> > 
> >> >
> >>
> > 
> > 
> > 
> > 
> > Please note that this group is for discussion between users only.
> > 
> > To get support from AmiBroker please send an e-mail directly to 
> > SUPPORT {at} amibroker.com
> > 
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> > 
> > Yahoo! Groups Links
> > 
> > 
> >
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
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/