Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 08-01-2009, 03:42 PM   #1

Join Date: Jun 2009
Location: Chicago
Posts: 35
Ignore this user

Thanks: 7
Thanked 18 Times in 11 Posts

TS--> Daily MAs on 5-Min Chart?

Hey Guys,
I was wondering if you guys knew if it was possible to get daily moving averages on a five minute chart in tradestation. Unfortunately, everything I can find is based off of bars on a chart as opposed to days.

Thanks,
Matt
jeffersondaarcy is offline  
Reply With Quote
Old 08-01-2009, 04:27 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: TS--> Daily MAs on 5-Min Chart?

this post might help:

http://www.traderslaboratory.com/for...aday-6442.html



Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
jeffersondaarcy (08-01-2009)
Old 08-01-2009, 08:36 PM   #3

Join Date: Jun 2009
Location: Chicago
Posts: 35
Ignore this user

Thanks: 7
Thanked 18 Times in 11 Posts

Re: TS--> Daily MAs on 5-Min Chart?

Big Time! Thanks Tams.
jeffersondaarcy is offline  
Reply With Quote
Old 08-04-2009, 07:11 AM   #4

Join Date: May 2007
Location: Toronto
Posts: 265
Ignore this user

Thanks: 9
Thanked 153 Times in 56 Posts

Re: TS--> Daily MAs on 5-Min Chart?

Quote:
Originally Posted by jeffersondaarcy »
Hey Guys,
I was wondering if you guys knew if it was possible to get daily moving averages on a five minute chart in tradestation. Unfortunately, everything I can find is based off of bars on a chart as opposed to days.

Thanks,
Matt
There is an easier and faster way to do it which will also work on all timeframes and styles of charts.

See: JAM - TradeStation EasyLanguage Indicator Utility Free

Bakrob
bakrob99 is offline  
Reply With Quote
The Following 2 Users Say Thank You to bakrob99 For This Useful Post:
jeffersondaarcy (08-04-2009), Tams (08-04-2009)
Old 08-04-2009, 07:24 AM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: TS--> Daily MAs on 5-Min Chart?

another way is to use the CloseD function.


simply insert the function into the price value input:






p.s. I have not tested this method, but theoretically it is workable.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
jeffersondaarcy (08-04-2009)
Old 08-04-2009, 07:28 AM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: TS--> Daily MAs on 5-Min Chart?

CloseD (Series Function)


The CloseD function allows you to reference the daily Close of previous days in an intraday chart (minute or tick-based) or a daily chart.

CloseD is a function in a family of functions that allows historical daily, weekly, monthly, and yearly references in intraday charts.


Syntax

CloseD( PeriodsAgo )


Returns (Double)

A numeric value for the current bar. If the PeriodsAgo parameter is out of range (> 50),
or there is not enough data, the function will return &endash;1.


Parameters

PeriodsAgo Numeric

The number of days/periods back to reference a previous day’s closing price.
(50 days back maximum) (0 = Today’s current Close)


Remarks

You must have enough intraday data in the chart in order to look back and reference any previous close.
For example, if you want to look back at the close of 25 days ago on a 5-minute chart,
you must have 25 days of 5-minute bars in the chart.

The value for the PeriodsAgo input parameter should always be a whole number greater than or equal to 0,
but less than 51. Setting PeriodsAgo to 0 equals today’s current Close.


Example

Assigns the Close of the previous day on an intraday chart to Value1, then plots Value1:

Value1 = CloseD(1);

Plot1(Value1, "PrevClose");


See Also related functions

HighD, LowD, OpenD, CloseW, CloseM, and CloseY.




source: EasyLanguage manual
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
trade-samarai (08-05-2009)
Old 08-04-2009, 11:43 AM   #7

Join Date: Jun 2009
Location: Chicago
Posts: 35
Ignore this user

Thanks: 7
Thanked 18 Times in 11 Posts

Re: TS--> Daily MAs on 5-Min Chart?

Thanks guys, much appreciated. I am good to go now.
jeffersondaarcy is offline  
Reply With Quote

Reply

Tags
multiple time frame

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Refer Daily Bar Value in an Intraday Chart in EL? rajatheroyal Automated Trading 2 07-25-2009 08:43 AM
YM daily chart discrepances?. Please, help jlferca Brokers and Data Feeds 6 11-03-2007 11:17 AM
Daily P&L targets waveslider Trading Psychology 7 06-01-2007 01:38 PM
Dow mini (YM) Daily Chart Analysis Soultrader Market Analysis 0 09-11-2006 05:59 PM
Daily Chart 8/17/06 Soultrader Technical Analysis 0 08-17-2006 09:12 AM

All times are GMT -4. The time now is 09:53 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.