Skip to content

Repository files navigation

Market-simulator A market simulator using real price information from the bitfinex rest end point so I can build and test and automate my trading strategies without relying on paid charting software like tradingview.

Why not use the official libraries?

Bitfinex does have a python library already, and I'll eventually use it but this is a project I've wanted to do for a long time do I'm going to see what I can produce on my own as much as possible before using their library so I can see what problems I run into first.

Future plans

NodeJS - Instead of running off my PC in a terminal window I'll have this running on NodeJS somewhere

Bring over Icarus and other indicators from tradingview (image below) to work natively with my application image

How to use

Right now just run the main.py to start and a simple text output will show you how things are going. image

Basic settings

Position size File: main.py Variable: posSize Default Value: 1

Position target File: position.py Variable: exitPrice When a position is created i.e pos = Position(posSize, entryPrice, target, stopLoss) is used. target are multiplied as follows exitPrice * (1 + target) or Position(1, close[0], 0.01, 0.03)

Position stopLoss File: position.py Variable: stopPrice When a position is created i.e pos = Position(posSize, entryPrice, target, stopLoss) is used. stopLoss are multiplied as follows stopPrice * (1 - stopLoss) or Position(1, close[0], 0.01, 0.03)

About

A market simulator I can use to test and automate my trading strategies without relying on paid charting software like tradingview nor will I be limited the exchange interface to make my trades on sites like www.bitfinex.com

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages