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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        26 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X