Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Popup alert window

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

    #31
    laredo,

    You do not need to redownload. All you need to do is change the license key in Help->License key within NinjaTrader.
    Josh P.NinjaTrader Customer Service

    Comment


      #32
      Thank you Josh,

      I am getting 3 values in output window on every bar
      3:45:00 PM currentSwingHigh:48.71 High[0]: 48.32 Low[0]:47.74
      It properly marks pivot price, High and Low
      However I am not sure what does this mean? It prints on every bar?

      It doesn't answer my question of why this code doesn't produce an alert:

      && High[0] > currentSwingHigh
      && Low[0] < currentSwingHigh

      Comment


        #33
        Josh,

        I am not getting any print from
        Print(
        "Entered if-statement"); ????

        Comment


          #34
          xtrender,

          Take a look at the values and do the math manually. You will find the conditions are never true hence why you never get any print for "Entered if-statement".

          currentSwingHigh:48.71 High[0]: 48.32 Low[0]:47.74

          High[0] > currentSwingHigh?
          48.32 > 48.71? <- FALSE
          Josh P.NinjaTrader Customer Service

          Comment


            #35
            I have just looked through th chart for the bar that visualy coresponds to true condition

            stock NOC 12/16/2008 15min chart time 2:30 pivot 41:39
            Output print
            currentSwingHigh: 0 High[0]41.54 Low[0] 40.89

            Why do you think it currentSwingHigh is 0 on all instances where condition is true?

            Comment


              #36
              That is something you would need to continue to debug by going through the Swing code you had earlier. You need to print the currentSwingHigh out at each step. You are likely accessing it too late already.

              Remember, that the Swing code is very tricky. It does go back in time and redraws itself.
              Josh P.NinjaTrader Customer Service

              Comment


                #37
                free ninja

                change it to what..i was given jus tlog in information from the broker

                Comment


                  #38
                  Josh, Many thanks. I don't know if my programming skills good enough to bring this to sucesfull conclusion, but at least you have put me on th right path! Indeed I was trying to access the pivot values too late.

                  Thank you again.

                  Comment


                    #39
                    Originally posted by xtrender View Post
                    Josh, Many thanks. I don't know if my programming skills good enough to bring this to sucesfull conclusion, but at least you have put me on th right path! Indeed I was trying to access the pivot values too late.

                    Thank you again.
                    in your conditions replace currentSwingHigh with SwingHighPlot[1];
                    and replae currentSwingLow with SwingLowPlot[1].

                    I believe it will solve your problem

                    Comment


                      #40
                      laredo,

                      If you have purchased a live license key you will have a license key to put in. If you have not then you will not be able to change it.

                      Please post in a new thread for unrelated concerns to programming or send an email to support [at] ninjatrader [dot] com.
                      Josh P.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by ZenCortexCLICK, Today, 04:58 AM
                      0 responses
                      1 view
                      0 likes
                      Last Post ZenCortexCLICK  
                      Started by sidlercom80, 10-28-2023, 08:49 AM
                      172 responses
                      2,279 views
                      0 likes
                      Last Post sidlercom80  
                      Started by Irukandji, Yesterday, 02:53 AM
                      2 responses
                      17 views
                      0 likes
                      Last Post Irukandji  
                      Started by adeelshahzad, Today, 03:54 AM
                      0 responses
                      4 views
                      0 likes
                      Last Post adeelshahzad  
                      Started by Barry Milan, Yesterday, 10:35 PM
                      3 responses
                      13 views
                      0 likes
                      Last Post NinjaTrader_Manfred  
                      Working...
                      X