Skip to content

A simple trading algorithm to trade the Bitcoin (BTC) - BUSD pair, based on the moon phase.

License

Notifications You must be signed in to change notification settings

anishrverma/Lunar-Moon-Phase-Trading-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moon Phase Trading Algorithm

version 1.0

Naive day trading is a fast way to lose money, but it's a fun way to test out different strategies and learn from them. A lot of day traders use technical analysis to inform their trades, however, it holds about as much weight as astrology does.

This inspired me to make a very simple algorithm based on the lunar (moon) phases, trading BTCUSD on binance.com.

The trade logic is to buy on a full moon, sell on a new moon, and hold in-between. The fraction of your BTC that you buy / sell is defined in parameters.py. They are both currently set to 0.3 . The asset pair that you trade is also defined in BTCBUSD. You can change both at your leisure, but will need to change some labels in main.py.

You'll need to input your api keys in the .env file to get this to work. Please see binance's documentation on how to do this here.

The trading logic can be improved quite easily, just remember to treat this as a finite state machine.

This project was inspired by ibeandyy.

About

A simple trading algorithm to trade the Bitcoin (BTC) - BUSD pair, based on the moon phase.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published