Git Product home page Git Product logo

pace-starter's Introduction

PACE starter

This repository is a MACD boilerplate project in Rust for Pace, a technical analysis library.

Getting started

  1. Download Rust and Cargo

  2. Install cargo binstall

  3. Install cargo nextest

    cargo binstall cargo-nextest
  4. Install cargo watch

    cargo binstall cargo-watch

Development

Run with hot reload

cargo watch -x run

Documentation

Visit docs to view Pace documentation.

Examples

See already implemented indicators and strategies here.

Testing

cargo nextest run

This repository contains a simple test for macd indicator, tested against TradingView MACD indicator.

Test against PineScript

  1. You need to add this script at the end of PineScript:

    plot(PS_RESULT, title='_target_')
    plot(volume, title='volume')
    
  2. Export to csv

    • Open the downloaded csv file and remove entire last row with NaN values (if exists)
  3. Place the csv file in fixtures folder

  4. Modify src/tests/custom_indicator_test.rs

Structure

The files you should look at are:

  • src/custom_strategy.rs
  • src/custom_indicator.rs
  • src/tests/custom_indicator_test.rs

It is recommende to seperate strategy and indicator into separate modules, allowing easier testing and development.


Made by Nersent

pace-starter's People

Contributors

xnerhu avatar

Stargazers

Shabbir Hasan avatar Forest Li avatar  avatar

Watchers

Eryk Rakowski avatar

Forkers

shabbirhasan1

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.