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 • 158 days ago #

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

  2. bolsatrilera • 158 days ago #

    ¿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 • 158 days ago #

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

  3. verdi55 • 157 days ago #

    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 • 157 days ago #

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

  4. sanjivmodi • 97 days ago #

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

Register or


avatar avatar avatar avatar avatar
Related users ' posts
Nicolas Hi Maz, it's always a pleasure to review your post, they are always perfectly well formatted...
Robert Great work! Could be useful :)
Tedvin Nice one, thanks a lot Maz :)
TheAccountant hmmmmmmm... même si j'applique les EMA sur l'indicateur lui même et pas dans la fenetre prix...
Nicolas Le temps continue de s'écouler sur un graphique "normal" comme c'est le cas ici, alors que ç...
TheAccountant ok j'ai compris le truc ! merci !
1 week ago
Francesco78 very nice, thanks!
Elsborgtrading Thanks for this MAZ:-) I will also try and implement it in manual trading. I changed the v...
ALE Thanks! excellent
otty82  THX looks good!
century nice one , thank you
supertiti Il manque 2 slash devant len dans le code dur car la variable ne marche pas bonne journée
3 weeks ago
Bard p.s. It worked fine yesterday. I've just opened up another template that I have, which also ...
Nicolas You certainly changed the code of the indicator and made a typo somewhere. Please redownload...
Bard I haven't changed the code related to the parts mentioned above. The only modification was m...
4 weeks ago
gatarayihajp Hi swingforfortune, Thanks a lot about your interesting posting. Let ask you to explain mor...
Swingforfortune Hello. Basically they are a twist of the MACD histogram and can be used as such. They visua...
gatarayihajp Hi again Thanks for the explanation. Have a good day
Swingforfortune As Nicolas says, you need to adjust/create one indicator for each chart unfortunately. For ...
Swingforfortune I usually use it on Index and individual stocks. I don't have experience using it on forex. ...
Elsborgtrading ahh ofcause guys. Thanks :-) Cheers Kasper
gabri Roman made the strategy, I made the code and Maze made it bulltproof. You can use it I belie...
Roman Francesco78 here is the strategy:
Francesco78 Thank you!
1 month ago
Peter J Thanks Nicolas I'll give it a go. Computers and coding is not my thing but who knows. If all...
Nicolas For personal assistance, you can submit your request with the form on this page: https://www...
Peter J Great stuff thanks Nicolas.
Marius Hi Nicolas,   thanks you for you valuable input. I am relatively news to PRT and I wo...
Nicolas This is question that should be posted on forum, it's general purpose and it is not related ...
Frankiesc Thanks Nicolas for sharing this indicator, it's interesting
gabri Excellent job like always!! are you working also on the Barycenter indicator?
Nicolas No but I think you can find a lot of different version of the "center of gravity - COG" indi...