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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        232 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        150 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        161 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        243 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        198 views
        0 likes
        Last Post CarlTrading  
        Working...
        X