Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully understand the Strategy building & backtesting sample #26

Closed
objecta opened this issue Dec 10, 2017 · 2 comments
Closed

Fully understand the Strategy building & backtesting sample #26

objecta opened this issue Dec 10, 2017 · 2 comments

Comments

@objecta
Copy link

objecta commented Dec 10, 2017

Hi
I'm investigating and testing possible tools to help me build a simple analyse tool to be user with Bittrex.
I found You Trady and You implementation of BackTest, Builder and rules.

In the Strategy building & backtesting sample You mention

// Create portfolio instance by using PortfolioBuilder
var runner = new Builder()
.Add(equity, 10)
.Add(equity2, 30)
.Buy(buyRule)
.Sell(sellRule)
.Build();

For me to fully understand this I would kindly ask if You could include some more code that show how the equity and equity2 is created.

I'm new into Technical indicators, trading and cryptcoins and is trying to learn more about these subjects.

I managed to add a working Bittrex import, so I can start testing some of me ideas

Best regards
Klaus E. Frederiksen
Denmark

@karlwancl
Copy link
Owner

@objecta Sorry for the late response, missing code has been added to README. To be precise, the equity object is the candle list, it is imported from importer or created manually. For instance, the code would look like:

var importer = new YahooFinanceImporter();
var equity = await importer.ImportAsync("FB");
var equity2 = await importer.ImportAsync("AAPL");

karlwancl pushed a commit that referenced this issue Dec 30, 2017
@karlwancl
Copy link
Owner

Closed of being inactive for a long time.

karlwancl pushed a commit that referenced this issue Jun 10, 2018
karlwancl pushed a commit that referenced this issue Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants