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
khashayar
3 years ago
ichimoku soft
ichimoku soft
2
Indicators
DELBERT Bonjour , je voudrais savoir si votre indicateur peut être installé sur PRT V.10.3 ou s'il e...
khashayar Hi I wrote for version 11. But I think it works for version 10.3 as well. Thanks
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
ashiash how to use this indicator can i use tradingview platform
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;)
Zigo Zou je graag helpen, maar mijn computer is in onderhoud. Einde deze week, kan ik hopelijk te...
Zigo @ DimKar Midline = (stlong + stshort)/2 Return stLong coloured(0,255,0) as"StopLong", M...
DimKar Dear Zigo thank you very much for your answer !!!
IV Mcm Line 68 and 70, you must delete the instruction at the end of the line "" Bordercolor(0,0,0,...
BoutDePain This instruction is for the V11 maybe that you are using V10.3 then you can safely remove it.
Protagonist Bonjour, Je vois l'instruction inRange mais je ne trouve pas sa signification. Pouvez-vous...
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
jonny.cash the chikou is 26 periods behind current price, it's not the close
Nicolas Chikou is the current Close decayed 26 periods in the past of the chart.
jonny.cash yes, thanks for the correction. my post was complete rubbish
Nicolas le code est déjà sur cette page, inutile de fournir un autre format ?! Les fichiers itf sont...
Novice-Surfer Hello IV Mcm, You are my leader ! Your work is incredibly precise, thank you very much f...
Mikolajek Merci pour votre excellent travail !
IV Mcm Bonjour, Je ne reconnais pas cette ligne dans le code, essayer de télécharger directement le...
Manu L. Bonjour, Possible de créer un screnner multiframe Mois dans Ichimoku semaine dans Ichimok...
Zigo
5 years ago
denmar Neat. Thanks.
Zigo Line 39 TS has to be KS Line 41 TS has to be KS
cristofer Same here, as the long version, adding SMA200: sma200 = Average[200](Close) > Close ...
cristofer mate, I just realised that the formula for TenakanSen is wrong, it should be: TS=(highe...
cristofer Very nice! thanks for sharing this. I added (as a personal preference) that the Close mus...
cristofer same here with the TS formula: TS=(highest[9](high) + highest[9](low))/2 source: h...
Gubben So far so good. After a long drawdown it was winning four times in five weeks. Since 24 jul...
pat95162 Salut Pourquoi je n'ai pas les même résultats que vous
UkCoopDownUnder Any hints for us, on which variables we should be optimising ? As of November 2020, the cu...
Jan
5 years ago
Kovit Hi guys, please could someone help with a bit of Ichimoku code that will improve performance...
Kovit lol I should be more exact with my wording, more accurately I was looking for an indicator t...
jm121212 how can we change the default settings?
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 -> https://fr.piliapp.com/symbol/

Top