mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 07:26:47 +00:00
* Fixes sell bug. Updates docs. Adds test * Doc fixes * reorder and lint * Lint again! * Minor improvement to ensure theoretical upsized orders don't exceed portfolio limits * Fixes test error * %vamoose! * Fixes defaulting to int
13 lines
978 B
Cheetah
13 lines
978 B
Cheetah
{{define "backtester eventhandlers" -}}
|
|
{{template "backtester-header" .}}
|
|
## {{.CapitalName}} overview
|
|
|
|
Event handlers are responsible for taking in an event, analysing its contents and outputting another event to be handled. An individual candle is turned into a data event which handled via the strategy event handler. The strategy handler outputs a signal event, which the portfolio eventhandler will size and risk analyse before raising an order event. The event is then sent to the portfolio manager to determine whether there is appropriate funding, adequate risk and proper order sizing before raising an order event. The order event is taken to the exchange handler which will place the order and create a fill event.
|
|
Below is an overview of how event handlers are used
|
|

|
|
|
|
|
|
### Please click GoDocs chevron above to view current GoDoc information for this package
|
|
{{template "contributions"}}
|
|
{{template "donations" .}}
|
|
{{end}} |