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

Help! How to plot this

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

    Help! How to plot this

    Hi:
    I want to plot Y, How to do it.
    double Y= EMA(mydataseries, 20)[0];

    Thanks!

    #2
    Hello,

    Thank you for the question.

    Can you please clarify what you are trying to do?

    The code you have posted would assign a variable named Y with the value of the EMA using the settings you have provided.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi: I want to plot the the value from EMA.
      For example: double value = EMA(High,20)[0];

      Comment


        #4
        Originally posted by nw2011 View Post
        Hi: I want to plot the the value from EMA.
        For example: double value = EMA(High,20)[0];
        Whatever you want to plot, you assign to a Plot. For example,
        Code:
        Plot0.Set(Y);
        I assume that you have a Plot set up already, as the Indicator builder wizard would have set up Plots per specification?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        435 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        3 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        18 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frslvr, 04-11-2024, 07:26 AM
        9 responses
        126 views
        1 like
        Last Post caryc123  
        Started by selu72, Today, 02:01 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Working...
        X