
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all. This is version 2:
And this is the shell case. It is NOT required, as you can use "iCustom(...)" directly:
Everything is now reduced to one simplified function call. Usage:
The variables such as kijun,chikou... also contain their respective values at the specified shift as well. Remember to put " #include <Ichimoku2_Kinko_Hyo_Indicator.mqh>" at the top of your EA before using this function.
Why?
The original mql4 ichimoku indicator worked correctly and it will continue to do so for most us. I think it was built primarily with the manual trader in mind. Ofcourse, if someone has a better approach then modify the above so we can test it. Another situation I faced while rebuilding this was that any problem or inefficiency will be amplied when used on multipairs simultaneously. To remedy this, I modified the indicator to only run when it is necessary i.e. run only when a new bar is completed. The original version would run on every tick, which i think would consume uneccessary cpu cycles.
When one reads ichimoku literature, frequently one will encounter a reference to the Kumo as "fat", "thick" or "thin". To an experienced ichimoku practioner, it is easy to describe a kumo as "fat" or "thin" because she knows what the usual kumo thickness is for a pair. For beginners, like myself, it is very difficult to describe a kumo because we don't know what to objectively compare it to. I think a solution for this problem would be to compare it to the kumo itself over a specific period. This is the approach taken when writing the " GetKumoRelativeSize()" function. Ideally, we want to use a long period of time in the comparison to the current kumo thickness, like say 100 candlesticks. For a manual trader who is trading the daily charts, this is simply keeping your computer running MT4 on over several months. The issue I have is that I like the freedom of turning off the VPS running my EA, at least once a week. If I am trading the daily charts then the " GetKumoRelativeSize()" function will never get enough bars to analyze. At most, the function would receive just 6 bars over the course of a week, if I turn off my VPS once a week. Fortunately for me, while backtesting this indicator, I discovered that I can use as little as 3 bars for the ichiKumoPeriod and still get correct results. Backtest and see if you concur.