Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Error Q20 output missing when submitting

    Strategy help
    4
    11
    1073
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • support
      support @TheFlyingDutchman last edited by

      @theflyingdutchman Hi, it looks like you are getting some corner case. Can you send some more detail?

      T 1 Reply Last reply Reply Quote 0
      • T
        TheFlyingDutchman @support last edited by

        @support The number of the strategy submit attempt that is filterde out is # 14149002. What additional info should I send?

        support 1 Reply Last reply Reply Quote 0
        • support
          support @TheFlyingDutchman last edited by

          @theflyingdutchman ok, thanks, we are checking the logs. It looks ok when run in a standard notebook container. Maybe it meets some corner case we did not think about when implementing submission filter. As soon as we find the reason, we will let you know. Sorry for the problem.

          T 1 Reply Last reply Reply Quote 0
          • T
            TheFlyingDutchman @support last edited by

            @support ok, thanks. Unfortunately I run into an error in the submitting process with another strategy as well. Could you please look into submit Number # 14265154? The precheck and backtest show no errors, but after submit the strategy shows inverted SR and weights. I am not sure whether this is related to the otter submit issue. Thanks for investigating these issues.

            support 1 Reply Last reply Reply Quote 0
            • V
              Vyacheslav_B @TheFlyingDutchman last edited by

              @theflyingdutchman

              Hello. try to execute in a separate cell the code which saves weights. This should help.
              As far as I understand, this can happen when there is no data for the first day.
              The cell where the error occurs will be ignored and the next one will be executed.

              qnout.check(weights, data, "stocks_nasdaq100")
              qnout.write(weights)
              
              T 1 Reply Last reply Reply Quote 1
              • support
                support @TheFlyingDutchman last edited by

                @theflyingdutchman hi, did you check for potential forward looking? For example using global means of indicators which are looking into the future?

                Note that trades are taken at the OPEN, and you cannot use for example the CLOSE price of the same day.

                In this case, you could see a result in the notebook but another one after submission, as the backtester used after submission will remove by brute force future data and produce a result which does not look into the future.

                1 Reply Last reply Reply Quote 0
                • T
                  TheFlyingDutchman @Vyacheslav_B last edited by

                  @vyacheslav_b The proposed solution worked, I was able to submit the strategy. Thanks for your help.

                  @support The strategy was still declined since there is no fundamental data before 1-1-2013. This strategy worked with fundamental data. Number is # 14333092. Wouldn't it be fair to shorten the required trade period for strategies based on fundamental data for Q20? Otherwise I won't be able to submit.

                  support V 2 Replies Last reply Reply Quote 0
                  • support
                    support @TheFlyingDutchman last edited by

                    @theflyingdutchman ok, thanks for the hint. It is the first contest using fundamental data, sorry for the issue.

                    We will see, but probably it is too late for changing the rules.

                    One pragmatic solution would be to use a "base" strategy until 2013, without fundamental data, until 2013, in a way that the Sharpe ratio is still larger than 1. Is it doable?

                    1 Reply Last reply Reply Quote 0
                    • V
                      Vyacheslav_B @TheFlyingDutchman last edited by

                      @theflyingdutchman

                      it can help you. See topic 3) Not enough bid information.

                      https://github.com/quantiacs/strategy-q20-nasdaq100-quick-start/blob/master/strategy.ipynb

                      def get_enough_bid_for(data_, weights_):
                          time_traded = weights_.time[abs(weights_).fillna(0).sum('asset') > 0]
                          is_strategy_traded = len(time_traded)
                          if is_strategy_traded:
                              return xr.where(weights_.time < time_traded.min(), data_.sel(field="is_liquid"), weights_)
                          return weights_
                      
                      
                      weights_new = get_enough_bid_for(data, weights)
                      weights_new = weights_new.sel(time=slice("2006-01-01",None))
                      
                      1 Reply Last reply Reply Quote 0
                      • O
                        orange.salmon last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors
                        • Documentation
                        • About
                        • Career
                        • My account
                        • Privacy policy
                        • Terms and Conditions
                        • Cookies policy
                        Home
                        Copyright © 2014 - 2021 Quantiacs LLC.
                        Powered by NodeBB | Contributors