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

Reply
Old 03-07-2010, 05:01 AM   #1

Join Date: Jan 2010
Location: Seoul
Posts: 20
Ignore this user

Thanks: 7
Thanked 2 Times in 2 Posts

(TS) How to Measure Time Between Bars in Seconds?

Hello. Great TL dudes~

Im going to measure time in seconds between bars
in example,
if current bar's time is 09:10:50 (hh/mm/ss) and previous bar's time is 09:09:30
time between two bars is 80 seconds.

How can I calculate this ??
Im a beginner of EL coding.
Thanks.
duhhhh is offline  
Reply With Quote
Old 03-07-2010, 12:33 PM   #2

Tams's Avatar

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

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

Re: (TS) How to Measure Time Between Bars in Seconds?

it is easy to do with MultiCharts...

because MultiCharts has extended the EasyLanguage to the sub-minute level.


time_lapsed = time_s - time_s[1];


I don't know how it's done in tradestation.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
duhhhh (03-08-2010)

Reply

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
Tick Bars trade4life Linnsoft 6 12-24-2009 10:25 PM
Request : Refresh Chart Automaticly Every 5 Seconds or 10 Seconds (code) wwf Coding Forum 6 08-22-2008 04:14 PM
Range Bars vs Tick bars walterw Technical Analysis 14 07-16-2007 06:27 PM
TS Clock with Seconds BocaTrader Coding Forum 8 03-30-2007 02:46 PM
Pinochio Bars Don4 Beginners Forum 10 03-28-2007 08:43 PM

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