Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

adding CurrentBar number to draw vert line tag

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    adding CurrentBar number to draw vert line tag

    i'ld like to add the CurrentBar number to the tag string of a vertical line drawn by a strategy so that all the instances stay on the chart instead of just the last instance - i'm trying to do this in the string builder associated with the Draw Vertical line "do the following" and am only locking up the chart when i try... /thx

    #2
    Hello stafe,

    Thank you for your post.

    I'm including a number of screenshots to help illustrate how to add the CurrentBar number to your tag.

    Click image for larger version

Name:	2019-04-26_1255.png
Views:	89
Size:	41.6 KB
ID:	1055393
    Click image for larger version

Name:	2019-04-26_1303.png
Views:	88
Size:	24.3 KB
ID:	1055394
    Click image for larger version

Name:	2019-04-26_1259.png
Views:	87
Size:	31.3 KB
ID:	1055395

    Click image for larger version

Name:	2019-04-26_1302.png
Views:	96
Size:	25.0 KB
ID:	1055396

    Here's a link to our help guide that goes over using Drawing Objects in the Strategy Builder - there's a lot of conditions and actions that can be referenced in those tags:


    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      thanks, not sure why the "CurrentBars[0]" confused me - i'm used to using "+ CurrentBar" when i write an indicator... have a good weekend !!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,609 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      16 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X