Trend Histogram CCI

v10.3
Trend Histogram CCI

The purpose of Trend Histogram is to detect a trend at the most opportune moment

Operation

Trend Histogram uses the functions of the CCI (Commodity Chanel Index) to calculate whether the price is in a trend phase.

For this, the CCI is used under four basic values ​​which allows it to have a short, medium and long view of the market situation.

How to use it

Trend Histogram ((Indicator))

Its fundamental goal is to indicate you visually if there is a trend or not in the form of a red or green rectangle, you can also see the movements of the CCI in the indicator (in the form of dots and rectangle) to give you a overview of its current level.

A BackGroundColor is provided to visualize the indicator on the Main Graph

It is obviously recommended to position yourself in a market that converges with these higher timeframes.

So, use this indicator on a multi timeframe.

Once the timeframe has converged, you can apply an intervention strategy

 

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. XXXXVII • 06/10/2020 #

    Fixed ITF Trend Background

    //Indicateur CCI
    ID2 = CCI[50] => 60
    ID3 = CCI[100] => 60
    ID4 = CCI[150] => 60
    ID5 = CCI[200] => 60
    ID7 = CCI[50] =< -60
    ID8 = CCI[100] =< -60
    ID9 = CCI[150] =< -60
    ID10 = CCI[200] =< -60

    //Regroupement des commande
    IDL = ID2 and ID3 and ID4 and ID5
    IDS = ID7 and ID8 and ID9 and ID10

    //Commande CCI
    If IDL then
    Signal = 1
    elsif IDS then
    Signal = -1
    else
    Signal = 0
    endif

    //Affichage
    if signal = 1 then
    backgroundcolor(62,169,203,50)
    endif
    if signal = -1 then
    backgroundcolor(73,73,73,50)
    endif

    return

  2. Sanglier • 06/10/2020 #

    thanks ! i have been looking forward to find something like this

  3. mpc327 • 06/10/2020 #

    Bonjour, j’essaye de me faire un screener ichimoku à l’aide te ton code background.
    Pour l’instant il est comme ceci:

    //============================== Indicator

    SpanA = (Tenkan[26]+Kijun[26])/2
    Tenkan = (highest[9](high)+lowest[9](low))/2
    Kijun = (highest[26](high)+lowest[26](low))/2
    SpanB = (highest[52](high[26])+lowest[52](low[26]))/2

    //============================== Trend Bullish

    H1 = close > Tenkan[26] and close > Kijun[26]
    H2 = close > SpanA[26] and close > SpanB[26]
    H3 = close > open[26] and close > close[26]
    H4 = close > SpanA and close > SPanB
    TrendHaussier = H1 and H2 and H3 and H4

    Screener [TrendHaussier]

    Le problème c’est que le screener me sort toute les actions qui sont en trend haussier or moi j’aimerais que le screener m’affiche seulement les actions qui viennent juste de commencer le trend (que la dernière bougie sois la première qui fasse apparaitre le background)

    Sais tu ce que je devrais écrire dans le code ?

    Merci d’avance 🙂

  4. Tradingrob • 06/10/2020 #

    I can’t import this indictor properly, it gives the warning “de volgende variabele is niet goed geactiveerd, active ADX’. Please solve this issue so i can use this indicator.

  5. Guillaume Mcm • 06/10/2020 #

    I gave the above message fix 😉

  6. Tradingrob • 06/10/2020 #

    Is it possible to put the itf-file in the right way here in Prorealcode? so the right ‘trend-background-2.itf’ and the right ‘trend-histogramme.itf’? I tried to place the code in the file but did not work, i am not a programmer.

  7. Guillaume Mcm • 06/10/2020 #

    Update link 😉

    https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-a-demande/

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
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Iván
2 weeks ago
groelandes Cuando te descargas el fichero itf, en su código no aparece toda la configuración de alertas...
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
2 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
2 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
Nicolas
9 months ago
B-Xtrender
B-Xtrender
7
Indicators
Fgats I suspected something like this but in the PRT documentation I couldn't find anything to exp...
616248 Bonjour Nicolas, Peux tu nous expliquer le principe de fonctionnement ? Ou nous mettre un...
Nicolas Le lien vers l'article IFTA de l'auteur est dans le post déjà :)
JS
9 months ago
Trendilo
Trendilo
0
Indicators
Nicolas
9 months ago
Anthony2A Bjr, j ai des erreurs sur la ligne 69, 74, 78 et 80. sur drawcandle drawtext et endif. si ...
Lucas0000 Hello, Congratulations on this programming, it seems incredible to me, I am new to this but ...
plbourse Hello, I am trying to use this singal (in fact I have converted it to an indicateur giving B...
BriceE Bonjour Nicolas, Je suis a la recherche d'indicateurs pour me donner la meilleure indicatio...
Nicolas
11 months ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!

Top