Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get a 150-Bar SMA from median prices on a different timeframe?

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

    How to get a 150-Bar SMA from median prices on a different timeframe?

    My strategy runs on a M1 chart. How can I get the 150-bars SMA from the 240M/4H-timeframe calculated on median prices?

    #2
    Hi again, Ignignokt. Just as you were using Times[x][y] in your last inquiry, there also exists a Medians[x][y] data series (and Highs, Lows, etc).

    So to get a 150 period SMA of the secondary bar series, you could do this:
    Code:
    double sma_value = SMA(Medians[1], 150)[0];
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    29 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    117 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    227 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    309 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X