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 6,383 views
    2. thumb_up 3 thanks given
    3. group 5 followers
    1. forum 5 posts
    2. attach_file 2 attachments




 
Search this Thread

Show bar number above each tick bar

  #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?
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
50 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
31 thanks
What percentage per day is possible? [Poll]
31 thanks

  #2 (permalink)
 WCwings 
Orlando, Florida United States
 
Experience: Intermediate
Platform: MultiCharts
Trading: ES
Posts: 19 since Nov 2010
Thanks Given: 15
Thanks Received: 12

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
Market Wizard
 
Experience: Beginner
Platform: TradeStation
Broker: TradeStation
Trading: ES
Frequency: Several times daily
Duration: Minutes
Posts: 623 since Feb 2010
Thanks Given: 1,562
Thanks Received: 1,364


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
The following user says Thank You to Tripken for this post:
  #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,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

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 Twitter Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
  #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,328

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

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

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





Last Updated on September 29, 2020


© 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