Curvature Trend

Curvature Trend

Curvature Trend Description

Purpose: Identifies the direction, strength, and potential reversal points of a trend.

Key Features:

  • A primary trend band that adapts to market conditions.
  • Adjustment based on “curvature” (similar to a radius) that modifies the band’s angle according to volatility and price movement.
  • Upper and lower bands acting as dynamic support/resistance levels.
  • Adjustable parameters such as initial distance and volatility multiplier.

Since ProRealCode does not have a native “curvature” function like some TradingView indicators, we approximate it using a combination of moving averages, volatility (such as ATR), and dynamic adjustments to replicate the described behavior.


Parameters:

  • StartDistance: Initial multiplier to define the band width (equivalent to “Start Points Distance” in Radius Trend).
  • StepCurvature: Incremental curvature adjustment to simulate the dynamic angle change (based on volatility).
  • ATRPeriod: ATR period to measure market volatility.
  • TrendLength: Length of the moving average that serves as the trend base.

Core Components:

Primary Trend (TrendBase):

An EMA (Exponential Moving Average) is used as the central line, similar to how the Radius Trend establishes a dynamic base.

Volatility (Volatility):

ATR (Average True Range) is used to adjust the bands according to volatility, mimicking the adaptability of the original indicator.

Dynamic Bands:

  • UpperBand and LowerBand are calculated by adding/subtracting a multiple of volatility to/from the trend base.
  • The curvature adjustment is simulated by incrementing or decrementing the bands based on price direction (PriceChange), imitating the adaptive behavior of the Radius Trend.

Output:

Returns three lines: the upper band, the primary trend (curvature), and the lower band, which can be visualized on the chart.

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. roccafragius • 2 days ago #

    Thank you so much, for my point of view very useful!!!

  2. Marc Boliart • 1 day ago #

    YW!

avatar
Register or

Likes

avatar avatar avatar
Related users ' posts
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
bertoluce Hello Ivan, thank you very much for the indicator. An observation: would it be possible (and...
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
1 year 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
1 year 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...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
1 year ago
winnie37 Hi Ivan, if i want to use it, and call the oscillator value (in grey, green or red), how to...
Iván The oscillator is smoothtype. In inputs there is de lag to configure the output
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...
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
Quino
1 year ago
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
2 years ago
B-Xtrender
B-Xtrender
8
Indicators
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à :)
P. Marlowe Very poweful indeed. It deserves close attention. I really appreciate very much IFTA backgro...
JS
2 years ago
Trendilo
Trendilo
1
Indicators
Coded1 very interesting indicator, thanks JS

Top