SHI – Simple Harmonic Index

SHI – Simple Harmonic Index

SHI – Simple Harmonic Index

A Time Cycle Oscillator – Published on IFTA Journal 2018 by Akram El Sherbini (pages 78-80)

Bullish signals are generated when SHI crosses over 0
Bearish signals are generated when SHI crosses under 0

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. swapping • 03/15/2019 #

    excellent robert, here are two lines to enhance this code with color histograms
    just after line 11

    if Shi “bigger than” 0 then
    r = 220
    g = 20
    r = 20
    g = 220

    return Shi coloured(r,g,0) style(histogram) as “Shi”, 0 coloured by 0 as “0”

  2. robertogozzi • 03/15/2019 #

    Thank you swapping, much appreciated. I usually do not hard code graphic styles and colours within my code, as this makes it impossible for users to change settings from the indicator’s properties, though, unless they change the code.

  3. luxrun • 03/15/2019 #

    Dear swapping I tried to insert your instructions to color the histograms but I have an error on “bigger than”. In fact I have already modified the SHI with the color zones that it offers prorealtime to improve the visualization. Thank you

  4. robertogozzi • 03/15/2019 #

    Bigger than needs to be replacec by the symbol >

  5. luxrun • 03/15/2019 #

    Roberto, another request concerning the code: is it possible to change the ema 14 with another period (10 or 20 for example)?. Thank you

  6. robertogozzi • 03/15/2019 #

    If you import the .ITF file you may use the indicator properties to set periods.
    If you Copied & Pasted it then you’ll have to define that variable yourself.

  7. luxrun • 03/15/2019 #

    Ok, thank you

  8. robertogozzi • 03/15/2019 #

    I just discovered that ProOrder (for automated strategies) does not evaluate the expression in line 10 correctly (as Probuilder does), so if you want to embed the code in your strategy you need to replace that line with:

  9. robertogozzi • 03/15/2019 #

    //Ti = ((close > Cy) * Tt) OR (((close Cy) THEN
    Ti = Tt
    Ti = -Tt

  10. luxrun • 03/15/2019 #

    Roberto, I tried again to use both the SHI indicator and the WPO oscillator but they don’t work on version 11 of Prorealtime. Graphically you see a solid line and nothing changes if the periods of Ema and Sma vary. Sorry, but having read the pdf you indicated I find this kind of cyclic indicators interesting, thanks

  11. robertogozzi • 03/15/2019 #

    WPO should work as posted at
    Copy lines 16-20 to SHI replacing line 10.
    The five lines are the same in both indicators.
    PRT said they had worked out math with boolean values, but it doesn’t seem so.

  12. luxrun • 03/15/2019 #

    Now is ok! Thanks a lot

Register or


avatar avatar avatar avatar
Related users ' posts
RubberToe Is there something we are missing here, I just get the same curved line as well...
Khaled @Nicolas, Hi Nicolas, I've downloaded the itf and it doesn't display as an Oscillator, it"s ...
sal157011 I think the problem here is that you must feed the trigonometric functions cos and sin with ...
Actaru5 Caio Jan, con ognuno dei setting ottieni un indicatore visualizzato diverso, ma tutti sono ...
ggolfet Hi Actarus, what's the name of the histogram indicator below Apple's chart?
Actaru5 Flag ShowState in setting and show histogram
Nicolas Check your custom trading hours and use the default market ones.
fj_pastor Hello Nicolas, Thanks again for all your support. Finally I debugged the problem. The sim...
kallistos Hi Nicolas, Thank you very much indeed for this indicator (and all the others you are provi...
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
eivaremir have u got the trading view version?
Bard I've also just noticed that changing the "Bands Deviation" setting from 1.25 to eg 3 doesn't...
bartekz Hi @Nicolas, Really impressed by your work. I am trying to replicate the Wave-PM indicator t...
Nicolas You don't have to replicate it, download the file and import it into your platform.
Nicolas Sorry I do not provide assistance for Tradestation code.
surfeur Bonjour, Je suis pas expert en PRT donc si qq'un peut m'expliquer un peu le code ? Par...
Nicolas src c'est bien le customclose en effet. ATR, si aucune série de données n'est spécifié, il u...
PastaPesto Hello Roberto! Thank you for this indicator. I thought I would try it out in a strategy, bu...
robertogozzi I just realized that there's a line that shouldn't be there. It's line 5, please remove it,...
robertogozzi I just discovered that ProOrder (for automated strategies) does not evaluate the expression ...
luxrun bellissimo lavoro, Roberto, grazie!
robertogozzi I just discovered that ProOrder (for automated strategies) does not evaluate the expression ...
Akram Hi Roberto the WPZO is the bounded oscillator by percentage like the SHO Here is the artic...
skysoldier hello, thank you for this code, I was wondering if it is compatible with thinkorswim at all?
Nicolas No, but you can ask for private coding job at our programming services.
ALE Hi the color is given by a numerical value derived from the oscillator in use. If you comp...
efahmy Thanks mate
Jo-01-R Hello, it is possible to have this indicator but instead of colors rather have numbers rangi...
Kris75 Hi Bolsatrilera, I love this indicator! Thanks; => did you develop a strategy around...
5 years ago
oraclus Merci il lui ressemble bcp
juanj Think this is something we can experiment with in the 'universal' strategy along with the Bo...
ggolfet Hello Francesco, thanks for the code. Now I can do backtests on this indicator. I'm testin...
Gianluca Hello there is a new version, is it possible to translate it?
christophe11560 bonjour, PRT me demande de réduire la période d'adaptive cyber Cycle suite à de fort ralent...
Pietro Fontana christophe11560, i've coded this a long time ago for a different version of the PRT, i'm not...
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...