An Ichimoku Strategy

An Ichimoku Strategy

I like the trading concept of Ichimoku.                               (However the developed Ichimoku Strategy needs to perform better..)

The concept is explained at

Furthermore I saw some of the learning videos about Ichimoku from Karen Peloille, and an strategy  on this platform

Searching on the internet I found a strategy fully based upon Ichimoku trading, this has been worked out in the strategy attached.

Distinguished are TenkanSen, KijunSen, Senkou Span A and Senkou Span B

  • TenkanSen = (highest[S](high)+lowest[S](low))/2  //Default setting S = 9
  • KijunSen  = (highest[M](high)+lowest[M](low))/2  // Default setting M = 26
  • SenkouSpanA  = (Tenkansen[M]+Kijunsen[M])/2  //Default setting M = 26
  • SenkouSpanB  = (highest[L](High[M])+lowest[L](Low[M]))/2  //Default setting L =52

Trading rules can be described as follows:

Open LONG BUY conditions :

  1.  Tenkan Sen crosses over the Kijun Sen AND
  2.  Close is within 4 periods after the crossing above the Kumo (cloud), defined as Maximum (SenkouSpanA, SenkouSpanB)

Open SHORT SELL conditions :

  1.  Tenkan Sen crosses under the Kijun Sen AND
  2.  lose is within 4 periods after the crossing BELOW the Kumo (cloud), defined as the Minimum (SenkouSpanA, SenkouSpanB)

The exit in for strategy is defined for long positions as when the TenkanSen crosses under the Kijunsen, vice versa for short positions.

I added 2 additional exit methods, below described for long positions, vice versa for short positions:

  • Method 2  if the close closes under the upper side of the Kumo / Cloud, based upon the SenkouSpanA
  • Method 3  if close closes under the lower side of the Kumo / Cloud, based upon the SenkouSpanB


The default settings 9 for TenkanSen, 26 for KijunSen and 52 for SenkouSpanB do not seen to be profitable.

Therefore I played around with the default settings as well as the exit method.

In the attached ITF file with the strategy, I have left the variables S, M, L and cm (closing method) open as variables.

A result is found for the DAX 5 minutes, see also the screenshots, based upon 10.000 bars of the DAX 5 minutes with trading hours from 7:00 AM till 22:00 PM, settings are S =7, M = 14, L = 55 and cm is 1

No good results found so far for other indices and other periods . . . . .

Probably more robust trading strategies are out there . . , hopefully it assists into further developing of good Ichimoku trading strategies.

Comments are more than welcome.

Please download the attached ITF file to get the strategy and its variables to be optimized.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. LouRichard • 303 days ago #

    Hello, the result on my plateform is totaly different…

  2. Jan Wind • 302 days ago #

    Hallo LouRichard,

    hope your results are better did you use trading hours from 7:00 AM till 22:00 PM ?

  3. Jan Wind • 296 days ago #

    GraHal, (very) glad to hear that you found it reasonably working for the DJI !

    You could post any findings on :

    (not sure why it can not here, presumably because not attachments can be made ?)

  4. allanrobinson • 287 days ago #

    Thank you for this. I have replaced the S, M, L and cm with backtested figures in preparation for automatic testing but the program still requests me to replace the backtested variables. Not sure how to get this right. I am a prorealtime newbie. Perhaps I could export the code for you to show me where I am going wrong.
    Kind Regards

  5. gabri • 266 days ago #

    Hi, I would recommend to try some other entry criteria: 1) chikou crossing over max(spanA,spanB). 2)double cross of close above Tenkan and Chikou over Tenkan. This two are the most effective entries I know.

  6. 693579 • 263 days ago #

    As Allanrobison pointed out….. After setting Variable, “summation” from pro builder needs to be replaced with a pro order action, what is this please!

Register or


avatar avatar avatar avatar avatar
Related users ' posts
Gubben Since july 24th it's doing well. Started with a longer drawdown than expected but now it's 1...
Tony87 Gubben do we have a progress report?
Gubben So far so good. After a long drawdown it was winning four times in five weeks. Since 24 jul...
robert123 hi there, how do you get the images of the knights etc into your code....and is there anywhe...
swapping hello robert123, on this site ->
marcosamo Hello and thank you for this indicator, I have a small problem, it only shows the pawn at th...
marcosamo in fact I just saw a rider, so everything works sorry for my previous question
swapping perfect marcosamo, coupled with ichimoku-price-pattern this is better ;)
quibe56 Bonjour, à priori les couleurs pour le Katana ne fonctionnent pas ( départ haussier ou élan...
swapping Bonjour quibe56, n'ayant pas rencontré ce défaut je continu néanmoins à structurer le code p...
juanj @zebra would you be so kind as to post your latest 4H USD/JPY results here: https://www.pror...
Holy Grail Thank you juanj for sharing this code, Backtests looks great in USDJPY and Crude Oil Is a...
juanj @Holy Grail, glad you like it. Would you perhaps mind sharing your results here: https://www...
2 years ago
gabri You are welcome!!
Jérôme Dumortier Thank's a lot !!!
Gaby333 Thanks Mate
3 years ago
Eusebio Garcia Nuez tambien con que indicador se puede compaginar el ichimoku
Rafa El chivato es el propio SCREENER, aparece cuando las condiciones se cumplen. Y se pueden com...
Rafa El chivato es el propio SCREENER, aparece cuando las condiciones se cumplen. Y se pueden com...
nwesterhuijs Thanks, only saw it just now.
juanj For the latest version and discussions see the Ichimoku thread here: https://www.prorealcod...
Louwrens Hi Juanj. Thanks for this. I am tying it as we speak. It does not trade that often, which is...
Rafa Hay una actualización de esta estrategia. Si miras mis posts es más robusta el screener. Un ... Cruce te refieres a: Tenkan Sen, con Kijun Sen?
Rafa Hola Javier, Perdona pero no entiendo tu pregunta, no veo ninguna variable que sea solo "cru...
Iber0 Asi quedaria con el spread de IG [IMG][/IMG]
bjoern Seems to work nice on BUND - M15 with SL 70 and TP 120 I tried to backtest this code but don't get any restults. Can any body help me?
3 years ago
gabri Great job!! I love everything that involve Ichimoku. Did you think about changing the line t...
Rohan Thanx gabri. Yes I did play around with the offset. It works but I like the "earlier" warnin...
Dom Dominics Hi, Is this code can be used for MT4 ?
gabri Ichimoku is one of the best trend indicator ever together with the Guppy EMA's. I agree with...
primo1 thanks
traderkarnik Rohan, Have you tried encorporating momentum indicator? if waiting for future cross in your...
pascal3431 Salut Doc , Je ne vois pas ce qui fait office de stop dans ce code .. un retour dans le nua...
Doctrading Bonjour, Il s'agit juste d'une stratégie où on est toujours en position : soit à l'achat / ...
pascal3431 Bonjour, après quelques essais sur EUR/USD au M15 en rajoutant(car sinon on est en perte) u...
Doctrading Nice Job ! Here is my version of the code :  KBO = 0 Tenkansen = (highest[9](high)+lowe...
gefinance Thanks for this code. The only thing left missing is the time lapse, otherwise, lots of old...
Nicolas Thanks for contributing to the "ichimoku section" of the prorealtime code library Don't he...
sourberry Thank you , this is a great indicator works beautifully. Could you kindly modify to scr...