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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        150 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        303 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        243 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        345 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        174 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X