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

RE: [amibroker] I don't have a line between each month ? Extension


  • Date: Thu, 28 Jan 2010 16:21:48 -0800 (PST)
  • From: ricko@xxxxxxxxxx
  • Subject: RE: [amibroker] I don't have a line between each month ? Extension

PureBytes Links

Trading Reference Links

If you add |styleDashed after styleHistogram  in the hour separation part the lines look like the other gridlines

Best Regards
Rick

--- On Thu, 1/28/10, Joris Schuller <jschuller@xxxxxxxxxxx> wrote:

From: Joris Schuller <jschuller@xxxxxxxxxxx>
Subject: RE: [amibroker] I don't have a line between each month ? Extension
To: amibroker@xxxxxxxxxxxxxxx
Date: Thursday, January 28, 2010, 10:08 PM

 

Occasionally I use also hour lines, which can be turned on and off. See code below.

 

Title = EncodeColor(4)+ _DEFAULT_NAME()+";  "+EncodeColor(1) + StrFormat("{{NAME}} - {{INTERVAL}} ; {{DATE}}; O=%g, H=%g, L=%g, C=%g (%.1f%%)
{{VALUES}}
", O, H, L, C, SelectedValue( ROC( C, 1 ) ) );
SetChartOptions(2,chartShowDates);
SetChartBkColor( colorLightGrey ) ;
HourLineSel=
ParamToggle("Hour Separator On","No|Yes",1);
Plot(C,"C",1,64);

//Current Month in green
Vertical=
IIf(Month()!=Ref(Month(),-1),1,0);
Plotcolor =
IIf(Now(format=7) ==Month(),colorGreen,IIf(Month()!=Ref(Month(),-1),1,colorLightGrey));
Plot(Vertical,"",Plotcolor,styleHistogram|styleOwnScale|styleNoLabel);

//Current Day in blue
Vertical=
IIf(DateNum()!=Ref(DateNum(),-1),1,0);
Plotcolor =
IIf(Now(format=3) ==DateNum(),6,IIf(DateNum()!=Ref(DateNum(),-1),1,colorLightGrey));
Plot(Vertical,"",Plotcolor,styleHistogram|styleOwnScale|styleNoLabel);

//Hour Separation
if(HourLineSel)
{
Vertical=
IIf(Hour()!=Ref(Hour(),-1),1,0);
Plot(Vertical,"",colorGrey50,styleHistogram|styleOwnScale|styleNoLabel);
}

 

From: amibroker@xxxxxxxxx ps.com [mailto:amibroker@ yahoogroups. com] On Behalf Of Joris M.schuller
Sent: Thursday, January 28, 2010 12:13 PM
To: amibroker@xxxxxxxxx ps.com
Subject: RE: [amibroker] I don't have a line between each month ?

 

 

1. You should see a monthly separator in Daily, not in Monthly timeframe. Similarly you will not see a daily separator in Daily timeframe.

2. Verify that grid and background are set to different colors in Tools/Preferences/ Colors: The fact that you see a monthly separator in 5-15 min. suggest that they are different.

3. Verify that there is no code overriding the Preferences settings, for example SetChartBkColor( colorBlack )  when grid color is set to black.

 

Personally, I don’t use the separators selected in the Preferences, because the dot separations are too far spaced apart to be easily seen when stepping rapidly through a chart. 

Instead I use code like shown below (most recent month/day are in different colors than previous months/days) .   In the sub-daily timeframes this will show vertical lines at daily/monthly starts.  In the daily/weekly/ monthly time frame this will result in small tick marks at the day/week/month bars.

 SetChartOptions(2,chartShowDates);
SetChartBkColor( colorLightGrey ) ;
Plot(C,"C",1,64);
Vertical=IIf( Month()!= Ref(Month( ),-1),1,0);
//Current Month in green
Plotcolor = IIf(Now(format=7) ==Month(),colorGreen,IIf(Month() !=Ref(Month( ),-1),1,colorLightGrey));
Plot(Vertical,"",Plotcolor,styleHistogram|styleOwnScale|styleNoLabel);

//Current Day in bluegreen
Vertical=IIf( DateNum() !=Ref(DateNum( ),-1),1,0);
Plotcolor = IIf(Now(format=3) ==DateNum(),6,IIf(DateNum( )!=Ref(DateNum( ),-1),1,colorLightGrey));
Plot(Vertical,"",Plotcolor,styleHistogram|styleOwnScale|styleNoLabel);

           

 

From: amibroker@xxxxxxxxx ps.com [mailto:amibroker@ yahoogroups. com] On Behalf Of Aron
Sent: Thursday, January 28, 2010 4:11 AM
To: amibroker@xxxxxxxxx ps.com
Subject: Re: [amibroker] I don't have a line between each month ?

 

preferences>charting>show vertical line between months

On 1/28/2010 2:14 AM, Yves wrote:

I'm made my graphe(PBC,MA, etc...)

But I don't have a line between each month in Daily and monthly

I'm have It in 5,15 and 60 minute.

 

WHY ?

 

Merci
 
YLTech ( Yves L. )
 
Le présent message et les documents qui y sont joints sont réservés exclusivement au destinataire indiqué. Il est strictement interdit d'en utiliser ou d'en divulguer le contenu. Si vous recevez le présent message par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin que nous puissions corriger nos dossiers. Merci.
 
This message and the attached documents may contain privileged or confidential information that are intended to the addressee only. Any unauthorized disclosure is strictly prohibited. If you happen to receive this message by error, please delete it and notify us immediately so that we may correct our internal records. Thank you.
 
yltech@xxxxxxxxxx ca



 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2651 - Release Date: 01/28/10 01:36:00

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2651 - Release Date: 01/28/10 01:36:00