Wing’s Trend Lines

Wing’s Trend Lines

Wing’s Trend Lines

This indicator draws up to 12 trend lines, based on previous high/low points. I created it to trade manually with it, but it can also be implemented into a strategy. An old indicator that will work on both 10.2 and 10.3. It could be improved using the new functionalities in 10.3.

Features:

  • Displays 1-12 trend lines. (Up to 6 lines of support and 6 lines of resistance)
  • Trend lines are updated automatically, just like a regular indicator.
  • If you decrease the amount of lines (parameter ‘DisplayedLines’) shown, from 12 to 6 for example, it will prioritize recent trends and not show older trends.
  • Parameter ‘p’ can be changed to increase or decrease the trend lookback. Big or small trends.
  • Lines are angled Support and Resistance lines based on RSI high/low points.
  • How to trade: Price will bounce when approaching a trend line (mean reversion) or go through and continue (breakout). Not all instruments are good to trade with the indicator, but they will be in some timeframes.
  • Does not display horizontal lines of interest (there’s other indicators for that) unless made up by least two price points.

Note that if you load 10000 bars or more it can take some time to load. Note that it does not draw lines into the future (it could probably be updated to do that). When switching trend it will also create ugly vertical change, but it works like a charm.

If you want to apply the indicator, download it, import it, and right-click your price bars and then add the indicator to your price.

I can answer questions in the comments.

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. Leito • 09/08/2017 #

    Nice aproach, have you ever try to implement it for patterns recognitions, like double top/bottom?

    • Wing • 09/08/2017 #

      Not yet but I plan to.

    • Leo • 09/08/2017 #

      Have a look in this Forum, I got something interesting for you… https://www.prorealcode.com/topic/dobule-bottom-or-double-top

  2. Dávid Gyalus • 09/08/2017 #

    Dear Wing,

    As I am a daytrader, and one of my best friend is a programmer we think your approach of support and resistance lines are really interesting! Thank you for sharing your idea! To be honest, I really would like to try it in another platform I use daily, and my friend said that he will rewrite the code to being able to use on that platform, but we would have one question before we could finish that.

    Do we assume correctly that, line t1, t2 etc. are just Y coordinates for the current X value bar, or tick?!

    Thank you very much
    David

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas
11 months ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!
FXtonio @RICOU en 1 minutes avec un filtre de tendance ZLSMA 200 et eventuellement un rsi 7 , 69% de...
JC_Bywan For people interested in the screener: https://www.prorealcode.com/topic/screener-buy-sell-m...
octum Gracias NJicolas. Las lineas 35 y 36 dan fallo. (¿Es adrede para iniciados?) Puedes co...
Nicolas Yes, Magic if the variable that contains the value of the line, you can test if it goes up o...
dadah1987 Bonjour Nicolas, merci pour cet indicateur. Utilisant pour l'instant la création simplifié p...
Nicolas Merci d'ouvrir un sujet sur le forum avec une description complète du système.
GustavoLoboOrenstein Is it possible to add histogram with only increasing bars?
Nicolas Je ne rencontre pas ce problème avec le NASDAQ par exemple, ce serait plus simple d'ouvrir u...
YvesRobert Bonjour Nicolas, en effet ca marche, je me suis trompé, j'ai bien tout le tracé. C'est parce...
oliTR Bonjour, les conditions longCond et shortCond ne contiennent-elles pas une condition qui s'a...
Jiacky
2 years ago
Kalman Filter
Kalman Filter
0
Indicators
Stenozar Hi Sever, how can I visualize the coloured areas?
Sever Hi Stenozar, You need to add the color zones yourself , just go to Add Color Zone To set ...
atlante hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
Nicolas That'"s because you are not using PRT v11? Just remove lines 59 to 62
Kanamax Hi Roberto, sorry for my confusing previous posts (forget them). My request is very simple,...
robertogozzi Please start a new topic in ProOrder support.
robertogozzi There you go: myMagicTrend = CALL “Magic Trend custom”[20, 14, 1, 5] alpha = 105 b = 0...
johann8 exactly :) Thank you all for the help!
max_92 Ciao Roberto, ho scaricato l'indicatore e come ti avevano già scritto sopra anch'io vedo la ...
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Guibourse Hi, I'd like to increase the thickness of support and resistance lines. I do not think that ...
JJ Tec Hello. Thanks for the great contribution of the indicator. At the moment, I have modified i...
Khaled Hi Vonasi, I tried to embed your PP Fractals code in a Strategy and it seems to be a good fi...
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.

Top