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 tkaboris, Today, 05:13 PM
                0 responses
                2 views
                0 likes
                Last Post tkaboris  
                Started by GussJ, 03-04-2020, 03:11 PM
                16 responses
                3,281 views
                0 likes
                Last Post Leafcutter  
                Started by WHICKED, Today, 12:45 PM
                2 responses
                19 views
                0 likes
                Last Post WHICKED
                by WHICKED
                 
                Started by Tim-c, Today, 02:10 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by Taddypole, Today, 02:47 PM
                0 responses
                5 views
                0 likes
                Last Post Taddypole  
                Working...
                X