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

simple multiframe indicator problem

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

    simple multiframe indicator problem

    Hello there,

    I'm trying to create a test sample indicator which color candles from MA crossing from timeframe 1min to any timeframe (will test 5min for the exemple).
    I coded it and after blindfolding it, I find it is out of sync between 1min colored on 5min ...and 1min standalone.

    I'm not sure if this is my fault (programming mistake) or a bug from Ninja. Could you please have the look if you have the skills for it ? Thanks a lot

    Here are the 2 indicators :
    - Sensitivity (which is the one coloring 5min from 1min MA crossing) is to be added on a 5min chart
    - SensitivityDoubleCheck is to be added on a 1min chart (it's the indicator without multiframing)

    If you let them run together, you'll see that they are from time to time out of sync.
    Like on this chart, the left screen is the "normal 1min" and on the right the "1 on 5min". At 15h35 the "1 on 5" should be colored Lime already. When live testing the neutral color DarkViolet just 1 minute before dit not report correctly on the right screen neither.




    You will see by yourself.

    Voila. Merci !
    Attached Files

    #2
    SARdynamite, I believe it would work as you expect the other way round, i.e. opening the 1 min and apply the indicator referencing the higher 5 min frame, correct?

    Then you would just run into a display limitation for the 5 minute series you're monitoring, the timestamps of the historical bars are spaced in 5 min intervals, so there's no intrabar data visualized and hence the intrabar turns of the 1 min SMA can't be shown properly on historical data. It should work in realtime or market replay though with CalculateOnBarClose set to false.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    65 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    13 views
    0 likes
    Last Post benmarkal  
    Started by f.saeidi, Today, 01:38 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X