Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

BarColor based on Slow Stochastic

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

    BarColor based on Slow Stochastic

    Hi All,

    I would like to create an indicator based on the %D slope of the 12, 5, 5 slow stochastic. So if the %D turns up the bars should be green, if it turns down the color should be red.

    I have to say that I have no experience in creating indicators at all. So this seems to be tough.

    Help is highly appreciated...thanks

    Here is what I found in the help guide as an example:

    // Sets the bar color to yellow
    BarColor = Color.Yellow;
    // Sets the bar color to its default color as defined in the chart properties dialog
    BarColor = Color.Empty;
    // Sets the bar color to yellow if the 20 SMA is above the 50 SMA and the closing
    // price is above the 20 SMA (see image below)
    if (SMA(20)[0] > SMA(50)[0] && Close[0] > SMA(20)[0])
    BarColor = Color.Yellow;

    #2
    Unfortunately we don't provide support down to the level actually coding an indicator, but here is the general direction:
    - you would need to custom code a new NS indicator
    - this indicator likely will need to use the Stochastics() function
    - the Stoachstics provides a "D" data series which you could access for comparison

    As a last resort a certified NinjaScript consultant would be at your help: http://www.ninjatrader.com/webnew/pa...injaScript.htm

    Comment


      #3
      Ok, thanks.

      Without any experience in coding, creating an indicator is impossible for me...
      Hoped that this could have been done easier.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by algospoke, Today, 06:40 PM
      0 responses
      4 views
      0 likes
      Last Post algospoke  
      Started by maybeimnotrader, Today, 05:46 PM
      0 responses
      7 views
      0 likes
      Last Post maybeimnotrader  
      Started by quantismo, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post quantismo  
      Started by AttiM, 02-14-2024, 05:20 PM
      8 responses
      168 views
      0 likes
      Last Post jeronymite  
      Started by cre8able, Today, 04:22 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X