gerlandotermini / rh-trading-bot

A simple concept for a trading bot in Python. For educational purposes only.
MIT License
11 stars 5 forks source link

Testing new strategy #6

Closed Dragon9090 closed 3 years ago

Dragon9090 commented 3 years ago

Hi, I'm testing a new simple strategy using the 1 min interval with ema 2 and ema 3 as crossovers. I was wondering if you tried using your bot on 1 min interval. Can Robinhood ban you from making trades too fast? If the strategy is implemented the bot will most likely trade around 300 times a day. Thank you.

gerlandotermini commented 3 years ago

Hi, I've read on online forums that they might ban you if they notice such a high frequency of trades, so I never tried. My setup checks prices every 5 minutes and the crossover parameters trigger a trade every few hours at best, and I usually have no more than 4-5 trades a day. The irony is that high frequency trading is how they make money after all.

Dragon9090 commented 3 years ago

Interesting, I will update you after more research and see if I get banned.

gerlandotermini commented 3 years ago

Please keep us posted

Dragon9090 commented 3 years ago

How do you change the order from limit order to market order?

gerlandotermini commented 3 years ago

It's not that simple. The function that performs the actual buy is 'order_buy_crypto_limit', however the code is designed to work with limit orders (available cash management, how orders are placed, etc). So it's not just a matter of invoking a different API call, the logic should be adjusted as well.

Dragon9090 commented 3 years ago

I see, thank you for clarifying.

Dragon9090 commented 3 years ago

Is there a way to make the bid price closer to the marked price?

gerlandotermini commented 3 years ago

You could track the "ask" price when retrieving new data, instead of the mark price, in 'get_new_data'