NexusFi: Find Your Edge


Home Menu

 





Custom Bar Chart


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,471 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 LetmeInNow 
CA/USA
 
Experience: Intermediate
Platform: Tradestation
Trading: Stocks
Posts: 10 since Nov 2012
Thanks Given: 4
Thanks Received: 1

Hi Folks,

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


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #3 (permalink)
Pritch
Denver Colorado
 
Posts: 4 since Aug 2013
Thanks Given: 1
Thanks Received: 0



LetmeInNow View Post
Hi Folks,

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

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....?

Hope this helps!


Reply With Quote




Last Updated on August 29, 2013


© 2026 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 - Downloads - Top
no new posts