Custom ROC Indicator

v10.3
Custom ROC Indicator

Hello everyone. I found this indicator on the internet and I got help with PRT code from the Great Nicolas ,thanks man.

The ROC indicator  described here has some advantages as compared to a simple MA – it has smaller lag and is more illustrative.

Starting the indicator you will see 6 indicator lines in a chart window:

  • black line – supporting MA for building a price rate line on the current timeframe;
  • orange line – price rate of change on the current timeframe;
  • green line – price rate of change on the nearest higher timeframe;
  • brown line – price rate of change on the next higher timeframe;
  • blue line – average line of the rate of price change;
  • red line – smoothed average line of the rate of price change.

Parameters can be set in the code from line 2 to 21. For the coefficient applied to the current timeframe, you’ll need to adapt them yourself (settings are in code from line 10 to 18), because PRT code can’t retrieve that is the current timeframe.

By default, I set the K2 and K3 coefficients to 2 hour timeframe.

And K2 and K3  need to be   changed dependent on which timeframe you are using

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

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
juanj Possible interpretation: Indicator tags 80 = Start of bullish trend, tags 20 = Start of bear...
Yann LB Bonjour, Ajout de as "level 95" en toute fin de code. ;-)
Madrosat I Have not see a fully functioning automated strategy on your site?? Really have you???
juanj Hi Madrosat, why would it be on my site? I have developed it for my personal use and also to...
Madrosat ok I understood you are using prorealcode to hack the fish
jaginho Bonjour Vivien, je n'arrive pas à comprendre ce screener... En tout cas merci pour tes contr...
samsampop Superb, merci!
Gaby333 not working the same thing as xtian saying?
fucode I need to calculate this in excel. Is it posible ? how ?
Nicolas Ask on an Excel website?!
Balmora74 thanks for this code Philippo ! So if i understand well a Positive (+) EntryOK x ROC means a...
Dritan Hi Philippo,thanks for sharing this code.Can You add please Volume more than 250.00?Thanks
illenza
2 years ago
ribes65 Buongiorno Illenza, Il tuo indicatore è molto efficace, ma non funziona su tutte le azion...
robertogozzi
2 years ago
M-Oscillator
M-Oscillator
10
Indicators
robertogozzi Sorry for my late reply. I’ll make it and open a new topic quite soon.
swapping ah ah ! je n'avais pas vue celui-ci, excellent robert ;)
robertogozzi Thank you swapping.
Didouqc Bonjour Nicolas, Merci pour cet indicateur, encore génial! Je souhaite faire une suggest...
Exalaxe Hey, i just noticed you optimized this strategy. Could i see your new version, please?
Andrea.1981 sorry i add my code but it not enter why i dont know
Andrea.1981 this is code simply stop , and you can see another version for stop / Codice principale...
juanj Haven't been on this forum for ages! Just logged in to see what is happening and since this ...
robertogozzi Welcome back Juanji, why don’t you post your strategy in the ProOrder support, it’s a better...
David Somogyi Hi, One year trades since Alpha running. https://imgur.com/a/TCK4kJH Hopefully it w...
Nicolas Thanks for the update David!
sublime06 quelle parametre utilisé vous pour obtenir ces resultat ? merci
Nicolas
2 years ago
enricot Scusa nn riesco.
SoloContado If you smooth the signal using a "summation" function, you get a nice "crossing of 0" graph....
ShaunG Greatly appreciated Nicolas!
MaoRai54 Hi, first of all Happy New Year. Well, I've inserted your indicator in DAX 1h but I cann...
Vinks_o_7 Hi Mao Happy New Year ! This is just an improved RSI where you plot a standard price momen...
Nicolas Formule de l'indicateur Momentum: Le Momentum se calcule avec une simple soustraction pour ...
Roberto1 Hi, can this code be converted for the Nanotrader Platform or for the MT4 Platform?
Nicolas This website is dedicated for PRT programming, but you can still ask for private coding with...
Nicolas Oui c'est possible, merci de formuler une requête dans le forum des indicateurs de trading.
ERICM en copiant collant : erreur de syntaxe apparaît le popup demande de définir length1, length2...
Nicolas En téléchargeant le fichier itf et import dans la plateforme, vous n'aurez pas ces problèmes.
Alex975 Grazie della dritta.. testerò il tutto.
guillermus69 is this " a= log(close/close[1])" better than a = ((close/close[1]) -1) *100 . I ...
gildaslm Hi gabri, thanks very much for your work, it helps me a lot. Have you ever tried to make the...

Top