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

Builder is not fully implemented in NUGET Trady.Analysis 3.2.0 #97

Open
vit-h-zz opened this issue Jul 10, 2019 · 1 comment
Open

Builder is not fully implemented in NUGET Trady.Analysis 3.2.0 #97

vit-h-zz opened this issue Jul 10, 2019 · 1 comment

Comments

@vit-h-zz
Copy link

So I can't make a strategy testing, because some methods do not exist
var runner = new Builder()
.Add(fb)
.Buy(buyRule)
.Sell(sellRule)
***.BuyWithAllAvailableCash()
***.FlatExchangeFeeRate(0.001m)
***.Premium(1)
.Build();

Here is what I see in the lib:

namespace Trady.Analysis.Backtest
{
public class Builder
{
public Builder();

    public Builder Add(IEnumerable<IOhlcv> candles, int weighting = 1);
    public Runner Build();
    public Builder Buy(Predicate<IIndexedOhlcv> rule);
    public Builder BuyPartialCurrencies();
    public Builder Fee(decimal fee);
    public Builder Sell(Predicate<IIndexedOhlcv> rule);
}

}

It is different then in repo:
https://github.com/lppkarl/Trady/blob/60622a5b52284186c595892ed6f69eb60b579bd7/Trady.Analysis/Backtest/Builder.cs#L8

Please help!

@vit-h-zz vit-h-zz changed the title Builder is not fully implemented in Trady.Analysis 3.2.0 Builder is not fully implemented in NUGET Trady.Analysis 3.2.0 Jul 11, 2019
@melotic
Copy link

melotic commented Jul 14, 2019

You can download the repo and add it to your project without Nuget.

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