Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancelling each other out

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

    #16
    Hi theitpro,

    Try int.Parse(string);
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Using NinjaScript I created 2 button on tool-strip of Indicator . Sometimes it triggers click events but sometimes not . I dont know why this uncertainty occurs.
      Last edited by theitpro; 03-19-2014, 05:23 AM.

      Comment


        #18
        Hi theitpro,

        If you add prints to the button click code do the prints appear in the output window each time the button is clicked?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Yes I wrote print code but did not print on output window. Actually , It works sometimes but not always.

          Comment


            #20
            Hello theitpro,

            Are you doing anything else in the code when the button is pressed to make sure that your button is working properly?

            Please note that the Output window is cached meaning that it can take a second or two before it will display.
            JCNinjaTrader Customer Service

            Comment


              #21
              How to create read only property in indicator using ninjascript ?

              Comment


                #22
                Originally posted by theitpro View Post
                How to create read only property in indicator using ninjascript ?
                Do not use a Setter; use only a Getter.

                Comment


                  #23
                  Hello theitpro,

                  Koganam's suggestion should work. You may also try to set the ReadOnlyAttribute to true inside of the Properties section of the script.


                  #region Properties
                  [Description("")]
                  [GridCategory("Parameters")]
                  [ReadOnlyAttribute(true)]
                  public int MyInput0
                  {
                  get { return myInput0; }
                  set { myInput0 = Math.Max(1, value); }
                  }
                  #endregion
                  JCNinjaTrader Customer Service

                  Comment


                    #24
                    How to check that user has changed the property in NinjaScript indicator

                    Comment


                      #25
                      Hello theitpro,

                      The only way that comes to mind currently, is to create another variable that has the default value of your property so that you can check the value of the property if it has been changed.
                      JCNinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

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