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

Reply
Old 01-28-2009, 10:01 AM   #1

Join Date: Jan 2008
Location: San Francisco
Posts: 394
Ignore this user

Thanks: 17
Thanked 338 Times in 156 Posts



EasyLanguage Indicator -- How Long (in Min) 1500 Tick Bar Took to Complete

I am trying to create something similar to Average True Range... but instead of range it would compare ticks to time. ie, the last 14 tick bars took on average XX minutes.... it would use the time stamps of the bars and the number of bars.... doesn't 'seem' like this would be too hard -- but I don't know how to do such code...

can anyone help out?
Frank is offline  
Reply With Quote
Old 01-28-2009, 10:30 AM   #2

Join Date: Nov 2006
Location: N/A
Posts: 613
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts



Re: EasyLanguage Indicator -- How Long (in Min) 1500 Tick Bar Took to Complete

Quote:
Originally Posted by Frank »
I am trying to create something similar to Average True Range... but instead of range it would compare ticks to time. ie, the last 14 tick bars took on average XX minutes.... it would use the time stamps of the bars and the number of bars.... doesn't 'seem' like this would be too hard -- but I don't know how to do such code...

can anyone help out?
You can use this is a starting point.

http://www.traderslaboratory.com/for...-bar-1465.html
sevensa is offline  
Reply With Quote
Old 01-28-2009, 01:24 PM   #3

Join Date: Jan 2008
Location: San Francisco
Posts: 394
Ignore this user

Thanks: 17
Thanked 338 Times in 156 Posts



Re: EasyLanguage Indicator -- How Long (in Min) 1500 Tick Bar Took to Complete

thanks,

someone sent me this fyi which seems to work for me:

-----------

if (BarType = 0) then begin { tick bars }
if date = date[1] then begin
value1 = (TimeToMinutes(time)-TimeToMinutes(time[1]));

if value1<=15 then plot1(value1,"tick time");
if value1>15 then plot2(15,"15");
plot3(5,"5");
end;
end;



-----------



note, it maxes out for 15 minutes so that the chart doesn't skew entirely for globex session --- ie, it might take hours to complete a tick bar

btw, I was trying to target a 5-minute chart on ticks just as a benchmark to gauge 'activity' -- in terms of are ticks acting unusualy vs a 5-minute 'benchmark'...
Attached Thumbnails
EasyLanguage Indicator -- How Long (in Min) 1500 Tick Bar Took to Complete-ticktominutes.png  

Last edited by Frank; 01-28-2009 at 01:33 PM.
Frank is offline  
Reply With Quote
Old 03-16-2010, 11:47 AM   #4

Join Date: Oct 2006
Location: na
Posts: 307
Ignore this user

Thanks: 33
Thanked 88 Times in 58 Posts



Re: EasyLanguage Indicator -- How Long (in Min) 1500 Tick Bar Took to Complete

I was just wondering you got this to sill work on OEC, i know this thread is a little old so dont know if you are even using anything like this anymore. Anyways, it doesnt seem to be working for me (on both volume and tick charts) . The attached screen shot shows 1,000 volume chart. Seems to be taking a cumulative calculation or something like that.

Any ideas?
trader273 is offline  
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ward's $TICK, $TRIN, $TIKQ, $TRINQ and $VIX RadarScreen Indicator Robert2617 Trading Indicators 6 09-02-2010 03:27 AM
Clear Tick Indicator Minetoo Coding Forum 9 03-11-2009 02:38 AM
EasyLanguage Question on Tick Upate bulldogcajun Linnsoft 1 09-11-2008 04:26 PM
$Tick Long Tails & Head Wick minoo Market Internals 6 09-05-2008 10:26 PM
S&P to 1500 baseballplayer Futures Trading Laboratory 2 04-24-2007 03:59 PM

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