Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Make "Bars ago" variable within Strategy Builder.

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

    Make "Bars ago" variable within Strategy Builder.

    I'd like to be able to set "Bars ago" to be a variable (or an indicator that returns an integer). This will allow bars ago to dynamically change based on calculations done within a strategy.

    #2
    Hello cupir2,

    Thank you for the post.

    I do see that the BarsAgo field currently lacks the "Set" button which would allow for a user input selection. I will need to put in a feature request for this item. This would currently only be available if you unlock the code and then use the Input for the BarsAgo. This would also require that you add in a BarsAgo check to make sure there is enough data before doing that call.


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

    Comment


      #3
      Hello please i need too this set button in bars ago- I try build this strategy in builder and i can not change the n bars ago.

      https://ninjatraderecosystem.com/use...lors-strategy/

      Regards

      Comment


        #4
        Hello walter739,

        The linked script is a manually coded strategy, you could put a BarsAgo or any modifications you wanted in that script by using the NinjaScript editor. A majority of the content you may find online will be manually coded.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks for answer Jesse, do you have idea how i can pass this strategy to builder ? . I wish add other ideas and the editor is more complicated for me.

          Comment


            #6
            Hello walter739,

            With a manually coded strategy no, the builder has no ability to load manually coded scripts. You could try and learn from the concepts used in that strategy and then try to apply those concepts in the builder however that may or may not work depending on what the manually coded strategy is doing. It would be best to try and learn to code if you wanted to work with the manually coded strategies that you find on the user app share. You can also search on the forums here for "builder" to find some example scripts made for the builder. Here is one post that has a couple examples: https://ninjatrader.com/support/foru...596#post806596


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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by LeroyO, Today, 04:09 PM
            0 responses
            1 view
            0 likes
            Last Post LeroyO
            by LeroyO
             
            Started by sidlercom80, Today, 04:57 AM
            2 responses
            29 views
            0 likes
            Last Post NinjaTrader_Jim  
            Started by Tartagliagroup, Today, 02:11 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by rickyblah12, Today, 01:33 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by rcloutier, Today, 01:17 PM
            4 responses
            14 views
            0 likes
            Last Post rcloutier  
            Working...
            X