Tuesday, January 06, 2009     | Register
TradersStudio Forums
Subject: How to get time between bars

You are not authorized to post a reply.   
Author Messages
thimel1
Posts:14

08-31-2007 5:13 PM Alert 

Is there a way from an indicator to determine the time between bars.  I would like to know if I am analyzing daily bars or 5 minute bars.  I am looking for the TradeStation equivalents of barInterval and barType functions.

Thanks

murray
Posts:435

08-31-2007 11:44 PM Alert 

TradersStudio® Date Functions --GetTimeFrame function

Returns Time Frame of the market.

<FONT size=2>val = <B>GetTimeFrame</B> </FONT>

Remarks

This function returns time frame of the market. Possible values are:

Value Meaning
0 One Minute
1 Five Minutes
2 Ten Minutes
3 Fifteen Minutes
4 Thirty Minutes
5 FortyFive Minutes
6 Sixty Minutes
7 Daily
8 Weekly
9 Monthly
10 Quarterly
11 Yearly

 

You are not authorized to post a reply.
Forums > TradersStudio 2.x > TradersStudio Basic > How to get time between bars



ActiveForums 3.6
TradersStudio® Copyright 2004-2009 All Rights Reserved   |  Privacy Statement  |  Terms Of Use