Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displacing the DataSeries

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

    Displacing the DataSeries

    Out of interest (and if possible, I'd like to experiment with it) here is a question.

    Let's say I run an SMA 20 in a 15Minute chart. It fixes this SMA at the full hour, :15, :30, :45. So far so good.

    Is there a way to tweak the code to run this SMA 20 in a 15Minute chart but calculate it for example by 2Minutes off? Meaning for example at the full hour plus 2Minutes, :17, :32, :47. In other words have the 15minute cycle begin at a different time.

    (Using a 17Minute data series would obviously not produce the same result.)

    sandman

    #2
    Hello sandman,

    The bars on the chart themselves are being created as 15 minute bars that always end on the 15 of the hour.

    Using a 1 minute series and re-coding the SMA to use this offset and gather 15 bars at a time would be the only way I can think of to accomplish this. This would require a lot of logic reworking in the SMA.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    27 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X