Skip to content

Commit

Permalink
setting counter with window size
Browse files Browse the repository at this point in the history
  • Loading branch information
victorl2 committed Apr 20, 2021
1 parent 23421cd commit 519e9ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kate/data_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (handler *DataHandler) nextValues() *AggregatedDataPoints {
//SetWindow defines the range of values that will be avaliable on each step through the data points
func (handler *DataHandler) SetWindow(windowSize int) {
handler.windowSize = windowSize
handler.counter = windowSize
}

//PricesFromCSV reads all csv data in the OHLCV format to the DataHandler and returns if a error occurred
Expand Down

0 comments on commit 519e9ee

Please sign in to comment.