Williams Fractals
Is there anyway to add Williams Fractal and Williams Alligator indicators?
-
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.
-
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)
Please sign in to leave a comment.
Comments
3 comments