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 Tripken with 1 posts (1 thanks)
    3. looks_3 michaelleemoore with 1 posts (0 thanks)
    4. looks_4 WCwings with 1 posts (0 thanks)
    1. trending_up 6,411 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?
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 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: 624 since Feb 2010
Thanks Given: 1,573
Thanks Received: 1,368


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,434 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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
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,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