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

Rule bug? #112

Open
brandtr opened this issue Apr 14, 2020 · 0 comments
Open

Rule bug? #112

brandtr opened this issue Apr 14, 2020 · 0 comments

Comments

@brandtr
Copy link

brandtr commented Apr 14, 2020

Hi,

when I try to create a rule like:
var buyRule = Rule.Create(ic => ic.IsBelowBbLow(20,2)).And(c=>c.IsFullStoOversold(14,1,3)).And(c=>c.IsFullStoBullishCross(14,1,3));

I get an error:
System.InvalidCastException: '[A]Full cannot be cast to [B]Full. Type A originates from 'Trady.Analysis, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'D:\System\Desktop\Trady-master\Trady.Test\bin\Debug\netcoreapp3.1\Trady.Analysis.dll'. Type B originates from 'Trady.Analysis, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'D:\System\Desktop\Trady-master\Trady.Test\bin\Debug\netcoreapp3.1\Trady.Analysis.dll'.

It is caused when I use fullSto 2 times (for oversold and for bullishcross).
Is this a known issue, or am I missing something here? Who can help me?

[Could it be related to having a .net core project?]

Thanks!

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

1 participant