Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator vs. strategy added indicator

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

    Indicator vs. strategy added indicator

    I have an indicator running in a shorter time frame than my chart. I have also added the same indicator in a strategy passing the indicator identical params. When plotting both on a chart, they don't always agree. I have tried CalculateOnBarClose at true and false. Any suggestions?

    This is using Market Replay not actual Real Time data. Historic data is perfect.


    Last edited by snaphook; 01-08-2011, 11:40 AM.

    #2
    Hello,

    No real idea's of the top of my head would need to take a look at your code. Theres some difference in the code/ settings that would account for the difference. We just need to find what it is.

    If this is a multi series indicator or strategy please make sure that it is the correct BarsInProgress.

    If your still cant find it please sent both code strategies to support at ninjatrader dot com and reference this forum post and put ATTN: Brett in the subject line and reference this forum post.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Brett

      Tried to send zip, but said NT Support did not respond. Can I send direct email somewhere?

      Comment


        #4
        Hello,

        Yes please send to support at ninjatrader dot com and put ATTN: brett in the subject line, also reference this forum post.

        I look forward to assisting you further.
        BrettNinjaTrader Product Management

        Comment


          #5
          I've been running the strategy this morning and with CalculateOnBarClose = true; and BarsInProgress == 0 in OnBarUpdate, I am getting odd intrabar executions.

          EDIT: Oops, I meant to type BarsInProgress != 0; I corrected it so that should take care of the intrabar executions.
          Last edited by snaphook; 01-10-2011, 08:05 AM.

          Comment


            #6
            Hello and Good Morning.

            So the strategies you sent me I dont need to look into as this issue is resolved is this correct?

            I look forward to assisting you further.
            BrettNinjaTrader Product Management

            Comment


              #7
              No, I just got another intrabar execution with CalculateOnBarClose = true; and the strategy added indicator is not the same as the indicator added indicator. In the last email with the .cs file simply change the BarsInProgress == 0 to BarsInProgress != 0 in the OnBarUpdate() return; statement.

              Comment


                #8
                Hello,

                I will follow up with yo via email. There are some programming errors.
                BrettNinjaTrader Product Management

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                85 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                48 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                29 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
                67 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X