GUNBOT: The automatic profit generator > Technical Support & Development

GUNBOT bought twice using more funds than it's supposed to

(1/3) > >>

gionni:
Hi I believe this is for Gunthar.
I started the bot this morning for a pair, came back after a few hour and I see 2 buys, both for the max btc allowed.
I checked to see if there were 2 bots running the same pair but it is not the case.
I usually understand what the bot is doing but this time I'm lost...

Logs are attached.
CONFIG:

BUYLVL1: 0.8, // first level margin to buy when currency decreases its value (example: buy when currency decreases 1% of EMA)
   BUYLVL2: 0.8, // second level margin to buy when currency decreases its value (example: buy when currency decreases 3% of EMA)
   BUYLVL3: 20, // third level margin to buy when currency decreases its value (example: buy when currency decreases 5% of EMA)
   SELLLVL1: 1, // first level margin to sell when currency increases its value (example: sell when currency increases 2% of paid)
   SELLLVL2: 1, // second level margin to sell when currency increases its value (example: sell when currency increases 5% of paid)
   SELLLVL3: 70, // third level margin to sell when currency increases its value (example: sell when currency increases 10% of paid)
   BUYLVL: 3, // buy level you want your gunbot to reach (example: i want my gunbot to buy when price reaches level 3)
   SELLLVL: 3, // sell level you want your gunbot to reach (example: i want my gunbot to sell when price reaches level 3)
   BTC_TRADING_LIMIT: 0.01,// max amount of BTC balance to use for each pair
   SECURITY_MARGIN: 40, // sell all balance if currency decreases x% after you bought it
   SELL_ON_START:false,
   CANCEL_SELL_ORDERS_ON_START:false,

   MAX_LATEST_PRICES: 30,// limit of latest prices to analyze to determine if price is growing or falling
   MAX_LATEST_DIRECTIONS:30,// limit of latest  price directions ,used in supergun detection

   STARTEMA1: 0.02,// weighted average interval in hours
   STARTEMA2: 0.04,// weighted average interval in hours
   PERIOD: 15,   // candlestick period


PS. Man, sold the pink too early and double buy of a dropping coin... And even so I still have 2% more than yesterday overall :D

Gunthar:
YEs this is coded on purpose: during a pump, if there is a stop, the bot doesnt know if the price will fall or raise up, so it places a sell order. If then, the pump continues, it buys again. Result: 2 buy and 1 sell in total at the same time.

gionni:
mmm ok I don't see the sell in my case.
And the problem here I think is that the bot made 2 buys using the max allowed each time without a sell in between so basically it didn't respect the limit of the settings.

Gunthar:
Mine wasnt a question: your bot placed a sell in the middle of 2 buys (which is prolly still in yoru open orders)

gionni:
You are obviously right, the sell is still there!
Still at the end of the road, the sell did not go, the bot used twice the amount he was supposed to spend, it did not sell afterwards and so I'm holding the bag I was willing to risk plus another one.
I understand the strategy but I still feel like the bot is not respecting the indication I gave.

Navigation

[0] Message Index

[#] Next page

Go to full version