mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 21:48:03 +00:00
event tests
This commit is contained in:
@@ -25,7 +25,11 @@ public class Rema : AbstractBase
|
||||
WarmupPeriod = period;
|
||||
Init();
|
||||
}
|
||||
|
||||
public Rema(object source, int period, double lambda = 0.5) : this(period, lambda)
|
||||
{
|
||||
var pubEvent = source.GetType().GetEvent("Pub");
|
||||
pubEvent?.AddEventHandler(source, new ValueSignal(Sub));
|
||||
}
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
|
||||
Reference in New Issue
Block a user