Search found 18 matches

by Phineas
Thu Dec 03, 2009 9:18 pm
Forum: VCL
Topic: Extending TCursorTool to display over Custom Axes.
Replies: 1
Views: 4755

Extending TCursorTool to display over Custom Axes.

I want the vertical line of the TCursorTool to also extend across my custom axes. I want the tool to be assiged to Series1, but to display over other Series on custom axes. I figure I can spend some time coding this but do you folk have a quick method I can use.
by Phineas
Tue Dec 01, 2009 1:03 am
Forum: VCL
Topic: How to display custom vertical axis labels on BOTH sides.
Replies: 1
Views: 4565

How to display custom vertical axis labels on BOTH sides.

I am having problems displaying customvertical axis labels on both left and right sides. I know it can be done as I see it on the Tee8 demo. What am I missing?
by Phineas
Mon Sep 21, 2009 1:50 am
Forum: VCL
Topic: Annotation mouse click fires chart mouse click FIRST
Replies: 1
Views: 4719

Annotation mouse click fires chart mouse click FIRST

I have a problem with TAnnotations. I create them on the fly and place them on a chart and give them a click property. With MyAnnotation do OnClick := AnnotationClick; procedure Chart1.AnnotationClick(Sender: TAnnotationTool; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin If (Button...
by Phineas
Tue Jun 16, 2009 10:55 pm
Forum: VCL
Topic: How to draw a solid line at Y=0 on MACD Indicator
Replies: 1
Views: 4879

How to draw a solid line at Y=0 on MACD Indicator

I would like my MACD indicator to have an horizontal solid line at Y = Zero. What is the best way to go about that? Thanks.
by Phineas
Wed May 13, 2009 11:11 pm
Forum: VCL
Topic: Creating DrawLines in code at run time
Replies: 1
Views: 4986

Creating DrawLines in code at run time

I am having no joy creating a TDrawLineTool and placing it on the chart programmatically. TrendLineTool := TDrawLineTool.Create(Chart1); TrendLineTool.ParentChart := Chart1; TrendLineTool.Series := Series1; Chart1.Tools.Add(TrendLineTool); x1 := Series1.CalcXPosValue(Read Saved Position from TInifil...
by Phineas
Tue Feb 24, 2009 8:13 pm
Forum: VCL
Topic: Returning the X axis label when moving mouse
Replies: 3
Views: 7971

Yeray, the code you suggest will only function while the mouse is over the actual series. I require the X value as a date returned while the mouse is moving anywhere over the entire chart. I managed it thus. ValueIndex := Round(Series1.XScreenToValue(X)); Edit1.Text := Series1.Labels[ValueIndex]; I ...
by Phineas
Mon Feb 23, 2009 8:51 pm
Forum: VCL
Topic: Returning the X axis label when moving mouse
Replies: 3
Views: 7971

Returning the X axis label when moving mouse

I'm having a problem returning the X axis label. I load up the candle chart thus. With Series1 do begin For X := 1 To NumRecs do begin AddCandle( X, Stock_Data[X].Open, Stock_Data[X].High, Stock_Data[X].Low, Stock_Data[X].CloseP); DecodeDate(Stock_Data[X].Date, tmpYear, tmpMonth, tmpDay ); Labels[X]...
by Phineas
Thu Feb 05, 2009 1:49 am
Forum: VCL
Topic: Deriving new financial indicators
Replies: 3
Views: 7624

Narcis, I have managed to derive a few more indicators and they work well. Multiple Moving Average, Money Flow Index, William%R etc. All derived from TeeFunction. Question? Is it possible to have two different vertical scales overlayed in TCharts. One on the Left and one on the right, each displayin...
by Phineas
Tue Jan 27, 2009 11:15 pm
Forum: VCL
Topic: Deriving new financial indicators
Replies: 3
Views: 7624

Deriving new financial indicators

I have now incorporated all the TChart financial indicators into my project. I now need to add several more. Multiple Moving Average Money Flow Index Average True Range Rate of Change William %R etc Would it be possible to see a Delphi example of deriving new financial indicators. For example, deriv...
by Phineas
Wed Aug 13, 2008 2:51 am
Forum: VCL
Topic: Scrolling with LineSeries and CandleSeries
Replies: 1
Views: 5384

Scrolling with LineSeries and CandleSeries

I set up a simple chart as per the Scrollbar demo (TChart Pro 8) All works well with series1 as TLineSeries or FastLineSeries. BUT as soon as I make Series1 a TCandleSeries, my chart data never visibily makes it to the chart. The data is still there and the axes rescale appropriately, but where is m...
by Phineas
Wed Aug 06, 2008 9:08 pm
Forum: VCL
Topic: What happened to MinVisibleValue & MaxVisibleValue
Replies: 3
Views: 9237

Thanks for that Yeray Now how to use it. Would this be the call to the function? Chart1.LeftAxis.SetMinMax(MaxMinVisibleValue(false, true, 0, Chart1.LeftAxis), MaxMinVisibleValue(true, true, 0, Chart1.LeftAxis)); And where to place it. OnAddSeries OnAfterDraw OnBeforeDrawSeries OnBeforeDrawAxes OnSc...
by Phineas
Tue Aug 05, 2008 10:55 pm
Forum: VCL
Topic: What happened to MinVisibleValue & MaxVisibleValue
Replies: 3
Views: 9237

What happened to MinVisibleValue & MaxVisibleValue

I have searched everywhere, through the source code, through the examples. Where is:

MinVisibleSeriesValue
MaxVisibleSeriesValue
MinVisibleValue
MaxVisibleValue

I'm trying to get my left axis to scale correctly while scrolling.
Delphi6
TChart 8 VCL
by Phineas
Tue Aug 05, 2008 8:55 pm
Forum: VCL
Topic: Applying functions to scrollable charts.
Replies: 2
Views: 6849

Thanks for that Marc. I'll do a rewrite and get rid of the Delphi types, making all the Series data available to the Chart from the outset.
by Phineas
Sun Aug 03, 2008 8:44 pm
Forum: VCL
Topic: Applying functions to scrollable charts.
Replies: 2
Views: 6849

Applying functions to scrollable charts.

Applying functions to scrollable charts. I have a financial candle chart implemented as follows. The entire data for 3000 days is stored in a Delphi type. I display 250 records at a time in Series1, a scrollable chart. However, should I apply a 21 day Moving Average TFunction, then I can only apply ...
by Phineas
Fri Aug 01, 2008 1:12 am
Forum: VCL
Topic: First (Topmost) Node not receiving mouse clicks correctly
Replies: 1
Views: 11009

First (Topmost) Node not receiving mouse clicks correctly

Howdy, I have a small problem with TeeTree. I set up several nodes, either in designing mode or dynamically. It does not matter which. The problem is the very first (topmost) node. It will not always receive mouse clicks correctly. I have seen the fix in thread http://www.teechart.net/support/viewto...