Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now, It is Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
Available coupon codes for premium Elite Membership:
If you are a researcher and pay attention to details, you qualify for our 10% discount - "CHARTIST"
If you are a veteran or in public/community service, you qualify for 15% discount - "PURPLECHART"
If you are 60+ years old, you qualify for our 20% discount - "WISDOM"
Discounts are based on the honor system. If we can't trust you to do the right thing, please move along.
(If you already have an account, login at the top of the page)
Need some help with displaying the duration of a Tick Bar as an indicator.
I.E I want to know how long it took for a each bar on a tick chart to complete: it will obviously be different for each bar e.g. 120secs, 180 secs, 20secs etc etc.
I can use the Time reserved word to work out the time each bar closed, but not sure how to convert that to seconds and also to find out what time the bar opened, in order to work out the elapsed time.
Hope someone can help.
Many Thanks
Can you help answer these questions from other members on NexusFi?
You can pull the time in seconds it took to draw a tick bar by using the time pulled from you computer via the "ComputerDateTime" call. The following code should work with intrabarpersist disabled. The variable "LastDuration" will hold the time in seconds it took the last bar to form.
The following 6 users say Thank You to Jeff65 for this post:
this code is very helpful. Also on a similar quest in Tradestation. It does a great job of posting real time. Does anyone know a way of Storing that data in case of chart reload etc?
Can someone help me with this simple code pls.
I am collecting the data in seconds between each bar with the suggested code.
But it only plots that data starting from the time I put that indicator on the screen.
Obviously, close-to-close comparison should be done.
But I am inexperienced to do that simple change.