08-16-2018, 09:24 AM
I did a quick test by adding the trailing stoploss trigger into my strategy:
this.advice({
direction: 'long',
trigger: {
type: 'trailingStop',
trailPercentage: 3
}
});
Unfortunately during backtest I get errors that the trailValue does not get calculated correctly...I gave it trailPercentage. So backtest result is the same - SL is not applied.
2018-08-15 23:02:49 (INFO): [StratRunner] Trailing stop trail value
specified as percentage, setting to: NaN undefined
2018-08-15 23:02:49 (WARN): [Papertrader] ignoring trailing stop
without trail value
I saw you moved trigger things into GB, is the advice usage still valid?
this.advice({
direction: 'long',
trigger: {
type: 'trailingStop',
trailPercentage: 3
}
});
Unfortunately during backtest I get errors that the trailValue does not get calculated correctly...I gave it trailPercentage. So backtest result is the same - SL is not applied.
2018-08-15 23:02:49 (INFO): [StratRunner] Trailing stop trail value
specified as percentage, setting to: NaN undefined
2018-08-15 23:02:49 (WARN): [Papertrader] ignoring trailing stop
without trail value
I saw you moved trigger things into GB, is the advice usage still valid?