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

[amibroker] Re: Day's Name abbreviation.



PureBytes Links

Trading Reference Links


Dear Jerry,

Thank you very much for your kind help.

I'm not a professional to coding, I just started.

I try your code, but I couldn't make it change depending to the last 
day. Or when I click on any bar

Here I try to add the day's name to the Title:

Cond22 = 1;
Cond33 = 2;
Cond44 = 3;
Cond55 = 4;
Cond66 = 5;
Cond77 = 6;
Cond88 = 7;


_SECTION_BEGIN("Price");
//SetChartOptions(0,chartShowArrows|chartShowDates);
//_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %
g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( 
ROC( C, 1 ) ) ));
Plot( Close, "Price", colorBlack,ParamStyle( "Price Style", 
styleCandle, maskAll ) );
_SECTION_END();


Dayname = cond22 AND cond33 AND cond44 AND cond55 AND cond66 AND 
cond77 AND cond88;// DayOfWeek() == 0;

dist = 1*ATR(12);

for( i = 0; i < BarCount; i++ )
{
if( Cond22[i] ) PlotText( "Mon" , i, L[ i ]-dist[i], colorRed );
if( Cond33[i] ) PlotText( "Mon" , i, L[ i ]-dist[i], colorGreen );
if( Cond44[i] ) PlotText( "Tue" , i, L[ i ]-dist[i], colorGreen );
if( Cond55[i] ) PlotText( "Wed" , i, L[ i ]-dist[i], colorGreen );
if( Cond66[i] ) PlotText( "Thu" , i, L[ i ]-dist[i], colorGreen );
if( Cond77[i] ) PlotText( "Fri" , i, L[ i ]-dist[i], colorGreen );
if( Cond88[i] ) PlotText( "Sat" , i, L[ i ]-dist[i], colorGreen );
}


SetChartOptions(2, chartWrapTitle ); 
Title="Today  "    +   Dayname; 


Please Help.

Regards


















--- In amibroker@xxxxxxxxxxxxxxx, "Jerry Gress" 
<pleasenospamplease@xxx> wrote:
>
> Hello,
> 
> Perhaps something like below where Cond33/Cond44 are your plots of 
days.
> 
> 
> for( i = 0; i < BarCount; i++ ) 
> { 
> if( Cond33[i] ) PlotText( "Today is Monday" , i, L[ i ]-dist[i], 
colorRed );
> 
> if( Cond44[i] ) PlotText( "Friday"   , i, H[ i ]+dist[i], 
colorGreen ); 
> }
> 
> Jerry Gress
> Stockton, Ca.
> 
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On Behalf
> Of Mohammed
> Sent: Thursday, February 28, 2008 9:26 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Day's Name abbreviation.
> 
> 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
>




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/