NexusFi: Find Your Edge


Home Menu

 





Show bar number above each tick bar


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one adbertram with 2 posts (0 thanks)
    2. looks_two WCwings with 1 posts (0 thanks)
    3. looks_3 ABCTG with 1 posts (2 thanks)
    4. looks_4 Tripken with 1 posts (1 thanks)
    1. trending_up 7,111 views
    2. thumb_up 3 thanks given
    3. group 5 followers
    1. forum 5 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
adbertram
Evansville, IN
 
Posts: 9 since Aug 2020
Thanks Given: 5
Thanks Received: 4

I'm struggling with a seemingly simple task; displaying a bar number of each tick bar in a strategy.

Here's what I currently have:

 
Code
Value1 = Text_New(Bardatetime.ElDate,Bardatetime.ELTime,H,Numtostr(CurrentBar,0));
Text_setcolor(Value1,Blue);
Text_setstyle(Value1,2,1);
I would have thought if I could get the current bar's date and time and then use that to plot the positions, it would work but alas, no dice.

Here's what it looks like:


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #2 (permalink)
 WCwings 
Orlando, Florida United States
 
Experience: Intermediate
Platform: MultiCharts
Trading: ES
Posts: 19 since Nov 2010
Thanks Given: 15
Thanks Received: 13

Why not display the highest high value and the lowest low value. It seems that is what you really want.

All the best,

WCwings


Reply With Quote
  #3 (permalink)
 
Tripken's Avatar
 Tripken 
Knoxville, TN/USA
Legendary Market Wizard
 
Experience: Beginner
Platform: TradeStation
Broker: TradeStation
Trading: ES
Frequency: Several times daily
Duration: Minutes
Posts: 641 since Feb 2010
Thanks Given: 1,750
Thanks Received: 1,428


This is the one I use when I want a bar count. Only counts every other due to clutter but perhaps you can modify the logic to suit your needs. Good Luck


Attached Files
Elite Membership required to download: BARCOUNT.ELD
Reply With Quote
Thanked by:
  #4 (permalink)
adbertram
Evansville, IN
 
Posts: 9 since Aug 2020
Thanks Given: 5
Thanks Received: 4


WCwings View Post
Why not display the highest high value and the lowest low value. It seems that is what you really want.

All the best,

WCwings

Because I just want the bar number?


Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

adbertram,

legacy EasyLanguage text drawings can only be drawn with minute accuracy and according to your screenshot you are using non time based bars where multiple bars can fall in the same minute. In case multiple bars happen within the same minute you will have multiple text labels on the first bar of that minute.
I would suggest taking a look at Object Oriented EasyLanguage drawing objects that will allow you to specify a bar number for the drawing.

Regards,

ABCTG


adbertram View Post
I'm struggling with a seemingly simple task; displaying a bar number of each tick bar in a strategy.

Here's what I currently have:

 
Code
Value1 = Text_New(Bardatetime.ElDate,Bardatetime.ELTime,H,Numtostr(CurrentBar,0));
Text_setcolor(Value1,Blue);
Text_setstyle(Value1,2,1);
I would have thought if I could get the current bar's date and time and then use that to plot the positions, it would work but alas, no dice.

Here's what it looks like:


Follow me on X Reply With Quote
Thanked by:
  #6 (permalink)
 
michaelleemoore's Avatar
 michaelleemoore 
Missoula, MT Nɫʔay(ccstm)
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader
Trading: CL, ES
Posts: 3,436 since Nov 2012
Thanks Given: 5,552
Thanks Received: 12,340

https://ninjatraderecosystem.com/user-app-share-download/bar-counter/

The numbers are under the bar, but otherwise ...


Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on September 29, 2020


© 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