Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript coding

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

    Ninjascript coding

    Hi,
    I want to learn Ninjascript coding as a novice. I have a bit knowledge in C# but want to start from the beginning. Are there any supporting online courses like https://ninjatrader.com/support/foru...ramming-course
    I dont want automatic strategy builders. Please guide me in this learning.

    #2
    Hello vkrmvv,

    Thanks for your post.

    We no longer have an affiliated premium education program. Using the Strategy Builder to generate code can be very helpful for learning syntax as you can create simple logic and click View Code to see how the NinjaScript code is generated.

    If you want to take a different avenue, you could consider following the tutorials from NinjaTrader 7, and then you can review our Code Breaking Changes page to review implementation differences. I would also suggest reviewing our examples to see how they take their approaches.

    NinjaTrader 7 tutorials - https://ninjatrader.com/support/help.../tutorials.htm

    NinjaTrader 7/NinjaTrader 8 Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm

    NinjaTrader 8 Reference Samples - https://ninjatrader.com/support/help...ce_samples.htm

    You could also consider attending our NinjaScript Editor 401 course to ask the presenter questions as well.

    Live NinjaScript Editor 401 webinar - https://ninjatrader.com/Webinar/NinjaScript-Editor-401

    If you have any specific questions, please do not hesitate to open a new thread.
    JimNinjaTrader Customer Service

    Comment


      #3
      Can you share any more recorded links for such webinars like "NinjaScript Editor 401 webinar", if available?

      Comment


        #4
        Hello vkrmvv,

        The only other official NinjaTrader training video would be our Strategy Builder 301 course. It can be helpful to go over this video and then transition to NinjaScript Editor 401 if the NinjaScript Editor tutorial is too complex.

        Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt90GAs9k

        Our NinjaScript team has some personal videos that we have created, but these are specific videos that wouldn't be for general training, and are most often used to demonstrate things with the Strategy Builder instead of how code can be written.

        We'll be happy to answer any questions that you may have.
        JimNinjaTrader Customer Service

        Comment


          #5
          I just attended NinjaScript Editor 401 course. But it is too basic and hardly of any use for creating complex indicators, strategies and addons. In the webinar I asked for following project:
          "I want to make an indicator in separate panel below the chart. The panel should have table structure such that below each candle there should come 4 rows in which I will place calculated 1 digit numbers or an alphabet. If we have 256 candles in a given chart there will be 256 columns in the panel below it with 4 rows. Can you guide me through this and tell me which namespace or methods to use in particular?"
          But the mentor redirected me to the forum. So, at last I'm going round and round with no specific coding guidance. Ninjatrader is no doubt a super software but since it lacks step by step coding path to crawl through subjective and object oriented learning methods, Its power is limited to strategy builder only, for most of the traders. So Ninjatrader must come up with good learning material for proper walkthrough in Ninjascript coding.

          Comment


            #6
            Hi vkrmvv,

            I am learning Ninjascript right now too and coding my strategies. I do have some background in C# programming and strategy development in AmiBroker.

            I find Ninjascript and Ninjatrader documentation quite good, but the learning curve is still very steep. Although they try to give conceptual explanations - they sometimes lack important pieces and this makes it all into a huge jigsaw puzzle.

            From what you are saying it sounds like you should first try developing the Indicator, not the Strategy. Concentrate on coding your panel with calculated values. Coding the indicator first will allow you not to think about orders etc that comes when you code a strategy. When you have your indicator working, you can use that from your strategy.

            To start coding an indicator open some sample code - most of the indicators code is available to view.

            Drawing a panel with four rows of digits or text - I will try that, it sounds fun and I will learn something new.



            Comment


              #7
              Hello vkrmvv,

              "I want to make an indicator in separate panel below the chart. The panel should have table structure such that below each candle there should come 4 rows in which I will place calculated 1 digit numbers or an alphabet. If we have 256 candles in a given chart there will be 256 columns in the panel below it with 4 rows. Can you guide me through this and tell me which namespace or methods to use in particular?"
              This is a question that would be best directed to the forum.

              To have an indicator plot to an additional panel, please set the indicator's IsOverlay property to false in State.SetDefaults. To draw objects in the indicator panel, please also set DrawOnPricePanel to false.

              Indicator plots are synchronized to the primary data series. If you have 256 bars visiable on the chart, 256 plots will be visible in the indicator's panel.

              We wouldn't be able to split this panel into different rows as the panel adds one additional "scale." However, you could simulate drawing different rows by drawing text at certain data points. For example, calling Draw.Text and entering (0 + TickSize) (0 + 2 *TickSize) (0 + 3 * TickSize) for the Y value of the Draw.Text method. To create unique drawing objects, for each ber, you can append CurrentBar to the tag of that drawing object.

              Doing the above will be resource intensive and we would recommend using advanced SharpDX rendering so drawing tools are not used excessively, but you could experiment with this to get your bearings.

              Draw.Text - https://ninjatrader.com/support/help.../draw_text.htm

              Also as a tip, the Strategy Builder can be used to generate syntax for drawing on a chart. Please see here for details - https://ninjatrader.com/support/help...ToDrawOnAChart

              We look forward to assisting.
              JimNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by elirion, Today, 01:36 AM
              0 responses
              3 views
              0 likes
              Last Post elirion
              by elirion
               
              Started by gentlebenthebear, Today, 01:30 AM
              0 responses
              4 views
              0 likes
              Last Post gentlebenthebear  
              Started by samish18, Yesterday, 08:31 AM
              2 responses
              9 views
              0 likes
              Last Post elirion
              by elirion
               
              Started by Mestor, 03-10-2023, 01:50 AM
              16 responses
              391 views
              0 likes
              Last Post z.franck  
              Started by rtwave, 04-12-2024, 09:30 AM
              4 responses
              34 views
              0 likes
              Last Post rtwave
              by rtwave
               
              Working...
              X