Friday, March 28, 2025

Portfolio -- Mar 2025

     

Investment Portfolio


1. Received Kep DC Reit dividend of 0.819 cents/unit
2. Received CICT dividend of 3.29 cents/unit
3. Received Mapleetree Ind dividend of 3.41 cents/unit
4. Entitled to Frasers Cpt Trust advanced distribution of between 6.13 to 6.19 cents/unit
5. Entitled to Frasers Cpt Trust preferential offering 
6. Received Lendlease Reit dividend of 1.7951 cents/unit



StockHolding Price*Market PriceUnrealized Profit/LossDividend Return
Income
CapitaMall Trust (CICT)$1.1304$2.10   +84.51%+135.81%
MapletreeInd Trust$0.9067$2.10+130.49%+119.06%
Kep DC Reit$0.9946$2.15+115.52%+80.97%
Frasers Cpt Trust$1.6908$2.18+27.97%+49.78%
Lendlease Reit--$0.5151.00 cents/share21.189 cents
Unrealized

+96.85%+92.57%
Strategic (Blockchain)
Crypto    

+10.46%
Variant (Value, Quantity)

-3.12%, +0.00%

Unrealized

+10.46% 
(% Income cost)

Summary
Total Unrealized**
+17.52%--
Total Realized (Strategic)**
+570.87%
+131.82% 
(% Income cost)
+55.10%
85.256 cents/unit
Total Realized (Crypto)**
+10.90% (% Income cost)--
Total Realized (Portfolio)**
+21.43%+74.29%
Cash----+83.37%--
Total Portfolio***
+113.24%--
Portfolio Variant

+1.63%
STI28/2/2025 = 3895.7028/3/2025 = 3972.43    Change = +3.02%


Stock Incubator Portfolio


1. Creative price lock at $1.28




Stock Holding Price*Market PriceUnrealized Profit/LossDividend Return
Nordic$0.0902$0.345+280.14%+142.83%
Valuetronics--$0.695--HK 191 cents/share
Creative$2.9272$1.28-59.31%
Unrealized

+140.47%+79.23%
Summary
Total Unrealized **--+40.31%--
Total Realized **
+45.26%+29.84%
Cash----+70.35%--
Total Portfolio    ***
+116.74%--
Portfolio Variant 

+1.16%
STI28/2/2025 = 3895.70    28/3/2025 =  3972.43Change = +3.02%


* = Initial Buy Price + Average on Right Issue
** =  Unrealized or Realized gain/loss in term of percentage with reference to total investment capital

*** = (total unrealized + total realized) with reference to total investment    

Thursday, March 27, 2025

STI Analysis with Ichimoku AI System -- Part 1

 After v3 of the Ichimoku AI System (refer here), I continued to enhance and improve the AI prediction and now the app has upgraded to v4.  In v4, other technical indicators like RSI, OBV and ADX are used together (or has the option to be used together) with the Ichimoku signals to improve the AI prediction.  There are also additional features added to fine tune the threshold to  improve the prediction too.  So now, am using this v4 to analysis STI.



This is how v4 looks like with those additional features.  STI was analyzed from 27th Mar 2022 till 27th Mar 2025, a 3 years period.  Well actually till 26th Mar 2025 as data only available till then.



This is the zoom version of the chart showing the predicted buy & sell signals.  The bottom plot is added in v4 shows the probability of the buy, sell and hold signals predicted by the AI model.  Why probability ?  Simple, as mentioned in previous post on the v3, AI is not to take over the control of human's decision making but assist them,  AI prediction is never just True or False as it relied on data being fed into for it to train to learn the pattern and then make the prediction based on what it has been trained.  It will output the prediction based on probability of will or will not happen.  Thus, able to look into the probability being predicted by AI is nevertheless a great way for us to eventually make the final decision.

A coin with 2 sides meaning each has 50% of 1/2 the probability of appearing when you toss.  In this Ichimoku AI system, we are dealing with not 2 but 3 classes, Hold, Buy and Sell.  This means each class has a probability of 1/3 to occur.  The AI prediction produces very interesting result for these past few weeks (up till 26th Mar 2025).  Sell signals (be it strong or weak) are flashing as early as September 2024 despite STI climbing higher and higher.  Well the most common first reaction upon seeing this definitely is the AI prediction is not working.  Sure ???  Now, look at the bottom probability chart, from Sept 2024 onwards, the probability for Sell signals is on the high side, easily surpass 0.5 while both the buy and hold signals are kept low below 0.35.  As mentioned before for a 3 classes system, each class has a probability of 1/3 to happen and now both the buy and hold are kept below the 1/3 probability during these periods.  Don't think this is something one can easily ignore.



