Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
For #924 - Resolve bad output detected on neural strategy (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennfu authored and DeviaVir committed Dec 27, 2017
1 parent b8b2127 commit 1fde4cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/strategies/neural/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ module.exports = function container (get, set, clear) {
var tlp = []
var tll = []
if (s.lookback[s.options.min_periods]) {
var min_predict = s.options.min_predict > s.options.min_periods ? s.options.min_periods : s.options.min_predict;
for (let i = 0; i < s.options.min_periods; i++) { tll.push(s.lookback[i].close) }
for (let i = 0; i < s.options.min_predict; i++) { tlp.push(s.lookback[i].close) }
for (let i = 0; i < min_predict; i++) { tlp.push(s.lookback[i].close) }
var my_data = tll.reverse()
var learn = function () {
//Learns
Expand Down

0 comments on commit 1fde4cb

Please sign in to comment.