Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MA in Market Analyzer

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

    MA in Market Analyzer

    Hi,

    I have done some research on the forum but did not find any solution. I want to have one MA column. In that column I want to display the MA-200 and the background color would be green if the price is above MA-200, MA-50 and MA-50.

    Is this possible?

    Thanks!
    Last edited by x3000gold; 03-21-2011, 09:12 AM.

    #2
    Hello x3000gold,

    This is only available with custom programming. If you want to get started coding this, a common approach is to set the plot values as 1 when your condition is true and 0 otherwise.

    You will have to put this into an indicator script, but one way to get started making these types of conditions is using the strategy wizard. This allows you to define the conditions in a point and click interface and then view the resulting code for it. The following link can help you get started with the condition builder to define these conditions.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Oh darn. I think its to complicated for me.

      I did the the strategy wizard and have attached a image. What settings would it be in it?

      Thanks
      Attached Files
      Last edited by x3000gold; 03-21-2011, 10:02 AM.

      Comment


        #4
        The strategy wizard is good for defining the conditions. Ultimately it will need to be in a custom indicator script, looking something like this for the OnBarUpdate() method:

        if (Close[0] > SMA(200)[0] && Close[0] > SMA(50)[0])
        Value.Set(1);

        else
        Value.Set(0);

        There is more information on custom indicator development in NinjaTrader available here.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Okay! Seems to complicated for me.

          I guess I forget about it. Thanks anyway

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by GussJ, 03-04-2020, 03:11 PM
          12 responses
          3,239 views
          0 likes
          Last Post Leafcutter  
          Started by AveryFlynn, Today, 04:57 AM
          0 responses
          5 views
          0 likes
          Last Post AveryFlynn  
          Started by RubenCazorla, 08-30-2022, 06:36 AM
          3 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Started by f.saeidi, Yesterday, 12:14 PM
          9 responses
          25 views
          0 likes
          Last Post f.saeidi  
          Started by Tim-c, Today, 03:54 AM
          0 responses
          5 views
          0 likes
          Last Post Tim-c
          by Tim-c
           
          Working...
          X