NexusFi: Find Your Edge


Home Menu

 





Custom Bar Chart


Discussion in EasyLanguage Programming

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




 
Search this Thread

Custom Bar Chart

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
MC PL editor upgrade
MultiCharts
Quant vue
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
77 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 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


© 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