For this analysis, I made use of RSI, OBV and ADX indicators together with Ichimoku and the above shows the respective chart for each of the indicator.  The RSI, ADX and OBV don't look like being oversold to the extend STI will drop next.  In fact, looking at them and with the knowledge of them, it does look like STI is biased towards the upside rather than the downside.  However, do remember that most technical indicators are laggard meaning it will not predict what will happen next and it only shows when it has already happened.



The above is the new features that were added to v4 of the app.  It is the Classification Report and Confusion Matrix of the AI model performance.  In another word, it is a metrics to determine how accurate the AI has made the prediction.  This is something I can tell you any commercial AI software will not show you and these are the most important metrics to determine how good the AI prediction is.  

First talk about the Confusion Matrix.  It basically a plot of True vs Predicted.  The diagonal line which was circled in the above represent the True Predicted probability.  For a very good performance, this diagonal line must have the highest number compared to the off diagonal rows and columns.  The off diagonal rows and columns represent the False Positive and the False Negative of the prediction.  The higher the number in these cell just tell you the prediction is pretty mess up.  Mentioned before, a 3 classes system the probability for each to occur is only 1/3.  In the above, the diagonal row are all having value more than 1/3 in particular the Buy-Buy sell is having a 0.58 value.  0.58 in a 3 classes system is like almost 88% probability in a 2 classes system.  Image the 2 sided coins with say Head is having a 88% chance of appearing, do you still bet on getting a Tail ?  Now, the Sell-Sell prediction is having a 0.44 probability and that translate to about 67% probability in a 2 classes system.  So, is the AI prediction of the sell signals since Sept 2024 till now incorrect ??  

Next look at the Classification Report, focus on the F1-score, F1-score is the combine of the Precision and Recall performance (for those wondering what are those for, please search and read up yourself).  The overall F1-score for accuracy of the prediction is 42% and that translates to 70% accuracy for a prediction of a 2 classes system (70% accuracy of predicting head or tail of a coin toss).  

Now, are those sell signals since Sept 2024 till now something that you can blush away because STI has been climbing higher and higher during these periods ?






Thursday, March 20, 2025

Ichimoku AI Trading System -- Part III

 Continued from Ichimoku AI Trading System -- Part I and Ichimoku AI Trading System -- Part II


Finally, completed a working version of the Ichimoku AI System !!!

Before proceed, let do some clarification, in the previous 2 edition, version 1 and version of the app, that should not be considered anything as AI.  Those should be classified as automation instead.  So, this version 3, IS REALLY AI !!!

What's the difference ?  In automation, we just make use of computation power to fasten the process and in the case of Ichimoku signal detection, it just simply marks out the buy and sell signals based on the rules that we input, the very typical Ichimoku buy and sell signals.  It WILL NOT PREDICT the nature of the signals.  In AI, the story is different.  historical data were fed to the AI model for machine learning, to train it to recognize the pattern as to when and how the buy and sell signals should be generated.  Features, in particular Ichimoku's features (characteristics) were injected along with target (buy and sell conditions) for it to train on the historical data.  Once the model is trained, the real data will feed in for it to predict the buy and sell signals based on what it has learned so far.  The output is probability of buy and sell (and do nothing) signals and based on the probability, we could classify them into Strong Buy, Weak Buy, Strong Sell and Weak Sell signals to further aids our decision of entry and exit.  AI is not supposed to take over the control to make decision for us but assist us only.  This is the correct way to use AI !!!


Now, let see some example what this AI system can do.  We'll looking at STI in the period 1st Jan 2007 to 20th Oct 2007.  This is the period STI on a bull run and finally peak on 12th Oct 2007 then crash all the way down till Mar 2009 due to the US subprime crisis.  We all knew what happened (where the peak and trough is) since it is already an happened event.  However, the data being fed into the AI system is as if it is looking at on 20th Oct 2007.  What the AI model did was being trained on historical data prior to 1st Jan 2007 and do the prediction for 1st Jan 2007 till 20th Oct 2007 based on what it has learnt.



We can see the AI model is able to predict a weak sell signal around the 12th Oct 2007 peak.  Also note the gray shaded region.  This is the region whereby there is no Chikou span signal for the AI model to use on its prediction.  This is mainly Chikou span is a laggard signal, shift backward 26 period.  So the question is did the AI model's decision making being affected given Chikou span is one of the component that indicate bullish (Chikou span above price) or bearish (Chikou span below price).  



The above is the same period as the first figure, the only different is the Risk Level was adjusted (look at the red circle in the top left region).  This is a feature that I put in to the AI system.  Stock market volatility is always changing and it will play a part in the decision on whether one should enter or exit the stock market.  As shown from the above screenshot, there are more weak sell signals leading up the the peak and quite a prominent strong buy signal at the trough before the peak.  These made the AI model prediction looks right on the track.



