rename OHLCValue -> OHLCEvent

This commit is contained in:
2018-06-20 22:28:42 -07:00
parent ced385ef8a
commit ff5fa69e7d
5 changed files with 51 additions and 63 deletions

View File

@ -1,7 +1,6 @@
import ats.plugin.OHLCPlugInViewFactory;
import ats.plugin.OHLCTick;
import ats.plugin.OHLCUpdateListener;
import ats.plugin.OHLCValue;
import ats.plugin.OHLCEvent;
import com.espertech.esper.client.Configuration;
import com.espertech.esper.client.EPServiceProvider;
import com.espertech.esper.client.EPServiceProviderManager;
@ -34,9 +33,8 @@ public class EsperProcessor implements TickProcessor {
config.addEventType(TickEvent.class);
config.addEventType(LongEntryEvent.class);
//config.addVariable("FOO", int.class, 12);
config.addEventType(OHLCEvent.class);
config.addEventType("OHLCTick", OHLCTick.class);
config.addEventType("OHLCValue", OHLCValue.class);
config.addPlugInView("ATS", "OHLC", OHLCPlugInViewFactory.class.getName());
engine = EPServiceProviderManager.getDefaultProvider(config);
@ -56,7 +54,7 @@ public class EsperProcessor implements TickProcessor {
// double l = (double)newData[0].get("last");
// double x = (double)newData[0].get("max");
// double n = (double)newData[0].get("min");
// log.info("OHLCValue: {} {} {} {}", f,l,x,n);
// log.info("OHLC: {} {} {} {}", f,l,x,n);
});
// addStatement("select * from TickEvent#groupwin(instrument)#ohlcbarminute(timestamp, midDouble)",