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.

    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.

        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.

            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.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,602 views
                0 likes
                Last Post aligator  
                Started by jaybedreamin, Today, 05:56 PM
                0 responses
                8 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                18 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by Jon17, Today, 04:33 PM
                0 responses
                4 views
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                12 views
                0 likes
                Last Post Javierw.ok  
                Working...
                X