The above screenshot moved the ending period to 20th Nov 2007 so that the peak on 12th Oct 2007 has moved out of the no Chikou span zone.  This is the see whether now with Chikou span signal being available for the AI mode, will the final decision anything different.  Again, the weak sell signal near the peak remain, so as the strong buy signal at the trough prior to the peak.  Probably, this is just a special case whereby the prediction the AI model made is independent of Chikou span.



We now move to 9 Mar 2009 when STI hit rock bottom and recover from the crisis.  Again, we are trying to see the AI model can predict any buy signal at or near this bottom.  The testing period is from 1st Jan 2008 to 15th Mar 2009.  9th Mar 2009 is now inside the no Chikou span zone.  As we knew whole of 2008 STI was down, down, down all the way and the AI model didn't fail to predict that as all the strong sell signals were flashing along the way.  Now, the AI model didn't manage to predict any buy signal around 9th Mar 2009 maybe due to lack of Chikou span signal.



We now move the period till 31st Mar 2009 so that 9th Mar 2009 is near to come out of the no Chikou span zone.  Walah !!! a strong buy signal pop out.



Above is the period extends till 20th Apr 2009 so that 9th Mar 2009 is totally out of the no Chikou span zone.  This time even better 2 strong buy signals pop out.  While still couldn't be very conclusive did the Chikou span play some parts in the AI model prediction, the assure is the AI model is pretty well able to predict correctly near the trough.


To be able to making good prediction is not good enough if you don't make use of it.  Next, we will be carrying out a little simulation to emulate trading based on the AI predicted buy and sell signals.  This is the part that I've integrated into the app apart from just pure looking at metrics and backtesting results.  



This time we'll looking at 1st Jan 2019 till 31st Dec 2020, the period stock market hit by the unexpected Covid-19 pandemic.  Well, maybe we can predict when financial crisis can happen next but definitely not a natural disaster like pandemic.  This is real test for the capability of the AI prediction.  Looking at the above AI prediction, while the AI didn't predict a buy signal (weak or strong) at the trough, it did manage to predict 2 strong buy signal near the next trough.  Strong sell signals also appear near most of the peak and especially the one just before STI crash to the trough.  This means should anyone follow the AI prediction, should be able to avoid the crash to the bottom.



This is the simulation to simulate buy strategy (only on strong buy signal to enter and strong sell signal to exit) using the above AI prediction.  Can see only 3 trades were performed and all turn out to be winning trade and a realized profit of 15.51% were achieved, annualized to 7.50% return for this period.  This is definitely outperformed than you simply buy on 1st Jan 2019 and hold till 31st Dec 2020 when you only suffered negative return.



The same simulation but this time we changed the buy and sell signal from only strong to both (either strong or weak and we'll enter and exit).  The return is even better with 19.19% profit and annualized return of 9.20% but the win rate dip to 75% only meaning 2 out of 8 trades were cut loss.



Normally, investors don't short the market when it was on a downtrend but traders are different.  The next simulation as above is to simulate how a trader will react to the AI predicted signals, long and short.  Here, we only focus on the strong signal to long or short.  6 trades were done with 3 long and 3 short and all came out winning.  This net a profit of 54.52% or annualized gain of 24.38%.  So this AI system is able to cater for trader as well.



Now, we turn to a more volatile entity, BTC and see how the AI's prediction can benefit our investment or trading.  Above is the AI prediction for BTC from 1st Jan 2024 till 20th Mar 2025 (yes, today !!!!).  Look at the 3 red circles, a very prominent entry and exit point.  For those interested, look at the region near today, no buy signal was predicted so far.



The above is the long only simulation with strong signals for these periods.  Only 3 trades were done and all came out winning.  That gives a realized profit of 124.65%, annualized to 94.81% return.


While this is not the final working version as there are definitely bugs that yet to discover, features need enhancement and fine tuning especially to be more precise how the AI model going to make prediction at the no Chikou span zone, this working version nevertheless is quite impressive to certain aspect.

Perhaps, somewhere at other parts of the earth already have such an AI system, this is definitely something fully developed by me (ccloh) in 2025, fully AI Ichimoku system.  

This I will dedicate (or put it bluntly a pot shot) to SMU for being snobbish to snub me from attending the Ichimoku TA class with my SkillsFuture credit.  Not to mention to Singapore Government of the day -- PAP, another those high nose stance that everything also talk about foreign talent.  Hey, this AI system is fully developed by a local born citizen that serve that bloody 2.5 yrs of NS and went through hell from that pressure cooking education system who is not specialize in programming and only know about AI when I started developing on this.  Whatever certifications that this pseudo elite government that always pride themselves from wearing white cited as requirement,  all I don't have and yet based on my solo effort I develop this AI system !!!