11-14-2018, 03:19 PM
(11-14-2018, 11:15 AM)askmike Wrote: @asympleton is this the live trader or the paper trader?
This is all in the paper trader (it seems prudent to make sure everything's working as expected on paper before going live so the problems I'm experiencing are worrying me).
Is there an example of a strategy using the new 'trigger' and trailPercentage which works as expected?
My advice code is just copied from what I saw (note I configure settings.trail_pct):
this.advice({
direction: 'long', // or short
trigger: { // ignored when direction is not "long"
type: 'trailingStop',
trailPercentage: settings.trail_pct
// or:
// trailValue: 100
}
});