• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder - Conditions and Actions - Drawing

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

    Strategy Builder - Conditions and Actions - Drawing

    When I want to use the strategy builder to draw any object to mark a long or short entry, the tag is static such that the draw object may only be drawn once for the last entry.

    Any marks for prior entries are removed because the tag is static.

    It should be possible to select dynamic tags, such that all entries may be marked on the chart.

    #2
    Hello Harry,

    Thank you for the post.

    It is possible to set dynamic tags for drawing objects, you would just need to append the Misc -> Current Bar to your string.

    Here is an image of the string builder with current bar used: https://www.screencast.com/t/10hHQ17cqK

    After clicking "Add" to add a new row to the string, you can click inside of the box where it says Set to choose Misc -> Current Bar.

    To get to this screen, from the drawing object configuration where you have "Tag" you would click "Set" after hovering the mouse over "Tag".

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      Thank you for your answer.

      I have tried your suggestion, but it does not work. The tags are non-dynamic. When applying your method I get a string
      Code:
      @"MyCustomStrategy Dot_1 CurrentBars[0]"
      That string is static. What I need is this:
      Code:
      @"MyCustomStrategy Dot_1" + CurrentBars[0]

      Comment


        #4
        Hello Harry,

        Thank you for the reply.

        I am not seeing this, had you followed the steps I had provided or had you typed in CurrentBars[0]?

        Here is a video showing the process I followed to create a dynamic string: https://www.screencast.com/t/4Z5uptecsONS

        If you are using a different process that is resulting in a static string, can you provide the steps for that?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          The video explains well how to add the string. I simply did not know where to click.

          Thank you again for your help!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by liltr3d, Yesterday, 10:52 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by marekflys, Yesterday, 03:07 PM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by w0lverine, Today, 03:57 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Started by hundert, 02-24-2019, 07:55 AM
          2 responses
          43 views
          0 likes
          Last Post jpraema
          by jpraema
           
          Started by digibob, Today, 02:47 AM
          0 responses
          3 views
          0 likes
          Last Post digibob
          by digibob
           
          Working...
          X