Giter Site home page Giter Site logo

Walkforward questions about pybroker HOT 1 CLOSED

tsunamilx avatar tsunamilx commented on June 22, 2024 1
Walkforward questions

from pybroker.

Comments (1)

edtechre avatar edtechre commented on June 22, 2024

Hi @tsunamilx,

Instead of "divided into windows number of equal sized time windows", is it possible to define a size for each window (e.g. a window for 6 months)?

No, but you can do the equivalent by using the number of windows you want for a chosen date range.

I have custom made trading strategy (strategy that basically outputs buy/sell signals) and I am using optuna (https://optuna.org/) to optimize the parameters for my strategy.

Now I'd like to backtest this:

for a window of 6 months data, run the optimization to get the "best" parameters and use them in my strategy for the next month
repeat every month till end

Looking at Optuna, you should be able to run your strategy in an objective function, and then return the metric from TestResult#metrics that you want to optimize on. You can use pyb.param to run your strategy with different param values.

Let me know if that helps!

from pybroker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.