-
Notifications
You must be signed in to change notification settings - Fork 3.9k
this.advice is not a function #2539
Comments
No. Can you please post your full code in a gist (don't copy it here). |
The functions working know after I updated gekko. |
Most likely an error in your code. You can ignore that other warning.
If this is fixed now can you close the issue?
…On Tue, 18 Sep 2018, 00:56 moo5e, ***@***.***> wrote:
The functions working know after I updated gekko.
Was this an error within my code?
I've realised theres another error aswell, when I start the backtest I get
this:
Deprecation warning: value provided is not in a recognized RFC2822 or ISO
format. moment construction falls back to js Date(), which is not reliable
across all browsers and versions. Non RFC2822/ISO date formats are
discouraged and will be removed in an upcoming major release. Please refer
to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined,
_i: 2018-08-5, _f: undefined, _strict: undefined, _locale: [object Object]
Error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2539 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7MDyRJiML-41whB8paXapI-GUM5l70ks5ub9QmgaJpZM4WsBc7>
.
|
Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.
I'm submitting a ...
[ ] bug report
[ ] question about the decisions made in the repository
Action taken (what you did)
Added this to my code:
this.advice({
direction: 'long',
trigger: {
type: 'trailingStop',
trailPercentage: 0.5
}
});
Expected result (what you hoped would happen)
Gekko would buy the asset with the trailing stop in action
Actual result (unexpected outcome)
the this.advice function doesnt trigger
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
this.advice('long') works in the same context as the above.
I'm running gekko v0.6.5 on ubuntu 18.04
Could this be due to an outdated gekko?
The text was updated successfully, but these errors were encountered: