Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

print method

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

    print method

    hi,

    According to the help guide :"Notes: The Print() method only targets the Output tab recently specified by set PrintTo property."

    Does this mean that if i ask to print(80%) at the level in the chart of the current trading price, it wont be possible because the return must end up in the output window?

    is it possible to ask print to send the answer in the chart?

    Frank
    ty

    #2
    Hello frankduc, and thank you for your questions.

    Could you elaborate as to what is meant by the level in the chart of the current trading price?

    If you would like text to be sent to your chart, please check out the Draw.TextFixed method.

    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      suppose i set a 14 sma and the answer return in the chart is 2259.89.

      i did some calculation and my code return 80%

      i want the 80% to appear next to the 2259.89 in the chart or in the margin next to the trading price.

      is it possible?

      ty

      Comment


        #4
        This is certainly possible. In this case, rather than the Draw.TextFixed method, you would want to use the Draw.Text method, documented here.



        This link has example code toward the bottom.
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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