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

SMA on high of candles also low of candles

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

    SMA on high of candles also low of candles

    It appears that the SMA indicator can only be calculated on: (1) bar close (2) each tick, (3) price.
    I would like to create an SMA based upon the high of each bar.
    I would also like to create an SMA consisting of the low of each bar.



    Any advice would be appreciated. I am new to NinjaTrader 8.

    Sorry, I saw a previous post that addressed the same issue.
    Last edited by goodknight777; 01-12-2017, 10:41 AM. Reason: Sorry, I saw a previous post that addressed the same issue.

    #2
    Hello goodknight777,

    Thanks for your post and welcome to the forums!

    You mentioned the calculation modes and this is more a matter of "when" the indicator would be calculated not the price type that it is using.

    By default all indicators will point to the "Close" value of the bar for their calculations. You can easily change that to select the High, Low, Open, Close, Median, Typical or weighted price types of the bar.

    In the indicator panel, in the properties of the SMA locate the "Input Series" and left click on the selection (it will say edit input), left click to open the "Input series window. On the right side for price type left click the drop down and choose your prefered price type., click ok and click ok.

    Here is a link to the helpguide that will clarify: http://ninjatrader.com/support/helpG...indicators.htm - review the section, "How to edit an indicator's parameters"
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you for this response!! I was wondering how to do this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Kaledus, Today, 01:29 PM
      0 responses
      3 views
      0 likes
      Last Post Kaledus
      by Kaledus
       
      Started by PaulMohn, Today, 12:36 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by yertle, Yesterday, 08:38 AM
      8 responses
      37 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by rdtdale, Today, 01:02 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by alifarahani, Today, 09:40 AM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X