Build a decision service that decides whether to buy a given stock, based on guiding rules such as:
- A stock in debt is considered risky.
- A stock in fusion (merger) with another stock may be risky.
- A stock in fusion with a strong stock is not risky.
- Don’t buy risky stocks unless they have a good price.
In practice these rules get refined over time — for example, Rule 3 might become “a stock not in debt and in fusion with a strong stock is not risky,” and new rules about stocks involved in scalp and/or swing trading could be added later. How easy is it to extend your decision service with rules like these without breaking the existing ones?
Send your solutions to DecisionManagementCommunity@gmail.com, or open a pull request to add yours here.