• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Brillo, Yesterday, 08:47 PM
        0 responses
        4 views
        0 likes
        Last Post Brillo
        by Brillo
         
        Started by Gav_G, Yesterday, 02:12 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Gav_G, Yesterday, 01:41 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by kweiss, Yesterday, 01:21 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by cutzpr, Yesterday, 08:44 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X