NexusFi: Find Your Edge


Home Menu

 





Tickspeed


Discussion in EasyLanguage Programming

Updated
    1. trending_up 547 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

Tickspeed

  #1 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7

How would you write this in EL ?
Try to write this simple indicator.
Calculates X seconds back volume of tick bars and divides by x seconds.
Result – adjusted speed of trades.

Ideas appreciated

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7

ok I I broke it down like this :

input:
Seconds(60),
Length (10);

Vars:
Frequency(0);

If Barstatus = 2 then
begin
Frequency = (Ticks / Seconds);


Plot1(Frequency);
Plot2 (XAverage(Frequency,Length));
end;

but seemes to be bid impprecisely . A better way ?

Started this thread Reply With Quote
  #3 (permalink)
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157


Are you working in tradestation or multicharts. Tradestation does not have second timestamps accessible to EL code. If you are using a tick chart, the speed to fill the tick count is just the time it takes to complete the bar. Time - Time[1]

This will not work correctly in tradestation unless you are using a large enough tick setting that seconds are not important. IMO tradestation is impractical for Tick and volume bar analysis since it does not have access to seconds.

Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
toucan94506bm
danville ca usa
 
Posts: 73 since Aug 2015
Thanks Given: 48
Thanks Received: 75


jojojo View Post
How would you write this in EL ?
Try to write this simple indicator.
Calculates X seconds back volume of tick bars and divides by x seconds.
Result – adjusted speed of trades.

Ideas appreciated

if you are looking for tradestation code, here is what i have, but it only calculates in realtime, not historical time that is in minutes. this code is for tick charts and plots the seconds in each bar. i have verified it, but haven't tested it in real time... have to wait for monday to check in realtime.

hope this is what you are looking for... you should be able to adjust the code if needed.
toucan

var: sec(0), timeThisBar(0);
if getappinfo(airealtimecalc)=1
then begin

// Note: 86,400 seconds every 24 hours
sec = round (86400 * fracportion ( ComputerDateTime() ), 0);

timeThisBar = sec - sec[1];

if sec<sec[1] then timeThisBar = sec - sec[1] + 86400;
if timethisbar<=0 then timethisbar = absvalue(timethisbar);

if timethisbar[0]>=0
then plot1(timethisbar,"b1",green);
end;

Reply With Quote
  #5 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7

Thank you for this - I will check on Monday , too .
I'm working with Multicharts.

Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157

With multicharts you can use Time_s for bar timestamp to the second. If you are using a tick chart, speed to fill the tick count of your chart, just use

Plot1(Time_s - Time_s[1]);

Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7

Workes quite different comparing with my simple one

Attached Thumbnails
Click image for larger version

Name:	Screenshot_1.png
Views:	30
Size:	10.6 KB
ID:	336416  
Started this thread Reply With Quote
  #8 (permalink)
toucan94506bm
danville ca usa
 
Posts: 73 since Aug 2015
Thanks Given: 48
Thanks Received: 75


jojojo View Post
Workes quite different comparing with my simple one

use yours... mine is from about 10 years ago and may not work in todays software

cheers
toucan

Reply With Quote




Last Updated on November 20, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts