Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

create an indicator

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

    create an indicator

    hello
    at the moment I created a strategy to draw into chart some arrows and diamonds.
    but it's a strategy and I wish could be an indicator

    I created the strategy with strategy builder, any idea how to convert it into an indicator?

    #2
    Hello hellboy78,

    To do that you would need to open the strategy and click View Code. With the code view open in one window you can open a second NinjaScript editor window to make a new empty indicator.

    Indicators and strategies are very similar so you can copy/paste most logic that was generated from the strategy into the indicator. The Indicator wouldn't support any trading syntax that the strategy may use but can use drawing objects, indicators, general conditions that you made in the builder.

    I would suggest taking a look at some of the other indicators as well so you can see how each is coded and where the code goes in the script. Strategies that are created with the builder will have a large section of code at the bottom which you won't need to copy as well.

    Comment


      #3
      basically I have to create the indicator from scratch

      Comment


        #4
        Hello hellboy78,

        You would need to create a new empty indicator but you can otherwise reuse your code so not really from scratch. As mentioned strategies and indicators share a majority of code and structure so most of what you already have can be re used. Indicators are a manually coded item so to do what you are asking you would have to view the strategies code and use the copy/paste function to move the parts of the code you wanted.

        Comment


          #5
          I'm not a coder,
          I can do copy and paste, but after that..............I'm not able to edit what is needed for an indicator.

          already did it, an when I compile, already show errors.

          strange that for drawing into chart I can only do a strategy with the wizard

          Comment


            #6
            Hello hellboy78,

            If you are not a coder or don't want to learn you can always reach out to third party developers to create items for you. Indicators are a manually coded part of NinjaScript so programming is required there.

            Comment


              #7
              if programming is required, don't give such suggestion, to copy and paste.
              about third party developers, I prefer not to comment.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              651 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              577 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X