10-30-2018, 01:44 PM
Currently the documentation states that this is always "trailingStop". Is there a way to write info to this?
I was looking at how I could get a message from the strategy to an event as when a strategy is running multiple indicators and stop loss/take profit it would be nice to know what has triggered the current advice. Obviously I'm not the only one to think this as there is a field for it... Is it possible to yet?
I was thinking something like this:
Thanks.
I was looking at how I could get a message from the strategy to an event as when a strategy is running multiple indicators and stop loss/take profit it would be nice to know what has triggered the current advice. Obviously I'm not the only one to think this as there is a field for it... Is it possible to yet?
I was thinking something like this:
Code:
// this.advice('advice', 'optional message');
this.advice('short', `${takeProfitPercent}% Take Profit Triggered`);
Thanks.