Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving Averages Question

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

    Moving Averages Question

    Is there a way to program moving averages to change color given different conditions?

    Example I want to have a 50 EMA on my chart.

    I'd like it to be green while rising and red while falling.

    What would be the easiest way for me to o that?

    #2
    Hello kmpc1,

    Thank you for your post.

    This is possible in NinjaScript. You can find a reference sample on this at the following link: http://www.ninjatrader.com/support/f...ead.php?t=3227

    Please let me know if I may be of further assistance.

    Comment


      #3
      You can even define three conditions: rising, falling and neutral. The slope values that are considered as flat are defined via a neutral threshold. The indicator allows to select from 27 different moving averages and is available here (open source):

      The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies
      Attached Files

      Comment


        #4
        Thanks, this is great!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        3 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X