Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for 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
(If you already have an account, login at the top of the page)
Wanted to get some ideas how I can create a custom bar chart in tradestation. Say I am looking at a minute chart. I want to record the first 5 minutes as a single bar (O,H,L,C) and the next 10 minutes as the 2nd bar for the day being 15 minutes into the regular session, next 20 minutes as the 3rd bar and being 35 minutes into the regular session, ext. unit the end of the regular session.
My first challenge I/m running into is keeping track of the bar number since the start of the session.
Thank you beforehand
Can you help answer these questions from other members on NexusFi?
This is just an idea but might work: Use a 5 minute chart and then create sections using
If (Time >= calcTime(sessionStartTime(0,1), 1 * Barinterval)) and (Time <= calcTime(sessionStartTime(0,1), 5 * Barinterval)) then //this would be for the first 5 minutes
then: If (Time >= calcTime(sessionStartTime(0,1), 6 * Barinterval)) and (Time <= calcTime(sessionStartTime(0,1), 15 * Barinterval)) then //this would be for the next 10 minutes
and so on....
Then within each range calculate the highest(high,5) & lowest(Low,5) & Open[5] & close[0] and assign them values (this for the first 5 minutes)- do that for each range....?