JayArrowz / PancakeTokenSniper

BSC BNB Pancake token sniper, buy, take profit and rug check
210 stars 124 forks source link

Add trailing stop loss. #22

Open twilker opened 2 years ago

twilker commented 2 years ago

I added the possibility to set a trailing stop loss. With that it is possible to get out before the target profit percentage when a certain stop loss occurred. It also enables the function to find the peak by only setting the stop loss. To achieve this the target profit has to be set to a ridiculous amount.

JayArrowz commented 2 years ago

Will merge in later on today and create a new release. Good stuff @twilker

twilker commented 2 years ago

Added a small fix, as it was approving every time liquidity was added.

bolaidedd commented 2 years ago

Hello guys, with SniperService.cs modified by twilker and the •original repo files from JayArrowz the bot now approve but fails same to sell with this error Fail with error 'PancakeRouter: INSUFFICIENT_OUTPUT_AMOUNT€' For sure caused by a low slippage. Is this possible to add the function for modify slippage sell?

Thanks for your work

•Original repo files i mean the latest files provided by JayArrowz