Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slope for Donchian Midband

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

    Slope for Donchian Midband

    Hi,

    I would like to add a slope to the Donchian indicator so that the midband is green or so if up or red if down.

    Is that possible?

    Thanks!

    #2
    Hello timokrates,

    Thank you for your note.

    It is possible to add a color change based on the slope of a plot.

    Here is a link to our Help Guide on how to use the Slope() method.

    http://www.ninjatrader.com/support/h...html?slope.htm

    It is also possible to use the Rising() and Falling() methods for for the mid-line as well.
    Rising - http://www.ninjatrader.com/support/h...tml?rising.htm
    Falling - http://www.ninjatrader.com/support/h...ml?falling.htm

    Here is an example of using the Rising() method to change the color

    if (Rising (DoncianChannel(period)))
    {
    PlotColors[0][0] = Color.Green;
    }

    This would change the Mean (middle) plot to green if the indicator values are rising.
    CameronNinjaTrader Customer Service

    Comment


      #3
      Thanks Cameron,

      but I have to say that I have no idea about how to code in general.

      There is nothing I can add indicatorwise?

      Comment


        #4
        timokrates,

        You can learn more about coding custom indicators from our Help Guide and Support Forums.

        http://www.ninjatrader.com/support/h..._resources.htm


        If you have limited time or programming capabilities, you can discuss your requirements with any of our NinjaScript consultants.
        http://www.ninjatrader.com/partners#NinjaScript-Consultants
        CameronNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wjadevries, Today, 03:35 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by Mykro, Today, 03:59 PM
        0 responses
        5 views
        0 likes
        Last Post Mykro
        by Mykro
         
        Started by venkateshdvk, Today, 01:34 PM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by westofpluto, Today, 01:54 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by zacharydw00, Today, 02:11 PM
        4 responses
        15 views
        0 likes
        Last Post zacharydw00  
        Working...
        X