askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.07k stars 3.95k forks source link

can be writed a strategy using the orderbook? #791

Closed scidran closed 7 years ago

scidran commented 7 years ago

Hi. I want to write a strategy using the orderbook datas... into live not into testmode... because i don't know if exist orderbook datas that i can download for test mode. I would like to combine a RSI strategy with an other oscillator strategy and a buing and selling stategy into orderbook. But i'm not able to understand if it's possible or not.

thegamecat commented 7 years ago

Go into local data on Ui then import data. Then backrest.

To combine rsi with an oscillator you need to write your own strategy.

scidran commented 7 years ago

Yes i know this... But i want also to put a function that find if there are great movement placed into orderbook and stop or start my stategy before this order take exchange... I need to verify orders volume into the order book before that the order is taked from the exchage company.

askmike commented 7 years ago

Unfortunately the choice was made when designing Gekko to not include orderbook data. The main reasons are:

So this means that when writing a strategy for Gekko you cannot look at orderbook data. The strategy merely suggests what position you should take and it is up to the portfolio manager to execute orders (the PM will look at the top of the book - note that this behaviour is changing in the next release of Gekko).

Feel free to respond here, but I am closing this since it is an active design decision.

scidran commented 7 years ago

ok thanks