Charting in real time

post your indicators here

Moderator: moderators

traderxman
rank: <50 posts
rank: <50 posts
Posts: 18
Joined: Thu Jan 11, 2007 9:42 pm
Reputation: 0
Gender: None specified

Charting in real time

Postby traderxman » Sat Jun 23, 2007 7:12 pm

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

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 15672
Joined: Sun May 14, 2006 9:31 pm
Reputation: 3038
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Postby TheRumpledOne » Sat Jun 23, 2007 11:52 pm

What platform?
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!

Please do NOT PM me with trading or coding questions, post them in a thread.

traderxman
rank: <50 posts
rank: <50 posts
Posts: 18
Joined: Thu Jan 11, 2007 9:42 pm
Reputation: 0
Gender: None specified

Postby traderxman » Thu Jun 28, 2007 5:33 pm

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.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “Tradestation indicators”