Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compile issue

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

    Compile issue

    So, I'm trying to build my first strategy just to test out the wizard, but it's not compiling.

    It seems that I have everything correct, but it's throwing a few errors, one of which isn't in the help database.


    #2
    The compile error is coming from a different strategy "STrat.cs". Double click on the compile error and it will open that strategy and take you to the error. You have called the RSI indicator incorrectly in that file.

    Let me know if you need more help.

    VT

    Comment


      #3
      Originally posted by VTtrader View Post
      The compile error is coming from a different strategy "STrat.cs". Double click on the compile error and it will open that strategy and take you to the error. You have called the RSI indicator incorrectly in that file.

      Let me know if you need more help.

      VT
      That's odd... I never created a strategy called STrat.

      Edit:

      Also, how would I go about using decimals? Say, I want to use 0.8, I know INT doesn't allow that.
      Last edited by Dasweb; 12-18-2011, 01:30 PM.

      Comment


        #4
        I suppose I should say, you have a file called STrat.cs. When the compiler shows an error in orange, it means the error is in a different file. The double click will open that file and take you to the error.

        Use decimals in what way?

        Comment


          #5
          Originally posted by VTtrader View Post
          I suppose I should say, you have a file called STrat.cs. When the compiler shows an error in orange, it means the error is in a different file. The double click will open that file and take you to the error.

          Use decimals in what way?
          Well for example, if the PPO were to cross under -0.2

          Comment


            #6
            A decimal number is a "double" value, and can be used where a "double" type is called for.

            So you can do that by using the CrossBelow or CrossAbove functions.

            Something like:
            CrossBelow(PPO(12, 26, 9), -.2, lookBackPeriod);
            lookBackPeriod being the number of bars back to check for the cross condition.



            VT
            Last edited by VTtrader; 12-18-2011, 07:39 PM. Reason: Original link just went to the help index

            Comment


              #7
              Originally posted by VTtrader View Post
              A decimal number is a "double" value, and can be used where a "double" type is called for.

              So you can do that by using the CrossBelow or CrossAbove functions.

              Something like:
              CrossBelow(PPO(12, 26, 9), -.2, lookBackPeriod);
              lookBackPeriod being the number of bars back to check for the cross condition.

              http://www.ninjatrader.com/support/h...nt7/index.html?

              VT
              Sounds great, thanks!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              666 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              377 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              110 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              575 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              580 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X