Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug with dividends and splits adjustments

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

    Bug with dividends and splits adjustments

    To reproduce:

    Download dividend and split data for EWJ from yahoo
    Ensure that under NinjaTrader Options ->
    Check adjustment for Dividends
    Check adjustment for Splits

    My TimeZone: (UTC+08:00) Kuala Lumpur, Singapore
    Instrument timezone: US Equities RTH

    Delete cache files for EWJ

    SampleMACrossover

    60 Minute data,
    Fast = 8
    Slow = 32

    From 2012-01-01
    To 2017-02-13

    Exit on close = False

    Run strategy once, cache files have been created.

    Note down the Total Net Profit

    Run strategy again, this time it is running on cache files.

    Total Net Profit is different !!!!

    EWJ was adjusted to $36 in 2012 when running without cache db files. (1st run)
    EWJ was adjusted to around $46 in 2012 when running on cache files. (2nd run)

    Feels like dividend adjustment was applied twice when cache is used.

    #2
    Thank you for your report, androiduser14916. NinjaTrader 7 is no longer under active development, so any fixes we make will have to be through NinjaScript or through modifying the help guide. I will be testing the scenario you laid out in NinjaTrader 8. In the meantime, if you can suggest any modifications to the help guide, we will be happy to take these into consideration. I am including some relevant pages, which may be good candiates for adding a note regarding this behavior.





    I will return shortly with my findings for NinjaTrader 8
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      It looks like I couldn't see the same thing in NinjaTrader 8 that you were seeing in 7. Since this is not a built-in instrument, can you visit Tools -> Instrument Manager, edit your EWJ instrument, and send us pictures of both tabs in the instrument editor? Be sure to scroll down to your mappings section in the misc tab.

      To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
      Click here for instructions
      Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
      Click here for detailed instruction
      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        EWJ exchanges = NYSE, Default

        Note that in Ninja 8, when you want strategy to rerun and recalculate, you have to change something else otherwise it seems to just load from memory and not recalculate. So to force recalculation, I had to change the end date to 15/03/2018, Run, before changing it back to 15/03/2017.
        Attached Files

        Comment


          #5
          Thank you androiduser14916. Can you provide a dropbox link with the dividend data you are using?
          Jessica P.NinjaTrader Customer Service

          Comment


            #6
            The dividend and split info are provided in the attached pictures. You can add them manually.

            Split
            7 Nov 2016
            Factor 0.25

            Dividend
            4 Jan 2015
            Amount 20

            Comment


              #7
              To confirm, is this what you meant by "Download dividend and split data for EWJ from yahoo" ? This step is not referring to historical data?
              Jessica P.NinjaTrader Customer Service

              Comment


                #8
                ninja 8 can't seem to download from yahoo. You can add the splits and dividends manually

                Comment


                  #9
                  Thank you for this additional information androiduser14916. It looks like we were not able to see quite the same thing on a clean installation on our end, even after adjusting the data between runs as instructed. We were using a pre-release version of NinjaTrader. If this continues into the next release of NinjaTrader for you please let us know with an e-mail to platformsupport[at]ninjatrader[dot]com, referencing Attn:NinjaTrader_JessicaP and 1676392 in the subject line of your e-mail, so that I or one of our staff can work with you directly to determine what is different between our systems.
                  Jessica P.NinjaTrader Customer Service

                  Comment


                    #10
                    I think you misunderstood, the dividend data is input into the system before any runs.

                    Switch OS to time zone say Singapore

                    Before starting any runs, delete all files from \Documents\NinjaTrader 8\db\cache\

                    First run of strategy analyzer will cause creation of data files in \Documents\NinjaTrader 8\db\cache\US Equities RTH.Singapore Standard Time

                    Second run will make use of these files.

                    The 2 runs will yield different result

                    Comment


                      #11
                      Thank you, I believe we are running the same test. Let's reduce any possible differences between our systems. According to this publicly available link,

                      Stay up-to-date on Marvell Technology, Inc. Common Stock (MRVL) Dividends, Current Yield, Historical Dividend Performance, and Payment Schedule.


                      Marvell Technology Group has paid out several dividends. If we look at the built in symbol in NinjaTrader, and click "Update" to update its splits and dividends, we see that this has 2 built-in splits as well. While the splits are very old, since the behavior we are interested in is dividend behavior, I would like to ask that we both use this symbol for testing.

                      On my end I am adding a dividend of 0.06 on the following payment dates for this symbol (dates in U.S. mm/dd/yyyy format) :

                      4/20/2017, 12/28/2016, 10/19/2016, 7/12/2016, 4/22/2016, 12/29/2015, 10/22/2015, 7/1/2015, 4/2/2015, 12/29/2014, 10/2/2014, 7/2/2014, 3/27/2014, 12/23/2013, 10/3/2013, 7/3/2013, 4/4/2013, 12/21/2012, 10/4/2012, 7/11/2012
                      Attached Files
                      Last edited by NinjaTrader_JessicaP; 03-31-2017, 09:31 AM.
                      Jessica P.NinjaTrader Customer Service

                      Comment


                        #12
                        Thank you again for your report
                        androiduser14916.


                        This behavior was confirmed on our end. We will be investigating this further. Please keep an eye on the NinjaTrader 8 Release Notes page for updates and bugfixes.





                        Tracking ID: NTEIGHT-11480
                        Jessica P.NinjaTrader Customer Service

                        Comment


                          #13
                          This no longer occurs in the latest pre-release version of NinjaTrader. Please let us know if this continues for you into the next release of NinjaTrader.
                          Jessica P.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Christopher_R, Today, 12:29 AM
                          0 responses
                          9 views
                          0 likes
                          Last Post Christopher_R  
                          Started by sidlercom80, 10-28-2023, 08:49 AM
                          166 responses
                          2,235 views
                          0 likes
                          Last Post sidlercom80  
                          Started by thread, Yesterday, 11:58 PM
                          0 responses
                          3 views
                          0 likes
                          Last Post thread
                          by thread
                           
                          Started by jclose, Yesterday, 09:37 PM
                          0 responses
                          8 views
                          0 likes
                          Last Post jclose
                          by jclose
                           
                          Started by WeyldFalcon, 08-07-2020, 06:13 AM
                          10 responses
                          1,415 views
                          0 likes
                          Last Post Traderontheroad  
                          Working...
                          X