Fractal
I created a 'Long Fractal' indicator. The only problems are, it doesn't generate a blob on the price chart (or paint the bar in some way) but appears as an indicator beneath; and it doesn't show the fractal bar itself - that is, the middle bar - but the last bar that forms the Fractal.
This is the code I used:
LongFractal = (high[2]>high[3] and high[2]>high[4] and high[2]>high[1] and high[2]>high)
IF LongFractal THEN
result=1
ELSE
result=0
ENDIF
RETURN result AS "Detection of LongFractal"
I'm attaching a chart to show how it looks. If anyone has any ideas about creating a 'paint bar' indicator instead, or about shifting the indicator I have two bars to the left, to make it easier on the eye, that would be great.
__________________
All flesh is as grass
|