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

Standard Deviation Strategy #688

Closed
wants to merge 10 commits into from
Closed

Standard Deviation Strategy #688

wants to merge 10 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 7, 2017

I'll be posting some simulation results tonight. Best run at 1-100ms or 1s period if you're feeling risky.
Poll times need to be lower than period interval for effectiveness.

Numbers looked good right off the bat, but I need more processing power to compute at this period interval.

@@ -0,0 +1,55 @@
GNU nano 2.5.3 File: extensions/strategies/stddev/strategy.js
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

if (s.lookback[s.options.min_periods]) {
for (let i = 0; i < s.options.trendtrades_1; i++) { tl0.push(s.lookback[i].close) }
for (let i = 0; i < s.options.trendtrades_2; i++) { tl1.push(s.lookback[i].close) }
var tlst0 = stats.stdev(tl0)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird indentation starts here


onPeriod: function (s, cb) {
if (
s.devi1 > 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird indentation block

"zero-fill": "^2.2.3"
"zero-fill": "^2.2.3",
"stats-lite": "2.1.0",
"stats-array": "0.1.2"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused?

@@ -0,0 +1,23 @@
<?php
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. php?

@ghost ghost closed this Nov 7, 2017
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant