Ichimoku Trading system – my 1st attempt
Forums › ProRealTime English forum › ProOrder support › Ichimoku Trading system – my 1st attempt
- This topic has 39 replies, 7 voices, and was last updated 7 years ago by
juanj.
-
-
07/28/2017 at 10:13 AM #4188607/28/2017 at 10:19 AM #41888
Hi,
As mentioned in my post “They all need optimization of the stop level and the slope threshhold. (see comments in code)”
They are up the top of the code in the variable section, It is the following
SlopeThreshold = 2.5 // From back/forward testing optimization
TGL = 30 // also from back/forward testing, note TGL and TGS the same,Cheers
PS: You will have different values, I was playing with them,
NOTE: These variables I am optimizing are nothing to do with Ichimoku, just the EMA Slope threshhold and the Stop level.
07/28/2017 at 10:31 AM #41889So only slope and trailing distance, I see. And you run this on 10min chart, correct?
So far I find promising results for CL (oil) with the version you posted. The Yen pairs don’t give so good results but the version you uploaded is maybe optimized for CL and has to be adapted to the pairs?
07/28/2017 at 10:48 AM #41890The trading system I posted works well on EUR/YEN mini, 10min 10000 units, make sure it has at least 10,000 yen capital to start as there is a bit of drawdown, I get the following with the code.
I am off to bed, talk tomorrow ..
07/28/2017 at 11:04 AM #41893There we have the problem. You tested only on 10000 bars which is in 10min bars not much time. See the backtest with 200K bars for EUR/JPY with 1.5 pips spread.
Anyway for CL the test is fine even with 200K bars. 🙂 I will try to adapt other securities during the weekend. I have not so much time today.
07/28/2017 at 12:58 PM #41897@bmentink thank you for posting your very well structured and commented code.
I think like @despair pointed out it is important to at least make use of the bars you have available when optimizing (i.e. 100k).
I see you kept to the basics of the Ichimoku strategy. Have you ever looked into Ichimoku Number and wave theory?
Those are very important factors to consider when trading the Ichimoku strategy. You can find some nice resources on it here:
https://2ndskiesforex.com/trading-strategies/forex-strategies/ichimoku-price-theory-an-introduction/
https://2ndskiesforex.com/trading-strategies/forex-strategies/ichimoku-wave-theory-an-introduction/
I will have a look at your code in more detail over the weekend.
I have found in my own time developing Ichimoku that ADX volitility checks and RSI divergence checks also really help sieving out the false signals.
07/28/2017 at 7:25 PM #4191707/28/2017 at 10:02 PM #4192507/29/2017 at 3:02 AM #4192807/29/2017 at 9:36 AM #4193407/29/2017 at 8:01 PM #4197907/30/2017 at 12:50 PM #42010@bmentink you can add the following addition to your code to your CL result;
12345678910111213141516171819202122232425262728// ------------------------------- Additional Criteria -----------------------------------R = RSI[15](close) //RSI Period to determine momentumIf R > R[22] ThenIf close < close[22] ThenBDIV = 1 //Possible Bearish Divergence PresentSDIV = 0EndIfEndIfIf R < R[22] ThenIf close > close[22] ThenSDIV = 1 //Possible Bullish Divergence PresentBDIV = 0EndIfEndIfAX = ADX[12] > 11// ---------------------------------- Market Stuff --------------------------------------if BOK=-1 and BDIV = 0 and AX thensellshort NbrContracts contract at marketendifif BOK=1 and SDIV = 0 and AX thenbuy NbrContracts contract at marketendifAlso be aware that according to my knowledge Senkou-Span A and B should be formulated as:
12SSpanA = (tenkansen+kijunsen)/2SSpanB = (highest[52](high)+lowest[52](low))/2Reason being that they are projected 26 periods ahead. By calculating them as you did (26 periods back) you discount a big part of the system.
SSpanA and SSpanB have 3 components to them if calculated as mentioned above.
- The leading edge (26 periods ahead) – SSpanA > SSpanB = Bullish and SSpanA < SSpanB = Bearish
- The current cloud (26 periods back from leading edge of cloud) – used to determine Kumo break.
- The trailing cloud (5 2 periods back from leading edge of cloud) – used to determine resistance (current close/chikou must be clear of the trailing cloud.
1 user thanked author for this post.
07/30/2017 at 8:56 PM #42031@juanj Many thanks for that. A couple of questions:
- Did you actually try my system with those modifications?
- Regarding the RSI and ADX parameters, did you optimize those to get to those values? If not, where did the numbers come from?
- Regarding SSpanA and B formula, I got those off the Forum, so maybe they are incorrect, I don’t know.
Anyway, I will try those mods out when I get home. Thanks again.
07/30/2017 at 9:14 PM #4203307/31/2017 at 5:04 AM #42045I tried your additions to the code, but although the drawdown did decrease, the reduction of %profit was well down on what it was originally. I have attached output of latest. (the original profit was in the order of 39% on CL ..)
It would have been better if you had posted your code version and output of your testing, so we are on the same page.
EDIT: And adding the changes to SSpanA/B that you suggested, dropped %profit down further to 2%
Cheers,
-
AuthorPosts