bill williams fractal code

This is a discussion on bill williams fractal code within the Technical Analysis forums, part of the Methods category; If someone could please help me with this code I got for Bill Williams fractals (prorealtime). I don't know what ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Jun 1, 2009, 12:58am   #1
 
2 Posts
Joined May 2009
Question bill williams fractal code

If someone could please help me with this code I got for Bill Williams fractals (prorealtime). I don't know what [PC] should be? The variables can be 2,or 5. When I tried to put it on my price chart, it shorten all the candlesticks. I would appreciate any help. Thanks

//CP=variables -default=2
if high[PC]>=highest[2*CP+1](high) then
LH=1
else
LH=0
endif

if low[PC]<=lowest[2*CP+1](low)then
LL=-1
else
LL=0
endif

if LH=1 then
HiL=high[CP]
endif
if LL=-1then
LoL=low[CP]
endif

LoL coloured return(255,0,0) as "low" coloured HiL(0,255,0) as "high"
////////////end
elrois is offline   Reply With Quote
Old Oct 16, 2011, 7:05pm   #2
Joined Oct 2011
Re: bill williams fractal code

REM// CP = 5 , PC = 5 in Variables on EOD price Daily Charts
REM// Hope you get it to work, It makes for a similar indicator to a Donchian Channel

if high[PC]>=highest[2*CP+1](high) then
LH=1
else
LH=0
endif

if low[PC]<=lowest[2*CP+1](low)then
LL=-1
else
LL=0
endif

if LH=1 then
HiL=high[CP]
endif

if LL=-1then
LoL=low[CP]
endif

Return LoL coloured (255,0,0) as "low" , HiL coloured (0,255,0) as "high"

// END


try this
iamnev is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trading Chaos by Bill Williams osho67 Educational Resources 80 Sep 15, 2011 10:27pm
Trading Chaos Second Edition -Bill Williams tommac The Foyer 0 Nov 4, 2008 11:03pm
Fractal Finance ilia king Trading Software 4 Mar 8, 2004 9:37am

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)