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
Iván De nada!
lkiklkik merci ! which time frame would be the best .?
Iván Depends on the asset you are trading, so you need to test it first.
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 month 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
2 months 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...
Iván
2 months ago
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...
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
8 months ago
B-Xtrender
B-Xtrender
7
Indicators
Fgats I suspected something like this but in the PRT documentation I couldn't find anything to exp...
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à :)
JS
8 months ago
Trendilo
Trendilo
0
Indicators
Nicolas
9 months ago
Anthony2A Bjr, j ai des erreurs sur la ligne 69, 74, 78 et 80. sur drawcandle drawtext et endif. si ...
Lucas0000 Hello, Congratulations on this programming, it seems incredible to me, I am new to this but ...
plbourse Hello, I am trying to use this singal (in fact I have converted it to an indicateur giving B...
BriceE Bonjour Nicolas, Je suis a la recherche d'indicateurs pour me donner la meilleure indicatio...
Nicolas
10 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?

Top