Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies not working on 60 min bar

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

    Strategies not working on 60 min bar

    Hi,

    I have a number of ATS swing trading using 15 min bars, and I set them up and switch them on a couple of hours before open and they show the correct position size and work perfectly. However I have been developing some 60 min swing strategies that are fine on backtesting, but when I try and run them live for some reason and switch them on before the market opens in the same way, for some reason they do not register a position (whereas on backtesting there should be a position).

    I assume this may be something to do with getting data through from IB, perhaps it only comes after the market opens. In this case can I leave the strategy on and will it start working as soon as data comes through?

    Any ideas would be welcomed/Thanks

    #2
    Eastbank, how do you set those strategies up for live trading? Do you for example set ExitOnClose to false, so the prior swing position is still working at the point of startup?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Sure, that is what confuses me, the other 15 min strategies are all set at exit on close false, and all calculate fine, but I have tested many 60 min ones and they do not calculate the position correctly

      Comment


        #4
        Hi Eastbank, please try for example with the default SampleMACrossOver we provide, start it on your 60 min chart with ExitOnClose set to false - so it should be just reversing on each signal - do you see it reflected correctly if you look into the strategies tab what open historical position it would be in?

        Please don't forget to sync your strategies up needed -

        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thanks Bertrand- I don't normally set up my strategies from a chart but from the strategies tab, however I have done it from a chart and its produced the same result. Interestingly, I can see why (but have no idea of a solution) - both the SMA's give the same reading ( this strategy is on stock symbol X with a 60 min SMA swing 81x146, but both the 81 and 146 MA's on the chart are identical- that doesn't make any sense to me! (I gave you the parameters and symbol so you can duplicate- but have had it with many other parameters and symbols)


          The issue is not syncing- I am familiar with that issue and it isn't a problem.

          Comment


            #6
            If you start up from the strategies tab, please ensure the chart default lookback for NT 6.5 are high enough to properly calc all needed indicators like your MA's in the strategy - the default lookback used can be set via Tools > Options > Data.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              One further point Bertrand, as a test, I tried with the same symbol and parameters but on a 15 min timeframe, exit on close false, and it works perfectly-it gave two seperate and correct MA's, and a position- it seems to be the 60 min timeframe that is the problem

              Comment


                #8
                I use the normal default, which is 20 bars- I will test with a higher value and get back to you, thanks

                Comment


                  #9
                  Bertrand, I changed the chart default data period from 15 minutes to 60 minutes and it appears to be working perfectly now. Thanks a lot for your help.

                  Comment


                    #10
                    Great Eastbank, thanks for reporting back.
                    BertrandNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by stafe, 04-15-2024, 08:34 PM
                    7 responses
                    31 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by adeelshahzad, Today, 03:54 AM
                    4 responses
                    30 views
                    0 likes
                    Last Post adeelshahzad  
                    Started by merzo, 06-25-2023, 02:19 AM
                    10 responses
                    823 views
                    1 like
                    Last Post NinjaTrader_ChristopherJ  
                    Started by frankthearm, Today, 09:08 AM
                    5 responses
                    17 views
                    0 likes
                    Last Post NinjaTrader_Clayton  
                    Started by jeronymite, 04-12-2024, 04:26 PM
                    3 responses
                    43 views
                    0 likes
                    Last Post jeronymite  
                    Working...
                    X