Williams Fractals

Comments

3 comments

  • Tiki Dave

    Aloha Louis, unfortunately Tradovate's custom indicators lack the ability to displace charts and to look ahead into the future, i.e. draw signals on bars that have already closed. I will add this to the list of feature requests in the other forum.  Cheers!

    1
    Comment actions Permalink
  • Jason Dinkel

    Is there a link to the other forum that Tiki Dave mentioned above?

    I suppose if not possible with Tradovate, it is possible with TradingView and they have lots of fractal examples available in their scripting language. But would be nice to see these on tick charts which TradingView doesn't support yet it seems - just sub-second charts.

    0
    Comment actions Permalink
  • Jason Dinkel

    There is a method called ST Fractals.

    Here is the code on Tradingview.

    It uses just three candles to identify the fractal instead of five.

    I've also coded this in Sierra Chart, but it's a lot longer.

    Can post if anybody really wants it. So, just let me know.

     

    Here's the code that was used. Maybe somebody can say if this is possible in Tradovate?

    //@version=3
    study("STPatterns fractals", overlay=true)
    fractalUp = low[2] < low[3] and low[2] < low[1]
    fractalDn = high[2] > high[3] and high[2] > high[1]

    fractalUpUn1 = low[1] < low[2] and low[1] < low[0] and barstate.islast
    fractalDnUn1 = high[1] > high[2] and high[1] > high[0] and barstate.islast

    fractalUpUn2 = low[0] < low[1] and barstate.islast
    fractalDnUn2 = high[0] > high[1] and barstate.islast

    plotshape(fractalUpUn2, style=shape.triangledown, location=location.belowbar, color=orange)
    plotshape(fractalDnUn2, style=shape.triangleup, location=location.abovebar, color=orange)


    plotshape(fractalUpUn1, style=shape.triangledown, location=location.belowbar, color=orange, offset=-1)
    plotshape(fractalDnUn1, style=shape.triangleup, location=location.abovebar, color=orange, offset=-1)


    plotshape(fractalUp, style=shape.triangledown, location=location.belowbar, color=red, offset=-2)
    plotshape(fractalDn, style=shape.triangleup, location=location.abovebar, color=green, offset=-2)
    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk