Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

About Net change

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

    #61
    Thank you for your reply.

    How many days of historical data is being processed?
    Historical data appears to be 5 days.

    May I have you print the time and the value of both Bars.IsFirstBarOfSession and Bars.IsLastBarOfSession above the condition that sets these variables?
    The latest screenshot script seems to only find it on line 63 (Bars.IsLastBarOfSession), and Bars.IsFirstBarOfSession is missing.

    Does this mean that line 67 should be broken and print added on line 68?
    Attached Files

    Comment


      #62
      Hello ラリー,

      I'm not certain what you are asking but I am not advising you to remove anything.

      I am advising you print the values in the condition to understand why the condition is not evaluating as true at the time you are expecting. The print should be above the condition. The print should include labels.

      Below is a link to a forum post that demonstrates using Print() to understand behavior. Please watch the NinjaScript Editor 401 video linked in the post that demonstrates using prints.
      https://ninjatrader.com/support/foru...121#post791121
      Chelsea B.NinjaTrader Customer Service

      Comment


        #63
        Thank you for your reply.

        I have modified the code is this correct?
        Attached Files

        Comment


          #64
          Hello ラリー,

          The print should be above the condition you are investigating.

          The condition is on line 63.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #65
            Thank you for your reply.

            The print should be above the condition you are investigating.
            What does it mean?

            Does it mean to put the description of the print in the latest screenshot line 75 on line 69?​

            Comment


              #66
              Hello ラリー ,

              If there is code line 1, and there is code on line 2, the code on line 1 is above the code on line 2.

              If the condition is to compare the open to the close. if (Open[0] > Close[0])

              My print of the values in that condition would be one line number less than the line number of the condition (above).

              Print(string.Format("{0} | Open[0]: {1} > Close[0]: {2}", Time[0], Open[0], Close[0])); // <-- this print is above the condition below
              if (Open[0] > Close[0]) // <-- this condition is below the print above


              Please note, C# programming education comes prerequisite to writing NinjaScript code. The Strategy Builder can be used to see how it generates C# syntax, but please be aware that it is not with our Scripting Support team's scope to provide programming education services or to check your syntax. We highly recommend getting further acquainted with C# through a formal class, or through educational resources that can be found external to NinjaTrader.

              Below I am providing a link to a forum post with helpful resources on getting started with C# and includes links to 3rd party tutorials.
              https://ninjatrader.com/support/foru...040#post786040

              You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #67
                Thank you for your reply.

                You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
                Is there a cost for that?

                Comment


                  #68
                  Hello ラリー,

                  Consultants generally charge for their services. However any pricing would need to be discussed with the consultant directly.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #69
                    Thank you for your reply.

                    I see.
                    I will try to learn a little more about this matter.
                    I'm sure I'll be asking more questions.​

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by borxhils, Today, 11:27 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post borxhils  
                    Started by bmaltz, Yesterday, 07:15 PM
                    2 responses
                    13 views
                    0 likes
                    Last Post bmaltz
                    by bmaltz
                     
                    Started by iceman600, Yesterday, 01:51 PM
                    4 responses
                    25 views
                    0 likes
                    Last Post iceman600  
                    Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
                    55 responses
                    13,426 views
                    3 likes
                    Last Post grimes12  
                    Started by Mindset, Yesterday, 05:43 AM
                    4 responses
                    36 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X