{"action":"created","issue":{"url":"https://api.github.com/repos/unageanu/jiji2/issues/128","repository_url":"https://api.github.com/repos/unageanu/jiji2","labels_url":"https://api.github.com/repos/unageanu/jiji2/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/unageanu/jiji2/issues/128/comments","events_url":"https://api.github.com/repos/unageanu/jiji2/issues/128/events","html_url":"https://github.com/unageanu/jiji2/issues/128","id":175518984,"number":128,"title":"バックテストでのエラー","user":{"login":"Mega-Takoyaki","id":22055197,"avatar_url":"https://avatars.githubusercontent.com/u/22055197?v=3","gravatar_id":"","url":"https://api.github.com/users/Mega-Takoyaki","html_url":"https://github.com/Mega-Takoyaki","followers_url":"https://api.github.com/users/Mega-Takoyaki/followers","following_url":"https://api.github.com/users/Mega-Takoyaki/following{/other_user}","gists_url":"https://api.github.com/users/Mega-Takoyaki/gists{/gist_id}","starred_url":"https://api.github.com/users/Mega-Takoyaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mega-Takoyaki/subscriptions","organizations_url":"https://api.github.com/users/Mega-Takoyaki/orgs","repos_url":"https://api.github.com/users/Mega-Takoyaki/repos","events_url":"https://api.github.com/users/Mega-Takoyaki/events{/privacy}","received_events_url":"https://api.github.com/users/Mega-Takoyaki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-07T14:35:06Z","updated_at":"2016-09-07T22:10:22Z","closed_at":null,"body":"公開された手順通りにHerokuにインストールした直後、デフォルトの設定でバックテストを実行したのですが、エラーになってしまい下記のようなログが出ております。\r\n何かやり方が間違っていますでしょうか？\r\n\r\n> E, [2016-09-07T23:25:34.573397 #3] ERROR -- : undefined method `bid' for nil:NilClass (NoMethodError)\r\nagent/moving_average_agent.rb:45:in `block in next_tick'\r\nagent/moving_average_agent.rb:45:in `map'\r\nagent/moving_average_agent.rb:45:in `next_tick'\r\n/app/src/jiji/model/agents/agents.rb:35:in `block in next_tick'\r\n/app/src/jiji/model/agents/agents.rb:33:in `each'\r\n/app/src/jiji/model/agents/agents.rb:33:in `next_tick'\r\n/app/src/jiji/model/trading/jobs/notify_next_tick_job.rb:17:in `exec'\r\n/app/src/jiji/model/trading/jobs/notify_next_tick_job.rb:74:in `exec'\r\n/app/src/jiji/model/trading/process.rb:37:in `do_next_job'\r\n/app/src/jiji/model/trading/process.rb:30:in `run'\r\n/app/src/jiji/model/trading/process.rb:24:in `block in start'\r\n/app/vendor/bundle/ruby/2.2.0/gems/thread-0.2.2/lib/thread/pool.rb:67:in `call'\r\n/app/vendor/bundle/ruby/2.2.0/gems/thread-0.2.2/lib/thread/pool.rb:67:in `execute'\r\n/app/vendor/bundle/ruby/2.2.0/gems/thread-0.2.2/lib/thread/pool.rb:405:in `block (2 levels) in spawn_thread'\r\n/app/vendor/bundle/ruby/2.2.0/gems/thread-0.2.2/lib/thread/pool.rb:372:in `loop'\r\n/app/vendor/bundle/ruby/2.2.0/gems/thread-0.2.2/lib/thread/pool.rb:372:in `block in spawn_thread'\r\n\r\nよろしくお願いします。"},"comment":{"url":"https://api.github.com/repos/unageanu/jiji2/issues/comments/245435554","html_url":"https://github.com/unageanu/jiji2/issues/128#issuecomment-245435554","issue_url":"https://api.github.com/repos/unageanu/jiji2/issues/128","id":245435554,"user":{"login":"unageanu","id":11205,"avatar_url":"https://avatars.githubusercontent.com/u/11205?v=3","gravatar_id":"","url":"https://api.github.com/users/unageanu","html_url":"https://github.com/unageanu","followers_url":"https://api.github.com/users/unageanu/followers","following_url":"https://api.github.com/users/unageanu/following{/other_user}","gists_url":"https://api.github.com/users/unageanu/gists{/gist_id}","starred_url":"https://api.github.com/users/unageanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unageanu/subscriptions","organizations_url":"https://api.github.com/users/unageanu/orgs","repos_url":"https://api.github.com/users/unageanu/repos","events_url":"https://api.github.com/users/unageanu/events{/privacy}","received_events_url":"https://api.github.com/users/unageanu/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T22:10:22Z","updated_at":"2016-09-07T22:10:22Z","body":"おそらく、バックテストの設定で必要な通貨ペアがチェックされてないものと思われます。\r\n標準添付の `MovingAverageAgent` は `:USDJPY` を利用しますので、バックテスト作成画面の「使用する通貨ペア」でこれをチェックして実行してみてください。"}}
{"actor":{"display_login":"unageanu"}}