Skip to content

phx000/backtesting-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unifnished project

This project aimed to be a graphical no-code way for non-technical users to easily craft backtesting strategies on any financial instrument and run them using the interactive dashboard.

This is how it was intended to look: Dashboard Strategies

The serialized representation that the server gets from the configuration in the above images is:

{
  "ticker": "aapl",
  "period": "daily",
  "strategies": [
    {
      "type": "buy",
      "units": "100",
      "conditions": [
        {
          "operator": "cross_over",
          "fields": [
            {
              "type": "indicator",
              "value": {
                "type": "sma",
                "params": {
                  "window": 14
                }
              }
            },
            {
              "type": "data",
              "value": "price"
            }
          ]
        },
        {
          "operator": "cross_over",
          "fields": [
            {
              "type": "data",
              "value": "volume"
            },
            {
              "type": "constant",
              "value": "100000"
            }
          ]
        }
      ]
    }
  ]
}

Then this object would be translated into a mostly-vectorized set of steps. Used the ta package for indicator logic.

About

Unfinished no-code graphical backtesting web app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •