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 Max238, Today, 01:28 AM
    1 response
    21 views
    0 likes
    Last Post CactusMan  
    Started by giulyko00, Yesterday, 12:03 PM
    2 responses
    10 views
    0 likes
    Last Post giulyko00  
    Started by r68cervera, Today, 05:29 AM
    0 responses
    4 views
    0 likes
    Last Post r68cervera  
    Started by geddyisodin, Today, 05:20 AM
    0 responses
    6 views
    0 likes
    Last Post geddyisodin  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    6 responses
    37 views
    0 likes
    Last Post JonesJoker  
    Working...
    X