ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.37k stars 823 forks source link

Buy at sell at mode #789

Open Camille92 opened 6 years ago

Camille92 commented 6 years ago

Hi Carles and all,

I would like to present you a mode that would be useful for not very volatile pairs like USD/EUR USDT/USD etc... The idea is quite simple, you put a buying price and a selling price, then the bot waits for the buying or selling price to be reached, it's as easy as that!

For instance, on a USD/USDT pair, you could put buy at 0,99 and sell at 1,01. As you know the price you stay around that it's a safe bet :).

Alternatively, this mode can be quite useful if you want to exit a position or enter a position at a good price.

Tell me what you think about that,

Best,

Camille

serzhiio commented 6 years ago

But where is the profit here?

2018-08-22 13:06 GMT+03:00 Camille92 notifications@github.com:

Hi Carles and all,

I would like to present you a mode that would be useful for not very volatile pairs like USD/EUR USDT/USD etc... The idea is quite simple, you put a buying price and a selling price, then the bot waits for the buying or selling price to be reached, it's as easy as that!

For instance, on a USD/USDT pair, you could put buy at 0,99 and sell at 1,01. As you know the price you stay around that it's a safe bet :).

Alternatively, this mode can be quite useful if you want to exit a position or enter a position at a good price.

Tell me what you think about that,

Best,

Camille

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ctubio/Krypto-trading-bot/issues/789, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9yt95YPOg2tqqpdvYpzNkDPpc_D7Q2ks5uTS0ogaJpZM4WHXLm .

-- С Уважением, Матыцин Сергей Леонидович sergey.matytsin@gmail.com

Camille92 commented 6 years ago

If you buy at "0.99" and sell at "1.01" that's a 2% profit ;)

Camille92 commented 6 years ago

You're just hard-coding the price you want to buy or sell if you prefer, like if you do a limit order on your computer, but with the added advantage of respecting bw? and staying on K.

serzhiio commented 6 years ago

Hm, in what way you suggest to fix ask/bid prices?

2018-08-22 13:13 GMT+03:00 Camille92 notifications@github.com:

You're just hard-coding the price you want to buy or sell if you prefer, like if you do a limit order on your computer, but with the added advantage of respecting bw? and staying on K.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ctubio/Krypto-trading-bot/issues/789#issuecomment-414983290, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9ytyKxlOmRciFcueL8-1dMrDQ6-reGks5uTS6zgaJpZM4WHXLm .

-- С Уважением, Матыцин Сергей Леонидович sergey.matytsin@gmail.com

Camille92 commented 6 years ago

By creating a new mode "buy at / sell at" so as its name indicates it, the bot buys at "X" price and sells at Y price. Then the user chooses the value for X and Y 😄

serzhiio commented 6 years ago

Isnt it easier to make such orders manually on the exchange site?

2018-08-22 13:22 GMT+03:00 Camille92 notifications@github.com:

By creating a new mode "buy at / sell at" so as its name indicates it, the bot buys at "X" price and sells at Y price. Then the user chooses the value for X and Y 😄

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ctubio/Krypto-trading-bot/issues/789#issuecomment-414985683, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9yt-9roiDMK4K5ZKoXR10w6Joeu2h7ks5uTTD5gaJpZM4WHXLm .

-- С Уважением, Матыцин Сергей Леонидович sergey.matytsin@gmail.com

Camille92 commented 6 years ago

Well but then you don't use K anymore.

Advantages compared to the exchange: The bot will still do market making, by buying and selling at the same time. Look for instance at EOS, you see that the support is around 4,9 and resistance at 5,3. You could just put your bot to buy and sell on those support/resistance.

It's not revolutionary but I think it can help in some situations :)

flfsbr commented 6 years ago

Placing a fixed price for buying and selling in less volatile currencies is a great idea.

boogey100 commented 6 years ago

A maxBidPrice and minAskPrice would do it....

ctubio commented 5 years ago

how can we call this mode? FixedPrices? SleepUntilPrice? ManualMargin? ManualLimits?

:koala: or maybee simply add two new fields maxBidPrice and minAskPrice if Manual mode is enabled?

my plan is to add it near EWMAs, so it is an alternative to EWMA (you will be not able to select both)

let me know if is a very bad idea to put the two new fields inside Manual mode (cos is what i will end up doing i think :D)

many many thanks'''

flfsbr commented 5 years ago

add two new fields maxBidPrice and minAskPrice if Manualmode is enabled

For me it’s perfect.

Enviado do meu iPhone

Em 23 de fev de 2019, à(s) 16:25, Carles Tubio notifications@github.com<mailto:notifications@github.com> escreveu:

add two new fields maxBidPrice and minAskPrice if Manual mode is enabled?

Gondee commented 5 years ago

I think this mode would be useful, I do a lot of this type of work on Kraken and would be nice to have a bot take care of it. Though, its not as simple as fixed numbers. It would be like stagger buys down 1% - 2% and always sell them at just below a fixed number, in this case 1.

flfsbr commented 5 years ago

Hi Carles, are you considering implementing the fixed pricing function on the bot? Buy at and Sell at. This is a good strategy to use with stabecoins, for example USDT/TUSD buy at 0.0080 and sell at 1.0010.

The risk is very low since the coins are always close to 1 and the return is always guaranteed.