PureBytes Links
Trading Reference Links
|
Hi Bruiser,
you can detect Ticks by a volume change, something like that below.
Happy coding!
herman
Reset = Param("Reset Static Variables",0,0,1,1);
if( IsEmpty(StaticVarGet("IsInitialized")) OR Reset)
{
StaticVarSet("TickCounter",0);
StaticVarSet("PrevVol",0);
StaticVarSet("IsInitialized",1);
}
LastVol = LastValue(Volume);
PrevVol = StaticVarGet("PrevVol");
NewTick = PrevVol != LastVol;
if( NewTick )
{
TickCount = StaticVarGet("TickCounter");
StaticVarSet("TickCounter",++TickCount);
StaticVarSet("PrevVol",LastVol);
}
TickCount = StaticVarGet("TickCounter");
Title =
"\nDemo Tick counter, use Param() to Reset Counter"+
"\nPrevVolume= "+NumToStr(PrevVol,1.0,False)+
"\nLastVolume= "+NumToStr(LastVol,1.0,False)+
"\nTickCount: "+NumToStr(TickCount ,1,False);
-----Original Message-----
From: bruiserbbq [mailto:bruiserbbq@xxxxxxxxxxxx]
Sent: Thursday, August 12, 2004 12:07 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Tick counter for AB?
Does anyone use or know of a tick counter that will work for AB?
Cheers Bruiser
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
b.. To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|