CinderellaMan
Hello,
Recently I started a project that became really useful for me and wanted to share it as it could be useful for people that are trying to build trading bots.
At this moment Toretto (well, it’s a dev codename) - can stream trade events from Binance, allows to see things through GUI (written in Phoenix Liveview) and kick of/stop streaming from there. I’m planning to add features like backtesting and even sample “naive algo” which can be showcasing how to write an algo.
My idea would be to expand it to be like kick-starter boilerplate for somebody planning to code algo trading in Elixir - batteries included (you can read more about plans from “to do” section. A little bit like quantopian but it would be fully open source and written in Elixir <3
I’m really excited to share this even when it’s in such very early stage - I’m relatively new to Elixir/Erlang so any guidance would be greatly appreciated.
Link: GitHub - Cinderella-Man/igthorn: Cryptocurrency trading platform · GitHub
PS. Help from anybody with any design skill would be greatly appreciated ![]()
Thanks in advance,
Kamil
Trending in Discussions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #phoenix_html
- #iex
- #elixirconf-us
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 9- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
tty
If you can provide Simple and Exponential Moving Averages it would be useful to build most of the other indicators and trading algorithms.
The next likely candidate would be Fibonacci Retracements and Extensions.
Are you also providing conditional trade executions (stop loss, etc) ?
CinderellaMan
Wow, that’s exactly the answer/comment that I was hoping for - thank you so much. I will add it to my todo list and start working on them ASAP. There will be some learning curve so feel free to jump in with help whenever you can - would be greatly appreciated
Regards conditional executions - they are supported by Binance as far as I remember correctly - otherwise it would be part of strategy.
tty
Is it possible to place shorts ? If not it won’t be possible to arbitrage.
CinderellaMan
It’s not possible to short crypto on crypto exchanges (as far as I’m aware, CFDs is allowing it but I doubt that I will support MetaTrader or similar - better focus on getting it working with exchanges).
When I was pointing to arbitrage I was thinking about buying on binance and selling somewhere else in the same time and gaining by price difference.
CinderellaMan
Hello,
I added a skin to the app, dashboard with current (streamed) prices and currently working on first algo. Will keep you updated.
Ps. Looks like LiveView works perfect in widget structure using
mountas “controller” - example in repo would beprice_feed_live.Enjoy
CinderellaMan
It took me ages but I managed to push new version tonight.
Backtesting is now implemented and working, naive strategy is trading and making money (checked live and using “unit” tests) - screenshot below:
Warning: As per description in repository, use it at your own risk
It’s still buggy for sure but I’m working hard to make it better - any contributions are welcome 
Also, repository got moved to: GitHub - Cinderella-Man/igthorn: Cryptocurrency trading platform · GitHub
I started to tag releases - newest one is 0.0.2
mbenatti
Great job @CinderellaMan,
Are you using for personal projets or something on enterprise ecosystem?
CinderellaMan
Hello @mbenatti
Sorry for a late response. I’m planning to start a small trading company which will be based heavily on Igthorn platform (which btw changed address again… sorry: GitHub - Cinderella-Man/igthorn: Cryptocurrency trading platform · GitHub)
I was taking my time to respond as I was prepping version 1.0.0 - first stable release of ecosystem.
It contains numerous improvements:
I made some backtesting runs and I need to admit that I wasn’t expecting anything like that.
Here’s a chart of XRPUSDT for 03.06.2019 up to 09-06.2019 (7 days):
Settings:
Symbol: XRPUSDT
Date range: 2019-06-03 - 2019-06-09 (inclusive)
Number of events: 1047065
Market start price: 0.44396000
Market last price: 0.38527000
Market performance: -13.219659428777376%
Naive strategy performance: -2.96853464475%
Number of orders: 1098
Number of trades: 384
- gaining trades: 346
- stop losses: 38
Estimated number of retargeted orders = 1098 - 398 * 2 - 38 = 264
PS. @mbenatti I’ve seen your PR for
binance.expackage. I’m got some admin perks to be able to push it forward - if you want to team up to get it better, let me know. We could also go through your PR and get it to mergeable state.CinderellaMan
Hello,
Sorry for a long time without updates but I’ve spent it doing a lot of live testing which takes time. I just released version 1.0.1 of Igthorn which fixes a lot of edge cases and other bugs that cropped out in live trading (yes, this code is trading live coins for more than a month now!)
List of new features:
Other nice things include new logo
Below new dashboard look:

Next on the road map indicators that were pointed out earlier but never had time to get them sorted out.
Enjoy!