Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom indicator

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

    Custom indicator

    I would like to setup market analyzer to scan a basket of currencies and alert based on a custom condition. If I create a custom indicator is it possible to do this?

    #2
    Hi mballagan,

    Thank you for your post.

    If you create the custom indicator and it is available within NinjaTrader then you can add that indicator in the Indicator column of Market Analyzer.

    Then once added to the Market Analyzer you can create alert conditions based on that indicator.
    Ryan O.NinjaTrader Customer Service

    Comment


      #3
      I have created a custom indicator that checks for two conditions the logic for condition 1 is as follows:

      if(ReverseCandleLong())
      {
      Plot1.Set(1);
      counter++;
      string tag = "RCLE" + counter.ToString();
      Print("Reverse Candle LE: date = " + Time[0].Date.ToString() + " time = " + Time[0].ToShortTimeString());
      DrawText(tag,"RCLE ",0,Open[0],Color.Blue);
      Print("Current time = " + Time[0].ToString() + " pivotlevels[0] = " + pivotlevels[0].ToString());
      }
      else
      {
      Plot1.Set(0);

      }

      where ReverseCandleLong() checks for a particular bar formation.

      When I try and add this indicator to market analyzer I get an error message saying that NinjaTrader has encountered an error and needs to close. The indicator compiles fine, what I am trying to do is set up an alert so that a cell in market analyzer changes color when a condition is true.


      Originally posted by NinjaTrader_RyanOlson View Post
      Hi mballagan,

      Thank you for your post.

      If you create the custom indicator and it is available within NinjaTrader then you can add that indicator in the Indicator column of Market Analyzer.

      Then once added to the Market Analyzer you can create alert conditions based on that indicator.

      Comment


        #4
        Please provide the log/trace files with the error. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          script

          Josh how do I get script from my hard drive to NT indicator list?

          Comment


            #6
            Please import the downloaded zip file via the File > Utilities > Import NinjaScript command.

            Comment


              #7
              ok i did that and now what do I do?

              Comment


                #8
                Right click on the chart, bring up the Indicators list and select the newly imported one.

                Comment


                  #9
                  to import I have to locate the script on teh computer (my) and double click on it ,correct?

                  Comment


                    #10
                    No, please see my post #6 with specific instructions on how to import the downloaded zip file into NinjaTrader.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by CarlTrading, Yesterday, 11:51 AM
                    0 responses
                    18 views
                    0 likes
                    Last Post CarlTrading  
                    Started by CarlTrading, Yesterday, 11:48 AM
                    0 responses
                    23 views
                    0 likes
                    Last Post CarlTrading  
                    Started by CaptainJack, 03-25-2026, 09:53 PM
                    0 responses
                    29 views
                    0 likes
                    Last Post CaptainJack  
                    Started by CaptainJack, 03-25-2026, 09:51 PM
                    0 responses
                    16 views
                    0 likes
                    Last Post CaptainJack  
                    Started by Mindset, 03-23-2026, 11:13 AM
                    0 responses
                    22 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X