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?

    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.

        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?

            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 argusthome, 03-08-2026, 10:06 AM
              0 responses
              69 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              42 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              24 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              27 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              54 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X