Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsArray versus PriceType

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

    BarsArray versus PriceType

    When programming a multitimeframe indicator there are times when I want to refer to an indicator on another timeframe that uses a pricetype other than close. Normally, I use the following syntax, SMA(BarsArray[1],10)[0] which uses the close price on the other timeframe chart. However, I want to use typcial to calculate the SMA value. How do I do this?

    thanks,
    Mike

    #2
    Mike, you would then use for example SMA(Typicals[1], 20)[0] - not the 's' behind the single series Typical property - http://www.ninjatrader.com/support/h...7/typicals.htm

    Same is available with Closes, Highs, Lows and Medians

    Comment


      #3
      of course....Thanks Bertrand

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      589 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      342 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      555 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X