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

Reply
Old 06-19-2009, 11:12 AM   #1

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 551 Times in 228 Posts

Tick Counter for Multicharts?

I've used both the "TickCountDown.eld" available on this forum and the "Tick Counter 2000" available from TS forums and while they technically work...

the countdown moves from out of view on the far right hand side of the chart, and inches closer and closer to the actual candle with every tick, then gets there and gets kicked out again to the point where you can't see it.

Does anyone know of a workaround or fix for this to make it behave like in TS where it just stays a space away from the current bar on the chart?

I've attached a small 0:43 .avi file of a chart showing the behavior.

Thanks for your help!!!
Attached Files
File Type: avi capture-1.avi (2.23 MB, 37 views)
daedalus is offline  
Reply With Quote
Old 06-20-2009, 10:46 AM   #2

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 551 Times in 228 Posts

Re: Tick Counter for Multicharts?

Thus far, as a pseudo fix until I can get a bit more help from people in the know I used Tams "Masthead" code and fixed the counter to the top of the screen for the time being.

It would work I suppose. I just wish I could get the standard code to work.

If you all have any ideas or suggestions I'd appreciate it.

Otherwise, thanks Tams as always for giving us the tools to fix some of our problems on our own.
daedalus is offline  
Reply With Quote
The Following User Says Thank You to daedalus For This Useful Post:
Tams (06-20-2009)
Old 06-20-2009, 10:52 AM   #3

Join Date: Dec 2006
Location: new york
Posts: 31
Ignore this user

Thanks: 1
Thanked 13 Times in 8 Posts

Re: Tick Counter for Multicharts?

This one worked for me in MC

Code:
	 
inputs:  
	HOffset        (2), 
	VOffset        (2), 
	AlertLevel    (50), 
	TextColor  (White), 
	AlertColor(yellow); 
 
vars:  
	txt       (0), 
	str     (" "), 
	Count     (0), 
	CountTotal(0), 
	price     (0);	 
   
price = close;	// price at which the text will be printed	 
 
if BarStatus(1) = 0 then //opening tick of each new bar ...so reset params to Zero 
begin 
	count      =   0; 
	CountTotal =   0; 
	str        = " "; 
end;  
 
count      = upticks   +  downticks;  // total the volume during the bar 
CountTotal = BarInterval  -   count;  // Subtract the volume from the Bar Interval Total 
str        = "    "+numtostr(CountTotal,0);  // Convert the remaining count to text 
 
if Barnumber = 1 then  // First bar print the number text 
begin 
		txt = text_new(date,Calctime( Time, HOffset),close ,str); 
		text_SetStyle(txt,0,VOffset); 
		text_SetColor(txt,TextColor); 
 
end else begin // 'move' the number to the right, update it, instead of delete and redraw.  Mo' efficient. 
 
		text_SetString(txt,str); 
              text_SetColor(txt,TextColor); 
		text_SetLocation_s(txt,date,time_s,	(h+l)/2);		 
 
end; 
 
{//see if time for alert 
if CountTotal <= AlertLevel then 
begin 
	text_SetColor(txt,AlertColor); 
	alert("Less than " + numtostr(AlertLevel,0)+" Shares Remaining !"); 
end; }
insideday is offline  
Reply With Quote
The Following 2 Users Say Thank You to insideday For This Useful Post:
daedalus (06-20-2009), simterann22 (11-11-2011)
Old 06-20-2009, 11:03 AM   #4

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 551 Times in 228 Posts

Re: Tick Counter for Multicharts?

Thanks! It looks like that might work! I'll have to wait until markets open at 4 on sunday to confirm it doesn't do the same behavior as before but I think it could work.

Thanks man!
daedalus is offline  
Reply With Quote
Old 06-20-2009, 11:24 AM   #5

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: Tick Counter for Multicharts?

Quote:
Originally Posted by daedalus »
Thanks! It looks like that might work! I'll have to wait until markets open at 4 on sunday to confirm it doesn't do the same behavior as before but I think it could work.
Thanks man!

if you are using MC, you can connect to InteractiveBroker's demo system.
It streams day-old data for testing purposes.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (06-20-2009)
Old 06-20-2009, 11:25 AM   #6

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: Tick Counter for Multicharts?

Quote:
Originally Posted by daedalus »
Thus far, as a pseudo fix until I can get a bit more help from people in the know I used Tams "Masthead" code and fixed the counter to the top of the screen for the time being.

It would work I suppose. I just wish I could get the standard code to work.

If you all have any ideas or suggestions I'd appreciate it.

Otherwise, thanks Tams as always for giving us the tools to fix some of our problems on our own.

I am not giving away anything free; it still requires sweat.
I am can only help people who want to help themselves.

;-)
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (06-20-2009)

Reply

Tags
countdown, timer

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
Trading with Market Statistics VIII. Counter Trend Trades in Symmetric Distributions jperl Market Profile 48 04-11-2011 03:02 PM
Connecting OEC to MultiCharts spyro Open E Cry 13 12-08-2009 03:58 AM
Help Converting EFS to MultiCharts rdkyote Coding Forum 3 11-03-2008 09:41 AM
Tick Counter for Tradestation dow(n) Coding Forum 2 02-16-2008 04:17 PM
Multicharts ptop Beginners Forum 8 11-04-2007 05:38 AM

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