Juris Mindcraft: Predicting the Stock MarketAs part of our R&D efforts with Mindcraft AI, we have tried to predict the movement of KLSE shares using our Artificial Intelligence engine.To simplify the project, we decided to only use price-action-movement to predict share prices, namely:Daily opening priceDaily closing priceDaily highDaily lowDaily volumeCorrelation with KLSE Composite IndexVarious Technical Indicators such as Candlesticks, MACD, RSI, etc.The goal was to see if we could predict whether any given stock would go up at least 5% in 2 weeks.We felt that this goal was achievable because many traders have been successfully trading using only this information, and some traders have apparently automated their systems and also use AI. For examples of this, see Market Wizards and the newer book Hedge Fund Wizards.KLSE data was purchased from bizfun.cc as the data is very clean and stock splits and rights issues are corrected for you.Training was on 2011 and 2012 share price data, and then tested on data from 1995 to 2014. We used all KLSE stocks, excluding low volume stocks as these are too unpredictable.How Mindcraft AI worksMindcraft is a pattern recognition engine. It finds patterns in the data and assigns probabilities to how confident it thinks these patterns are. The key feature of AI is that it is able to find interesting patterns even if the data is imperfect, dirty or incomplete. A typical rule generated could look like this: IF Moving Average of Share Closing Price Dropped by 20-50% AND Share Correlation with KLCI > 0.5 AND KLCI above Moving Average AND Share Candlestick is Tweezers Top THEN BUY (67% probability)Best Results for KLSE 1995-2014The results for 2011 and 2012 should be good, as that was used to train the AI. The key thing to see is how good the predictions are with years it has never seen before, such as 1995-2010.YearGood Predictions#PredictionsInvest/YearGains/Loss 14 days after purchase% Returns (after Trx Costs)201483.6%55.0448,44768,84715.4201375%12.0139,28212,3828.92012100%2.06,6682,44036.6201184%25.0280,81127,4439.8201025%4.040,000-3,319.0-8.320090%1.011,997-360.0-3.0200869.1%175.01,393,747258,43218.52007100%27.0286,42283,03129.0200668.8%16.0191,0024,9462.620050%3.011,465-933.0-8.12003100%4.046,4903,0656.62002100%1.05,434495.09.1200182.9%41.0332,35939,27711.8200067.3%49.0212,64114,6716.9199981.3%80.0731,50978,09710.7199870.4%142.0644,163247,56138.4199767.8%566.01,752,588432,63424.71996100%3.040,0005,51113.8199591.1%45.0300,384102,64434.2[rn_id=560596036, cf>=0.5]The amount invested per trade was capped at RM 10,000, with no trade allowed to be more than 1% of the total RM volume of the shares for that day (because large share purchases would move the share price). Losses were cut if the share price fell by 20%. Otherwise the shares were sold after the 14 days. We assume transaction costs of 0.5% for buy and sell combined.Using AI for InvestmentThe results are currently experimental because the AI works best when there is a lot of volatility in the market. When the market is stable, the AI finds few counters to trade, so some years are very lean. We can make the AI less picky, but then accuracy will drop.The returns can fluctuate a lot. Some years are very positive, some years negative. This strategy is only suitable if you are a risk taker.Lastly, the model is very specific to the data provided. Testing on HK stock market counters reveals that different variables are picked up by the AI.Overall the data is very promising and more research can be done.Technical NotesThis is one of the largest datasets we have analysed. The KLSE data extends from 1995 to 2015 and is 3.6 million records. We used a cluster of 5 servers and ran 26 CPU cores in parallel at peak for data mining.By JurisTech|2024-01-24T15:19:26+08:0026th March, 2015|Insights| About the Author: JurisTech The Marketing & Communications team at JurisTech comprises skilled digital marketing strategists and content creators who deliver invaluable insights drawn from our experts in lending and recovery software solutions. For media queries, please contact us at mac@juristech.net. Related Posts How JurisTech’s Predictive AI Solution Delivers A Valuable Trust Advantage For Banks 3rd September, 2025 Agentic AI in Debt Management: Smarter Collections with a Customer-First Approach 28th August, 2025 How Juris Spectrum Drives Omnichannel Customer Experience in Banking 20th August, 2025