Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trading by Tick nd Not Bar Close

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

    Trading by Tick nd Not Bar Close

    I have a strategy that when operating live generates trades when the Calculate on Bar Close setting is set to TRUE but will not generate orders when set to FALSE (which I presume means it should generate orders whenver I get a crossover via a Tick)

    I would like it to generate orders via tick crossovers

    Can anyone suggest why this is not happening when the Calculate On Bar is set to FALSE?

    i am pretty sure on older strategies this worked fine for tick crossovers but alas they are no longer used and been deleted so I cannot go back and check if those still work

    #2
    hdemet, you'r understanding of the CalculateOnBarClose in realtime trading / simulation is correct - would the referenced indicators in your strategy hold any hardcoded CalculateOnBarClose settings in their Initialize() method?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      hdemet, you'r understanding of the CalculateOnBarClose in realtime trading / simulation is correct - would the referenced indicators in your strategy hold any hardcoded CalculateOnBarClose settings in their Initialize() method?
      OOPS! Yes my ondcators do contain Calculate On Bar Close settings

      I guess should be removing those for it to work?

      Comment


        #4
        Yes, please just rely on setting this from the UI or calling strategy, just don't have it hardcoded in Initialize. Then please recheck.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Yes, please just rely on setting this from the UI or calling strategy, just don't have it hardcoded in Initialize. Then please recheck.

          Unfortunately having ensured all settings for all indicators and within the strategy were set to False for the On Bar Close option it still doesnt transact a trade ona tick crossover:-(

          Comment


            #6
            'Unfortunately having ensured all settings for all indicators'

            Can you please clarify? Would this mean you removed all COBC statements from the code for the indicators you call in your script?
            BertrandNinjaTrader Customer Service

            Comment


              #7
              I shall manually check all the code and make sure it is remved frm everywhere as I didnt actually go into the source code and then report back

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by josh18955, 03-25-2023, 11:16 AM
              6 responses
              435 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              3 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              18 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by frslvr, 04-11-2024, 07:26 AM
              9 responses
              126 views
              1 like
              Last Post caryc123  
              Started by selu72, Today, 02:01 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Working...
              X