Reversal signal ThreeLineBreak

v10.3
Reversal signal ThreeLineBreak

This is a modified version of the three line break price representation. It is composed with 2 lines made of Close price values forming a “cloud”.

  • If the trend is bullish and the price breach the lower level of the green cloud, a new bearish trend is taking place.
  • If the current trend is bearish and the price breakout the upper band of the cloud, a new bullish trend is forming.

This is a “price action” indicator, signals may be filtered by long term trend analysis with other indicators such as Supertrend for instance.

This indicator has been converted from Nanotrader coding language by a request in the French forum.

 

 

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. Francesco78 • 34 days ago #

    Thank you , have you tried to backtest it with any instrument by any chance?

    Thanks a lot

    Francesco 

    • Nicolas • 34 days ago #

      Not myself, but I know user ‘turame’ want to code a straetgy built upon this indicator, the french thread link: https://www.prorealcode.com/topic/creation-indicateur-de-suivi-de-tendance-bandeau/

  2. Francesco78 • 34 days ago #

    great, thank you

  3. turame • 33 days ago #

    Great work Nicolas ! 

    Effectively I’d like to create a strategy. But first I have to modified the code to create an histogram signal +1 / -1. Not so easy 🙂

    If the results are concluding, I’ll post it !

    • Nicolas • 33 days ago #

      Just add “TREND” to the RETURN function and you’ll already get the -1 / 1 signals.

  4. Francesco78 • 33 days ago #

    It works as a good indicator (although in a counterintuitive way ) on the daily cac 40. Will post a strategy soon.

  5. manel • 32 days ago #

    Thank you Nicolas. Its nice to be able to have the indicator and price on a single chart, previously it was only one or the other. I tried a version of this last year (in fact I think you helped with something similar for me) but it didn’t quite work as I wanted it to and I put it to the side on my todo list :-). The code posted above however looks more promising. I trade the 3 line break manually and can confirm it does have some success (especially on equities) but obviously there is limited testing as currently I could only test forward. Now that we have an automated code for it will be interesting to see if it the indicator works with history once we can incorporate into a strategy. Also, for info, I found that depending on the market and timeframe a 4/5 line break sometimes works better in providing more accurate signals which I presume is fairly easy to amend the above code for this. Will post here if I find some promising results in my testing. Thanks again.

    • Nicolas • 32 days ago #

      Great to hear it will help you! Don’t hesitate post your results or ideas from this indicator, I would be more than happy to help you. Have a great weekend. 

    • manel • 32 days ago #

      Cheers, will do. Have a great w/e.

  6. manel • 23 days ago #

    An update – To start off with, I’ve actually used the indicator created by Francesco here on the Dax 30m – https://www.prorealcode.com/prorealtime-trading-strategies/cac-40-strategy-reversal-signal-threelinebreak-indicator/ (Sorry couldn’t add a link as it jumps me to the bottom of the page every time I click on “insert link” ) – Thank you Francesco ! I added an 25/55 ema filter and then ran a backtest. Results are pretty good with a 79% WFE ratio and 8% draw and profits split equally between long and shorts (which I like). I plan on working on it a bit more to create a higher win rate. Also aim to test out the non-reverse version of the indicator (ie the normal way !). But so far, the work looks promising, I think I’ll need a bit of help in coding the next steps at some point so I’ll reach out to see if anyone can help on here. Thanks again Nicolas for coding this !

    PS – I can’t post a screenshot of the results here as don’t have the permissions but maybe I should open a new thread once I have enough confidence that it can progress past an initial stage of scrutiny.

    • Nicolas • 23 days ago #

      Please open a new forum topic if you want to discuss further more of your idea! Thanks for the update, it’s really cool to know this indicator works well for you 🙂

  7. larouedegann • 22 days ago #

    Salut Nicolas,

    Petit soucis technique sur cet indicateur…..

    Les chandeliers disparaissent à chaque changement de timeframe. Je suis en 15mn.

    Je suis obligé d’enlever l’indicateur puis de le remettre.

    Merci

     

    • Nicolas • 22 days ago #

      Pas de ma faute je le jure ! 🙂 

  8. manel • 22 days ago #

    Hi – have come across a difference here in the calculation of the indicator. It’s meant to replicate the 3 Line Break price chart and I would say 90-95% of the time the code achieves that perfectly but there a few instances where it does not match. It’s slightly puzzling as presumably the background code in PRT that calculates and displays the 3 Line Break price chart should be the same as the one coded in this post – so they both should either be accurate 100% or not, not accurate some of the time which is why its strange. It could be of course that there is something slightly incorrect about the PRT chart itself and not the code.

    As an example, if you draw up a PRT 3 Line break chart of the 1H DAX and then compare that with the signal generated by the code above for Mon 29 May :
    Indicator shows sell signal at 0700 – matches with PRT 
    Indicator shows buy signal at 1000 – none in PRT
    Indicator shows sell signal at 1300 – none in PRT
    Indicators shows buy signal at 1500 – none in PRT

    As I say – this only happens occasionally as most of the time the code calculates as it’s supposed to. Any ideas what could be causing the differences ? Thanks

     

    • Nicolas • 22 days ago #

      I don’t know, the code of this indicator is one from another platform, not the Three Line Break of prorealtime, that’s why it may have some differences in their calculation.  Since I do not have source code of how PRT calculate its own TLB charts I’m not able to compare sorry ..

    • manel • 22 days ago #

      Ok, many thanks. I’ve tried messing around with the code myself but am no closer to solving the issue and I’m not proficient enough with coding yet to try and do something more with it. Maybe someone here can look at it and hopefully solve the problem. It explains why in backtest some of the results are not quite correct but it’s better than we had before so small steps…..:-)

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
gabri Franz, can this code work for you? count=1 i=0 j=i+1 tot=0 //calcolo 3 barre while co...
Francesco78 Hi, can you show at least one strategy that works well with this indicator? The idea is nic...
gabri Francesco, I just tried to code an idea from Maximus 78 (https://www.prorealcode.com/topic/...
Stenozar Hi Francesco, thanks for your code. May I have your email? I'd like to send you a message. ...
Francesco78 Hi Stenizar and thank you! For the email, I think the rule of the forum is to ask Nicolas t...
Stenozar OK Francesco, thanks
gabri GraHaL, I cannot see any link attached. I mostly manual trade but for stocks with strong fi...
GraHal Yes sorry, I set up a link to a screen shot on my google drive and then I got locked into th...
gabri Here's the thread https://www.prorealcode.com/topic/multiframe-rsi-of-rsi/
diegofe_2000 Gracias Nicolas , muy buen indicador , excelente para hacer sistemas, muy buenos resultados,...
David Balance thanks for sharing this excellent indicator.  Here are some thoughts.  please ad...
reb Hello Marc your strat seems very intersting, will take a look Reb
897148 What exactly is meant by Total price? Is r1 =28 in your example the no of days for "Total P...
otty82  THX looks good!
century nice one , thank you
juanj Also change the ATR multiplier to 2 instead of 3. Slightly better drawdown.
GraHal I started he thread below as I get the results shown on image below. Please help on the Foru...
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
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
ade1 Hullo Nicolas, when i put the indicator on my chart ,it comes as an indicator below the cha...
Nicolas Apply it on price instead with the wrench on the upper left side of the price chart.
ade1 thankyou
albertocampagna Sei grande Nicolas :-)
SAcht Dear Nicolas, Great work, thank you very much!I would love to use the indicator in ProScree...
SAcht btw: The above-posted ProScreener is supposed to show stocks for which the center line has i...
Raspoutine Hi Nicolas,The results are not identical   ma200 = Arevage(200) //c4 = summation[2...
Magela01 is this ok with AMibroker?
Nicolas Prorealcode is a website about prorealtime trading platform programming, this code will not ...
JohnVS okay thanks, Hopefully u had a chance to check the other question too? Since the stock hav...
Nicolas I'm pretty sure you can do it yourself John! Please don't be shy :)
century thanks for this work , quite interesting but i would like the same thing as JohnVS , ;)
supertiti amplitude 1.2.3  = ( 2-6-30 ) or (1-1-27) ?
LUCASSEN Hallo Supertiti Macd amplitude=1-1-27    and    prc halftrend triple in Heikin Ashi  grafie...
supertiti Thanks you so much Lucassen
TheAccountant Bonjour et merci pour cet indicateur. j'essai de parametrer une alerte sur le changement de...
leyoy Salut Nicolas, est-ce compliqué de faire varier le fond de PRT en fonction de la couleur de...
Nicolas Il faut utiliser backgroundcolor, bon courage. 
verdi55 Have you ever made any Franc with trading ? I guess, not. Maybe I should change business and...
Nicolas Everything here is free, I do not sell anything and "tell people what they like to hear", I'...
verdi55 Is there such a thing as a free lunch ?
larouedegann blue = 50 green = 20 red = 10 than you
shephinc Is there an easy way get a value returned from the indicator that says if the blue channel i...
alf Hello, How can i project it on the chart? Now it is below amongst the other indicators.. ...

Top