Williams’ 3 bar trailing stop

Williams’ 3 bar trailing stop

This is one of the very best trading techniques I have ever developed. The reason why is that it often rides mega trend markets for a long , long time, yet does not give back much profit when the correction begins as conventional moving average and channel. 

This technique can be used not only as an exit techniques, but as an entry technique as well. It is really quite simple. Once the market is in a run away move, as I call it a “rock and roll” market – then and only then – do we use this exit. Price must be out of a trading range. 

As a trailing stop: Make certain prices are out of congestion, they have begun to run, then, and only then, implement this as your trailing stop (i.e. exit).

For entry: Make certain the market is really set up. Sometimes the first entry will be false as a straight up or down market usually “bases” before the next trend move begins.

(excerpt from the author’s description of this trend following indicator)

This indicator has been requested by Maximus 78 here (https://www.prorealcode.com/topic/3-bar-trailing-stop-di-larry-williams/).

Blue skies!!!

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. Franz1234 • 11 days ago #

    Hi gabri,

     

    great work! I am currently working on this 3 bar trailing stop for trading view and I have coded pretty much the same indicator as you. 

    But, the original requirement is to start counting at the highest close in an up move (and lowest close in a down move). So in particular once this highest/lowest close is found then apply then find the lowest/highest low of the last three bars which are not an inside bar.

    The result would be an indicator the keep a bigger distance from the price action when the price moves sideways and does not make new highst/lowest closes.

    So far my thoughts are that it is crucial to define first: “When did the up/down move begin!” This could be done by the indicator which you have already programmed. And then take this as a starting point to find the highst/lowest closes to calculate the further progression of the stop.

    I haven’t found a way to do so. Would be great I you could think about this an share your ideas!

    Thank you in advance!

  2. gabri • 10 days ago #

    Franz,

    I see what you mean. I will try to work some code for that but I cannot make any promise.

    G

  3. gabri • 10 days ago #

    Franz,

    can this code work for you?

    count=1
    i=0
    j=i+1
    tot=0
    //calcolo 3 barre
    while count<4 do
    tot=tot+1
    if (low[j]<low[i]) and (high[j]>high[i]) then
    //inside bar
    i=i+1
    j=j+1
    else
    count=count+1
    i=i+1
    J=i+1
    endif
    wend
    if close>close[1] then
    basso=lowest[tot](close)
    endif
    if close<close[1] then
    alto=highest[tot](close)
    endif
    
    if barindex>1 then
    if close > ref[1] then
    ref=basso
    endif
    if close < ref[1] then
    ref=alto
    endif
    endif
    return ref

    I also changed something between lines 5 and 14 to calculate the inside bars. I considered up trend any close above “ref” and downtrend any close below “ref”. Let me know if it works better.

    G

  4. Francesco78 • 10 days ago #

    Hi, can you show at least one strategy that works well with this indicator?

    The idea is nice.

    Thank you 

  5. gabri • 10 days ago #

    Francesco,

    I just tried to code an idea from Maximus 78 (https://www.prorealcode.com/topic/3-bar-trailing-stop-di-larry-williams/). I am sure he has all the info about strategies connected with this indicator. If I had to guess though I’d say that, being this a trailing stop indicator, it has to be used in conjunction with some other sort of trend indicator.

    G

     

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
manel Hi - have come across a difference here in the calculation of the indicator. It's meant to r...
Nicolas I don't know, the code of this indicator is one from another platform, not the Three Line Br...
manel Ok, many thanks. I've tried messing around with the code myself but am no closer to solving ...
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/
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
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
winkx Bonjour Nicolas, Je vous remercie L'indicateur est très intéressant Après c'est une quest...
Nicolas Les goûts et les couleurs...
Hans63 Good evening Nicolas, Can you add an option coloring the candlesticks? Thanks
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.. ...
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
Nicolas
7 months ago
Nicolas Je vais faire l'indicateur et expliquer comment en même temps dans un sujet de forum. Plus s...
gregus merci nicolas toute ma gratitude est pour toi sa sera bien pratique car je pense ne pas etre...
Nicolas Ok merci donc d'ouvrir un sujet spécifique pour cette demande donc :) 

Top