Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        21 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        10 views
        0 likes
        Last Post cre8able  
        Working...
        X