Ichimoku Trend or Range? Created by Rohan Posthumus

Ichimoku Trend or Range? Created by Rohan Posthumus

Hello everybody,

I have tested a lot of systems and indicators and fell in love with the Ichimoku indicator. I am currently on a mission to quantify trading aspects of the indicator in order to backtest and optimize it.

One of the things that I often read about the Ichimoku indicator is that “it loses its validity in range markets”. What I have done here is to create my own indicator in order to reverse engineer the statement – when the Ichimoku loses its validity, the markets is ranging.

The indicator works as follows:

When both the current and future cloud have the same color, the market is trending, but when there is color changes, the market is ranging. The indicator gives a value of +2 or -2 for bullish or bearish trending respectively. The indicator gives +1 or -1 when the market is bullish or bearish range respectively. A value of 0 indicates chopiness or that the close is in the cloud (do not trade). This indicator serves as a setup indicator – it only shows when to long or short and what strategy to follow and is not intended to be used as entry signals. For example, when the indicator is +1 you have a bullish range setup, and when the RSI(14) is coming out of overbought you have a buy entry. Or if you have a -2 and the RSI(14) crosses down 50 you have a swing trade short entry.  A weakness of the indicator is that it does not allow Kumo breakouts and therefore misses the start of trends. It is good for swing trading and range trading.

I am new to programming and ProRealTime, so I welcome any improvements. Below is the code.

 

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?

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

  1. Souk Diaby • 01/08/2017 #

    Thanks a lot, will check this indicator asap 🙂
    have a nice trading day

  2. Rohan • 01/08/2017 #

    Pleasure Souk, please let me know if you have ideas to improve it. I am trying to incorporate something with volatility into it, but am not sure.  
    Thanks, you too!

  3. but but • 01/08/2017 #

    what the difference of this 2 cloud?
    SpanA = (tenkansen[26]+kijunsen[26])/2
    SpanB = (highest[52](high[26])+lowest[52](low[26]))/2
     
    FutureSpanA = (tenkansen+kijunsen)/2
    FutureSpanB = (highest[52](high)+lowest[52](low))/2
     
    Span AB cloud is move back to today, and    FutureSpanAB  cloud move to 26 day  Future, so they must be same , how can i get the result of SpanA < SpanB and FutureSpanA > FutureSpanB ???

  4. Rohan • 01/08/2017 #

    Good morning,
    Just to clarify, the main idea here is to compare the cloud directly above/below price with the cloud in the future. E.g. should they be the same color, price are making higher highs and higher lows i.e. trending. To do this, you have to take today’s cloud (which is the previous period’s future cloud) and compare it to today’s future cloud. So you are not comparing one cloud that moves but you are comparing 2 clouds both moved forward. Do to a lack of a better name, I called one future cloud but both are in fact a future cloud but just for 2 different periods.
    Hope this helps??

  5. but but • 01/08/2017 #

    clear, it seems to be an interesting idea

  6. Rohan • 01/08/2017 #

    Thanks. It sometimes tests better when you remove the “close” part of the code – only look at the clouds. Try adding volatility or momentum conditions…

  7. gabri • 01/08/2017 #

    Ichimoku is one of the best trend indicator ever together with the Guppy EMA’s. I agree with you, with some momentum indicator it gets super precise.

  8. primo1 • 01/08/2017 #

    thanks

  9. traderkarnik • 01/08/2017 #

    Rohan, Have you tried encorporating momentum indicator? if waiting for future cross in your direction and if the momentum does not decease(for bullish)/ increase(for bearish) depending upon your direction you can decide not to jump into the trade. I found this useful especially with kumo breakout.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+9 more likes

Related users ' posts
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...
XXXXVII Great job! Indeed it leaves to think ..
Jigsaw20000 Bonjour, vous auriez un conseil pour régler l'affichage de l'indicateur ? les textes s'affic...
juanj @Holy Grail, glad you like it. Would you perhaps mind sharing your results here: https://www...
CaptainCaveman I am reluctant to say this buy I was a member of Dr Elder trading group for a while . The fa...
micquan The design is too complex and the performance is low.
gabri
7 years ago
Jérôme Dumortier Thank's a lot !!!
Gaby333 Thanks Mate
Usul83 Do not understand the specifications
gblast I added this indicator to my pro real time but its not showing up on my candles. Its invisible
Rafa
8 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 ...
javier.puig.rovira@gmail.com 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]http://i65.tinypic.com/2418ism.jpg[/IMG]
avatar
bjoern Seems to work nice on BUND - M15 with SL 70 and TP 120
hvluthy@sunrise.ch I tried to backtest this code but don't get any restults. Can any body help me?
Rohan
8 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 ?
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...
pp_playaflamenca Excuse me,... reading your code about spanB: [ SenkouSpanBFutureW = (Highest[SenkouSpanPerio...
Dymjohn Thanks for the comment grizzly, I like the look of your position sizing coding but won't use...
Elsborgtrading Hi John, and nice to see you took the Ichimoku a step further:-) One thing though, I think t...
swede_trader It doesn't generate anything for me. And I can't debug it, any tips?
mcha bonjour, merci pour cet échange mais il me semble que ce twist des SSA  et SSB serait plus ...
Pasq Concernant la remarque précédente, il est possible de remplacer les 2 lignes de code de cett...
Nicolas Merci Pasq. On peut retrouver ce code corrigé sur le forum, je viens d'en retrouver un exemp...
Ronny Should C5 = Chikou > SSpanA[26] and Chikou > SSpanB[26] be C5 = Chikou > SSpanA and...
Emperor.it Chikou = close[26] it's a mistake. Chikou Span is today's closing moved back 26 periods. It...
Nicolas Indeed, there is a mistake in that code. It is often the case when using Ichimoku and its tr...
Olivier7 // Original code // Ichimoku Tenkan-Kijun Cross (screener) // https://www.prorealcode.com/...
ipbvba erreur dans le code en ligne 2
mvinter Hi Doctrading im trying to use your tenkansen Kijunsen crossover screener but keep getting ...

Top