Realtime Candle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
JGM
Newbie
Newbie
Posts: 3
Joined: Wed Jan 25, 2006 12:00 am

Realtime Candle

Post by JGM » Mon Jun 11, 2007 4:45 pm

Hi

Is it possible to have a realtime price/time (minutes) series that dynamically updates a candle (O,H,L,C) as it is updated ? I will create the candle but need it to update as the new prices are added. Can the candle interval i.e. 5 mins / 10 mins also easily be changed.

Many thanks

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Tue Jun 12, 2007 8:00 am

Hi JGM

Yes, it's possible. You can do it as below code:

Code: Select all

int candleIndex = 0 ; //First candle.

            candle1.HighValues[candleIndex] = 6;
            candle1.OpenValues[candleIndex] = 5;
            candle1.CloseValues[candleIndex] = 3;
            candle1.LowValues[candleIndex] = 1;
            tChart1.Invalidate(); //It's necessary to repaint the chart with new values.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply