SmartQuant Discussion

How to emit user events?
Page 1 of 1

Author:  ericwang [ Sat Feb 23, 2019 12:52 pm ]
Post subject:  How to emit user events?

How to emit user event in sell side strategy and trigger onUserEvent() in strategies?

For example, it will be good if a sell side strategy, which designed to provide single continue instrument for a chain of commodity contracts, emits a customized event when rolling positions.

Author:  skuvv [ Mon Feb 25, 2019 10:13 am ]
Post subject:  Re: How to emit user events?

All events with typeId > 250 are user events.
It means that they will trigger
Strategy.OnUserEvent(Event ev)

So you need your own event class(derived from Event) and send this event through framework:

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group