| 
 PureBytes Links 
Trading Reference Links 
 | 
  
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@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Joris
M.schuller 
Sent: Thursday, January 28, 2010 12:13 PM 
To: amibroker@xxxxxxxxxxxxxxx 
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@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Aron 
Sent: Thursday, January 28, 2010 4:11 AM 
To: amibroker@xxxxxxxxxxxxxxx 
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. 
   
  
  
  
  
  
  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@xxxxxxxxxxxx 
   
   
   
   | 
  
 
  
  
 
  
  
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 
 
    
    
__._,_.___  
**** IMPORTANT PLEASE READ **** 
This group is for the discussion between users only. 
This is *NOT* technical support channel. 
 
TO GET TECHNICAL SUPPORT send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at 
http://www.amibroker.com/feedback/ 
(submissions sent via other channels won't be considered) 
 
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: 
http://www.amibroker.com/devlog/ 
 
    
    
      
  
__,_._,___  
 |   
 |