crypto-trading-bot icon indicating copy to clipboard operation
crypto-trading-bot copied to clipboard

The tradingbot has a take profit possibility?

Open SuselK opened this issue 4 years ago • 8 comments

Hello everybody... The tradingbot has a take profit settings? In instance.js?

Best Regards Susan

SuselK avatar Dec 01 '20 16:12 SuselK

feel free to edit the strategies. You are not forced to use them as they are. Also this project is open source, please do the effort to read the code like we all did

Wladastic avatar Dec 01 '20 17:12 Wladastic

Hello @Wladastic ... yes sure. But my knowledge is unfortunately not that big.

Ok signals, trades and stoploss works for me :-).

But the most important thing for me is that you can set a "TakeProfit" and maybe in the 2nd step an automatic increase of the "TakeProfit" based on the course.

Can you implement something like this for me for "binance_futures"?

For example as parameter in the "instance.js" file takeProfit: '0.6' // in percent

But I don't know in which source file the trade is opened and where I can install that with the new trade a "takeProfit" is saved.

Best Regards Susan

SuselK avatar Dec 02 '20 14:12 SuselK

I had a similar idea too, but not sure how to create a pullrequest here... Also not yet 100% sure where it picks up the watchdogs, as they are checked for on multiple places.

Wladastic avatar Dec 02 '20 18:12 Wladastic

Hi @Wladastic ... you have a solution :-)? You can send me this privat ....

SuselK avatar Dec 07 '20 18:12 SuselK

I didn't even start yet, Try to create one, I am sure half the code can be used from the stoploss feature

Wladastic avatar Dec 07 '20 18:12 Wladastic

@MeoncoSusan @Wladastic Any solution for this auto. increase TP with SL feature?

kingchenc avatar Jan 16 '21 23:01 kingchenc

I have no need for a take profit automation yet. So I never wrote one

Wladastic avatar Jan 21 '21 22:01 Wladastic

@SuselK here's an example:

src/modules/strategy/strategies/dip_catcher/dip_catcher.js

module.exports = class DipCatcher {
  ...
  period(indicatorPeriod) {
    ...
    if (lastSignal && indicatorPeriod.getProfit() > 0.4)
      emptySignal.setSignal('close');
    return emptySignal;
  }
  ...
}

ArnisL avatar Apr 05 '21 11:04 ArnisL