Page 1 of 1

Charting in real time

Posted: Sat Jun 23, 2007 7:12 pm
by traderxman
Can anyone help explain how one could code this one...use daily (H+L+C/3) and weekly (H+L+C/3) to plot a line on a 5 minute chart. For example, to plot a real time line of (H+L+C/3) for the current days and weeks values as they update with each 5 minute bar.
Finally having 2 lines that changed during the current trading day in real time, every 5 minute bar. No idea on how to use the daily and weekly values in a code for a 5 minute chart.

Any help is appreciated. THanks in advance!.

TX

Posted: Sat Jun 23, 2007 11:52 pm
by TheRumpledOne
What platform?

Posted: Thu Jun 28, 2007 5:33 pm
by traderxman
TradeStation 8.2
Version: 8.2 (Build 3896)

Discovered the HighD (0), LowD (0), CloseD (0) and the use of it with W, M & Y.

Looking to create using ADU, a 60 minute envelope on a 5 minute chart. Or GV or ???

3 plot Envelope is: This was used for daily bars, but I would like to use it on 60 minute bars. So HighD(1) would be High of the previous 60 minute bar.

Envelope Top:
(((2*((HighD(1)+LowD(1)+CloseD(1))/3)) -LowD(1)) + ((2*((HighD(2)+LowD(2)+CloseD(2))/3))-LowD(2)) + ((2*((HighD(3)+LowD(3)+CloseD(3))/3))-LowD(3)))/3;

Envelope Center:
((((HighD(1)+LowD(1)+CloseD(1))/3) + ((HighD(2)+LowD(2)+CloseD(2))/3) + ((HighD(3)+LowD(3)+CloseD(3))/3))/3);

Envelope BOttom:
( ((2*((HighD(1)+LowD(1)+CloseD(1))/3)) -HighD(1)) + ((2*((HighD(2)+LowD(2)+CloseD(2))/3))-HighD(2)) + ((2*((HighD(3)+LowD(3)+CloseD(3))/3))-HighD(3)))/3 ;

Here is what I came up with...but it does not work.

if DeriveBars = 0 or ADE.DeriveBigBar(Interval) then begin
if ADE.OnNextBar(Class, Sym, Interval) then begin

Value1 = ADE.GetOHLCV(Sym, Interval, ADE.BarID, vOpen, vHigh, vLow, vClose, vVolume);
Value1 = ListN.PushBack(ListID, ((((vHigh[1]+vLow[1]+vClose[1])/3) + ((vHigh[2]+vLow[2]+vClose[2])/3) + ((vHigh[3]+vLow[3]+vClose[3])/3))/3));



Best,

TX

Thanks.