NexusFi: Find Your Edge


Home Menu

 





Custom Bar Chart


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,557 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?
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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