Signal to noise ratio

Signal to noise ratio

This technical indicator is an attempt to find the good momentum of trend : is it actually trending or in a range market?

Interestingly, it follows that π is not only the ratio between the length of a circle to its diameter, it is also a constant rather appears in statistics and, oddly enough, in the relationship between the distance between a price oscillation and a straight line.

  • If the signal / noise ratio is less than or equal to 1/2 π, we will be in a trading range or range.
  • If the signal / noise ratio is greater than 1/2 π, we are in a trending market.

Code converted from the Metatrader4 version, by request on Spanish forums.

Description from website.



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

  1. bolsatrilera • 12/21/2016 #

    Sin duda,esta es la conversión correcta.Le quedo eternamente agradecido Nicolas.

  2. bolsatrilera • 12/21/2016 #

    ¿Hay algún problema para hacerlo público también en un blog que tengo?Entiendo que es un código de libre acceso.Gracias por todo Nicolas.

    • Nicolas • 12/21/2016 #

      Mientras el código y los comentarios permanezcan intactos por supuesto. Un enlace a este post también será muy apreciado 🙂

  3. verdi55 • 12/21/2016 #

    Thanks a lot, this is something I had been looking for for quite a while. Are there any other indicators on this site that can be used to decide whether the market is in a sideward range or trending ? I know the ADX and the RAVI for example. Anything else ? 

    • Nicolas • 12/21/2016 #

      You can also use the choppiness index,  which is also an oscillator made to detect ranging market :

  4. sanjivmodi • 12/21/2016 #

    Respected sir, I would be grateful if you could send me signal to ratio indicator for Amibroker. Thanking you in advance. Regards Sanjiv modi

  5. robcole • 145 days ago #

    Hello Nicolas,

    I found this indicator by a google search. since I am mt4 user and you wrote that you have taken a mt4 version as a basis my question, is it possible to get this from you?

    Greetings robcole

    • Nicolas • 145 days ago #

      Hi Rob, sorry I do not offer MT4 support and I coded this one months ago, I think you’ll have to find it by yourself in the forums or elsewhere on the web 🙂

  6. robcole • 145 days ago #

    Thx for your reply, i understand, my hope was that you stillhave the mt4 version… however, can you point me into the right direction with the name of the mt4 version, i was searching with google without luck untill now :/ THX

Register or


avatar avatar avatar avatar avatar
Related users ' posts
4 days ago
CCI Correction.IND
CCI Correction.IND
JMat45 Thanks, Despair. Wasn't it the most recent issue though, i.e. March 2018?
Despair You are right, it is from March 2018. :-)
Leo Hi Nicolas, is it not the definition in line 44 like this: Opentf= (opentf+haclose)/2 ...
Nicolas No, because opentf is only used to calculate the haclose at line 53 and we need the real pri...
fabioerliam Hi Nicolas! thanks for this indicator! I don't understand why to indicate the daily timefr...
Nicolas With: autoRenko=1 //automatic renko brick size based on 2 time ATR periods autoVolume=1 /...
Real Pro Thank you. I tried the following but it does plot but not as I'd expect. //PRC_Renko Bri...
Real Pro working now, sorry for the bother
Nicolas These 2 instructions are not allowed in ProScreener, just delete them. They are only there t...
websnake Super! Thanks for the quick reply - And please keep up the good work! I'm learning a lot! Al...
websnake As I wrote, thanks for the help. Did't work in the ProScreener - unable to just delete what ...
1 month ago
swapping Toujours aussi prolifique Nicolas ;) Ce sera donc du Darvas à la sauce Forex, excellent je ...
juanj Kinda reminds me of Renko Trading
1 month ago
hartgeld Hallo Nicolas, ein sehr guter Indikator, vielen Dank! Leider rechnet er bei mir nicht die Pe...
supertiti Bonsoir à tous For those who like me want to calibrate this indicator on a scale of 0 to ...
supertiti I recently read "the method Wyckoff" by Enrique Diaz Valdecantos, and I found interesting le...
poldoposta Purtroppo su versione 10.2 non funziona....mi stavo cominciando a documentare su Wyckoff!! q...
gabri Che errore riporta?
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
Leo ..for some reason I can not add PRT code properly... anyway
Vonasi Thanks for that Leo. Apparently there is some fault with the site that means posting code is...
Nicolas Sorry again, doing my best to fix this problem..
Alai-n I also have the same problem that I can not solve especially on LowVolume (Yellow) ... Sorry
Mert No need to apologise, my friend. It is great code. I hope you find a solution soon. Regards.
gabri I think it's because the lookback period changes at every new bar and that means that many c...
Alai-n Hello Vonasi, In the same spirit as this table would you have something similar to analyze o...
Vonasi Sorry but I don't have anything like that at the moment. This thread might be of interest to...
Alai-n Too bad for my question ... ;) And thank you for the link!
Vonasi There is another very minor bug fix. The indicator description when you hover over the speec...
Reiner great work:-)
Vonasi Thanks Reiner. that is compliments indeed from the seasonality expert. I have a second vers...
Vonasi I noticed a couple of typo errors in the code. The list of variables lines 4 to 11 should be...
Genotik Thank you for your important contribution this week which is much appreciated! Happy New Yea...
Vonasi No problem. I hope they are useful to someone. Happy and hopefully prosperous New Year to y...
DarioMazza Hi Vonasi, i have a question for you, the comand "pricetype" where did you found it in the ...
Vonasi PriceType is just a variable that I use. The value decides what type of price is used in the...
Vonasi I noticed a couple of typo errors in the code. The list of variables lines 4 to 11 should be...