Skip to content

Algorithm attempts at creating an AI which will analyze stock markets. Trying to optimize profitting of buying and selling shares.

Notifications You must be signed in to change notification settings

pupupu-fine/InvestmentAlgorithm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InvestmentAlgorithm

Algorithm attempts at creating an AI which will analyze stock markets. Trying to optimize profitting of buying and selling shares.

Setup

  • Fork project to own repository on GitHub. Then pull to local repository if you like.
  • Create your own Investment.java class which extends Investment.
public class ToonwireInvestment extends Investment {...}
  • Add unimplemented methods dictated by the Investment class
public class ToonwireInvestment extends Investment {

      public String getInvestmentName() {
            return "NameGoesHere";
      }
      public TradeAction tick(double price) {
            // investment algorithm goes here
            
            return someTradeAction   // TradeAction.BUY, TradeAction.SELL, TradeAction.DO_NOTHING
      }
}

TradeAction.DO_NOTHING does nothing on the tick.

TradeAction.BUY buys a stock, if you dont have one already.

TradeAction.SELL sells your stock, if you have one, otherwise it does nothing.

  • Make a pull request when wanting to share your awesome investment algorithm! - or if you have some changes.

About

Algorithm attempts at creating an AI which will analyze stock markets. Trying to optimize profitting of buying and selling shares.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%