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.
            BertrandNinjaTrader Customer Service

            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.
                BertrandNinjaTrader Customer Service

                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.
                    BertrandNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by helpwanted, Today, 03:06 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post helpwanted  
                    Started by Brevo, Today, 01:45 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post Brevo
                    by Brevo
                     
                    Started by aussugardefender, Today, 01:07 AM
                    0 responses
                    5 views
                    0 likes
                    Last Post aussugardefender  
                    Started by pvincent, 06-23-2022, 12:53 PM
                    14 responses
                    242 views
                    0 likes
                    Last Post Nyman
                    by Nyman
                     
                    Started by TraderG23, 12-08-2023, 07:56 AM
                    9 responses
                    384 views
                    1 like
                    Last Post Gavini
                    by Gavini
                     
                    Working...
                    X