Interface TickStrategy
public interface TickStrategy
An event-driven strategy for the
TickBacktester: sees every tick in
sequence and trades through the TickTradingContext. Symbol ids
arrive with the ticks (defined by the tick file), so resolve instruments
lazily in onTick rather than in init.-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(TickTradingContext context) name()voidonTick(int symbolId, double price, double size, long timestampNanos)
-
Method Details
-
name
String name() -
init
-
onTick
void onTick(int symbolId, double price, double size, long timestampNanos)
-