Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

printing to output window

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

    printing to output window

    I am trying to print to the output window but all I get is:

    17
    hello

    My code is:

    Code:
                    if( Swing(CUMRSI(triggerValue,3), 3).SwingHigh[0] >
                        Swing(CUMRSI(triggerValue,3), 3).SwingHigh[2] )
                    {
                        Print("Higher high");
                    }

    #2
    Hello ShruggedAtlas,

    Thank you for your inquiry.

    "Higher high" would only print out if your IF statement is true. I wouldn't know where "17" and "hello" came from as it is not here in your code. Would you happen to have these values specified elsewhere in your code, or would you have any other indicators or strategies that use Print statements that may be printing out these values?
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      non of my indicators have print statements as far as i can tell. This is the first time I have attempted to use print statements. I will investigate further.

      what i'm trying to do is create a rudimentary divergence indicator using the swing indicator. Based on my code it doesn't seem to trigger the print statement as you suggested. I guess I need to play with the swing strength values and or adjust the bars back to compare. Once I get that right i suppose I'll be able to figure it out.
      Last edited by ShruggedAtlas; 06-03-2015, 10:31 AM.

      Comment


        #4
        I got it to work by increasing the numer of bars to look back for the recent swing high or low. i got the print statement to work. As for the 17 hello thing...i have no idea

        Comment


          #5
          Hello ShruggedAtlas,

          The "17" and "hello" cannot be printed out to the output window without a Print statement somewhere in your code or the code of other indicators or strategies. Are you running any third party indicators / strategies that you have not developed yourself? Those may have Print statements in them that would be printing out that output.
          Zachary G.NinjaTrader Customer Service

          Comment


            #6
            yes there are about 3 others...I'll have to look through the code on those and see where it is.
            Thanks!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            579 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
            554 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