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 RookieTrader, Today, 09:37 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by kulwinder73, Today, 10:31 AM
      0 responses
      7 views
      0 likes
      Last Post kulwinder73  
      Started by terofs, Yesterday, 04:18 PM
      1 response
      24 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by CommonWhale, Today, 09:55 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Gerik, Today, 09:40 AM
      2 responses
      8 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Working...
      X