Page 1 of 1

Candle serie - Open and Close bars size issue

Posted: Tue Aug 03, 2004 12:08 pm
by 9080443
Hi,

For some reason an open bar is drawing shorter size than close one. How I can make them of the same size, i.e. open would be the same size as close?

Thank you in advance.

Michael.

Posted: Wed Aug 04, 2004 2:20 pm
by Pep
Hi Michael,

how can I see what you mean ?

Posted: Thu Aug 05, 2004 12:21 pm
by 9080443
Hi Josep,

Please see the screenshot of what I'm talking about. You should see that an open bar (the one to the left) is shorter than close bar (the one to the right).

http://www.softasap.net/candle_bars_issue.gif

Posted: Tue Aug 10, 2004 11:31 am
by Pep
Hi Michael,

It appears that it may be a paint issue relating to the start pixel position of the open/close. We’ll take a closer look at the code to see what might need to be done. We’ll get back to you.

Posted: Mon Sep 06, 2004 11:56 am
by Pep
Hi Michael,

it's a bug, we'll fix it for the next maintenance releases. It only happens using the default EndStyle of the Pen. Setting it to esSquare shows correct sizes :
TChart1.Series(0).asCandle.Pointer.Pen.EndStyle = esSquare

Posted: Tue Sep 07, 2004 12:49 pm
by 9080443
Hi Josep,

Thank you for info and making research on it. It's appreciated!

Regards,
Michael.

Posted: Tue Sep 06, 2005 12:32 pm
by 9080443
Hi Guys,

Have an issue been fixed yet? Thanks.

Posted: Sun Sep 11, 2005 9:18 pm
by Pep
Hi Michael,

it seems it's working fine using the latest v7.05 version. Could you please download it and check if it works fine for you ?

Posted: Tue Sep 13, 2005 10:44 am
by 9080443
Thank you Josep for reply, I will try it just now.

Posted: Tue Sep 13, 2005 12:39 pm
by 9080443
Hi Josep,

Well it looks like close/open bars are still different size.

Posted: Thu Sep 15, 2005 3:29 pm
by 9080443
Hi Guys,

So any thoughts in which release it could be fixed? Thank you in advance.

Posted: Fri Sep 16, 2005 3:41 pm
by Pep
Hi,

which code are you using to see the problem ? I just cannot reproduce it here now ?

Posted: Sun Sep 18, 2005 11:03 am
by 9080443
Hi Pep,

The basic code to create OHLC chart, nothig's special. Here it is:

Code: Select all


	m_pChart->GetAspect().SetView3D(FALSE);  
		m_pChart->GetPanel().SetColor(RGB(0,0,0));
		m_pChart->GetPanel().SetMarginBottom(10);

  
		m_pChart->Series(nSeriesIndex).GetAsCandle().SetCandleStyle(1); //csCandleBar   
		m_pChart->Series(nSeriesIndex).GetAsCandle().SetCandleWidth(5);
		m_pChart->Series(nSeriesIndex).GetAsCandle().SetUpCloseColor(RGB(0,255,0)); 
		m_pChart->Series(nSeriesIndex).GetAsCandle().SetDownCloseColor(RGB(0,255,0));



		m_pChart->Series(nSeriesIndex).GetMarks().SetVisible(FALSE);
				

		m_pChart->Series(nSeriesIndex).SetColor(RGB(106,181,255));  
	  
		m_pChart->GetWalls().GetBack().GetPen().SetColor(RGB(128,128,128));    
		m_pChart->GetWalls().GetBack().GetPen().SetStyle(psSolid);
		m_pChart->GetWalls().GetBack().GetPen().SetWidth(2);

 
		//Setting for Bottom Axis
		//setting color
		CAxisLabels cBottomAxisLabels=cBottomAxis.GetLabels();   
		cBottomAxisLabels.GetFont().SetColor(RGB(255,255,255));   
		//setting value format
		//cBottomAxis.GetLabels().SetValueFormat("0.00");
		//setting ticks style
		cBottomAxis.GetAxisPen().SetStyle(psSolid);
		//setting ticks color
		cBottomAxis.GetAxisPen().SetColor(RGB(128,128,128));
		//setting ticks width
		cBottomAxis.GetAxisPen().SetWidth(2); 
		//setting grid style
		cBottomAxis.GetGridPen().SetStyle(psSolid);
		
		//setting grid color
		cBottomAxis.GetGridPen().SetColor(RGB(49,49,49));
		
		//setting grid width
		cBottomAxis.GetGridPen().SetWidth(2); 
		//setting minor len
		cBottomAxis.SetMinorTickLength(2);
		
		//Setting for Left Axis
		CAxis cLeftAxis=cAxes.GetLeft(); 

		//cLeftAxis.AdjustMaxMin(); 
		cLeftAxis.SetAutomatic(TRUE); 
	/*
		long nAxesNumber = cAxes.AddCustom(FALSE); 
		CAxis cLeftAxis = cAxes.GetCustom(nAxesNumber);
		
		//cLeftAxis.SetPositionPercent(50); 
	m_pChart->Series(nSeriesIndex).SetVerticalAxis(nAxesNumber);
	*/
		 
			
		//setting color
		cLeftAxis.GetLabels().GetFont().SetColor(RGB(255,255,255));   
		//setting value format
		cLeftAxis.GetLabels().SetValueFormat("0.00");
		//setting ticks style
		cLeftAxis.GetAxisPen().SetStyle(psSolid);
		//setting ticks color
		cLeftAxis.GetAxisPen().SetColor(RGB(128,128,128));
		//setting ticks width
		cLeftAxis.GetAxisPen().SetWidth(2); 
		//setting grid style
		cLeftAxis.GetGridPen().SetStyle(psSolid);
		
		//setting grid color
		cLeftAxis.GetGridPen().SetColor(RGB(110,110,110));
		
		//setting grid width
		cLeftAxis.GetGridPen().SetWidth(1); 
		//setting minor len
		cLeftAxis.SetMinorTickLength(0);

Posted: Mon Sep 19, 2005 8:53 am
by Pep
Hi Michael,

ok, thanks but which data values are you adding in order to notice the problem ?