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 ScottW, Today, 06:09 PM
        0 responses
        2 views
        0 likes
        Last Post ScottW
        by ScottW
         
        Started by Board game geek, 10-29-2023, 12:00 PM
        14 responses
        244 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Waxavi, 04-19-2024, 02:10 AM
        4 responses
        56 views
        0 likes
        Last Post sonia0101  
        Started by cmtjoancolmenero, Today, 03:58 PM
        0 responses
        9 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by Segwin, 05-07-2018, 02:15 PM
        11 responses
        1,779 views
        0 likes
        Last Post aligator  
        Working...
        X