Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print() and INT() doesn't work.

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

    Print() and INT() doesn't work.

    Hi,

    I have 2 questions here:
    1. I try to print something, but nothing comes up

    ......
    ....
    EnterLong(1,"");
    SetProfitTarget(
    "", CalculationMode.Ticks, 85);
    SetTrailStop(
    "", CalculationMode.Ticks, 97, false);
    Print(
    "NinjaTrader");

    2. I would like to round a number down to the nearest integer, I use INT(), but it dosen't work.

    Would you please tell me what is the right way?

    Thank you

    #2
    Hi Jenny,

    Please check your log tab, I suspect there may be an error related to the strategy that you will need to resolve.

    Please take a look at the MSDN DOC for the Math class. There are methods there such as Math.Round() and Math.Floor and Math.Ceiling that will provide you with what you are looking for. The link is below.

    Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.
    RayNinjaTrader Customer Service

    Comment


      #3
      Do you mind to check the log tag under Control Center of Ninja?

      Do you mind to check the log tag under Control Center of Ninja? But there are nothing printed out. How to print on the chart?

      Now I get a round number, but it is not a int, how to conver a double to int?

      Thanks
      Last edited by Jenny; 07-23-2007, 05:14 PM.

      Comment


        #4
        Hi Jenny,

        Unfortunately we are only able to provide guidance in the area of basic programming questions since its outside of the scope of what we can provide technical support for. If you google something like "C# int to double conversion" you will find a lot of resources to help you in this area.

        Here is an example.

        RayNinjaTrader Customer Service

        Comment


          #5
          Hi, Ray,

          Where to find the Pint() information? I couldn't find from log tag under Control Center of Ninja. And How to prin() in chart?

          Have nice day
          Last edited by Jenny; 07-26-2007, 08:56 AM.

          Comment


            #6
            Hi Jenny,

            RayNinjaTrader Customer Service

            Comment


              #7
              Thanks for your answer.

              I try to use:
              Print("NinjaTrader");
              But I couldn't find in the the Tag log. Where the NinjaTrader print to?

              And do you have a live chat?

              Thanks

              Comment


                #8
                Hi Jenny,

                Its sent to the output window. Tools > Output Window.

                No we do not have a live chat.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  You give me a great answer. Thanks a lot.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  656 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  371 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  109 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  574 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  579 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X