tsarbuig / WalletHunter

The first Copytrading crypto bot in the World - for Uniswap & Pancakeswap
24 stars 10 forks source link

[Bug] Trailing stop started before Target Price reached #52

Closed AdamB2023 closed 1 year ago

AdamB2023 commented 1 year ago

v0.50.0

AUTOSELL_MODE: "trailing_stop" AUTOSELL_PROFIT_TARGET_1: "100%"

It didn't reach 100% before starting trailing_stop

99c9 -- COPY SWAP ---------------------------------------------------
02-19 04:44:03.443  99c9 - BUY Tx - MEME_COIN - 0x - Case 1 - Swap sent in: 0.00797s

99c9 -- CONTROLS AFTER Tx -------------------------------------------
02-19 04:44:13.4413  99c9 - BUY PRICE  ----------- You used 0.080000000000 Wrapped Ether to buy 1.217964993783 MEME_COIN --> Buy price = 0.065683332779 Wrapped Ether/MEME_COIN
02-19 04:44:13.4413  99c9 - POSITION IN BLOCK ---- FRONTRUN : you managed to frontrun the original Tx :) (56 position before)
02-19 04:44:13.4413  99c9 - BALANCE CHECK -------- Your ETH balance is: 1.759355676176926507
02-19 04:44:13.4413  99c9 - TOKEN APPROVAL ------- Token MEME_COIN needs approval --> let's approve
02-19 04:44:23.4423  99c9 - MEME_COIN approval Tx: 0x

99c9 -- ANTI RUG ----------------------------------------------------
02-19 04:44:23.4423  99c9 - ANTIRUG -------------- Anti rug-pull method starts for token MEME_COIN
02-19 04:44:24.4424  99c9 - GET CONTRACT --------- MEME_COIN contract is open source --> we will be able to offer you good protection

99c9 -- AUTO SELL ---------------------------------------------------
02-19 04:44:25.4425  99c9 - AUTO SELL VALUES ----- MEME_COIN | Buy price (including fees) 0.065683332779159 | Stoploss (0%) 0.000000000000000 | Current Sell Tax 0%
02-19 04:44:25.4425  99c9 - AUTO SELL VALUES ----- MEME_COIN | 1st target price 0.065683332779159 --> will sell 50% of your initial bag (608982496891382014 tokens)
02-19 04:44:25.4425  99c9 - AUTO SELL VALUES ----- MEME_COIN | 2nd target price 6.567676444588141 --> will sell 50% of your initial bag (608982496891382014 tokens)
MEME_COIN  (99c9) Price after Tax 0.057691047873959969 | 1st target price 0.065683332779 | Stoploss 0.000000000 || Sell Tax 0% < Max Tax (60%) | Current profit: -12.2%
MEME_COIN  (99c9) Price after Tax 0.066656979758995108 | 1st target price 0.065683332779 | Stoploss 0.000000000 || Sell Tax 0% < Max Tax (60%) | Current profit: 1.5%
02-19 04:44:37.4437  99c9 -- TRAILING STOP START for token MEME_COIN
MEME_COIN  Price after Tax 0.066656979758995108 = ATH-0.0% (max -20%) || Sell Tax 0% < Max Tax (60%) | ATH 0.066656979759 | Current profit: 1.5%
MEME_COIN  Price after Tax 0.076236034333743791 = ATH-0.0% (max -20%) || Sell Tax 0% < Max Tax (60%) | ATH 0.076236034334 | Current profit: 16.1%
MEME_COIN  Price after Tax 0.108592469901794081 = ATH-0.0% (max -20%) || Sell Tax 0% < Max Tax (60%) | ATH 0.108592469902 | Current profit: 65.3%
MEME_COIN  Price after Tax 0.102130072182401582 = ATH-6.0% (max -20%) || Sell Tax 0% < Max Tax (60%) | ATH 0.108592469902 | Current profit: 55.5%
MEME_COIN  Price after Tax 0.073193392931746690 = ATH-32.6% (max -20%) || Sell Tax 0% < Max Tax (60%) | ATH 0.108592469902 | Current profit: 11.4%
02-19 04:52:49.5249  99c9 -- TRAILING STOP IS OVER for token MEME_COIN : price is below ATH - 20%
02-19 04:52:49.5249  99c9 - MEME_COIN 1st SELL TARGET REACHED : current price = 0.066656979758995 --> let's sell 50% of your initial bag! (608982496891382014 tokens)
02-19 04:52:49.5249  99c9 - TX EARNINGS ---------- Selling 608982496891382014 MEME_COIN will pay you 77.08$ > SELL_TX_MINIMUM_EARNINGS_IN_DOLLARS --> let's continue
02-19 04:52:50.5250  99c9 -  MEME_COIN SELL Tx sent : 0x - Waiting Transaction Receipt...
02-19 04:53:00.530  99c9 - MEME_COIN SELL Tx SUCCESS :)
MEME_COIN  (99c9) Price after Tax 0.068839671878468414 | 2nd target price 6.567676444588 | Stoploss 0.000000000 || Sell Tax 0% < Max Tax (60%) | Current profit: 4.8%
tsarbuig commented 1 year ago

be careful, read carefully the comment :

image

If you want to sell at buyprice * 2 , you need to put AUTOSELL_PROFIT_TARGET_1: "200%"

--> by putting "100%", you told the bot to sell at the same price that you bought --> this is why it triggered at 1.5% profit