Fibonacci Retracement Model Code?
Author: IAMSTEVE
Creation Date: 8/14/2009 7:37 AM
profile picture

IAMSTEVE

#1
Has anyone built code for FIB Retracements that could be plugged-in to a buy/sell strategy?
profile picture

gymcoach

#2
since the FIB lines are defined by the user picking a high and low point on the chart. How could you set it up for a program to pick the high and low points that would form the FIB lines? What type of rules do you have in mind for this aspect of FIB retracements.
profile picture

Wall

#3
You may wish to study this thread: /Forum/Posts/Fib-Retracement-mod-22311&start=0. Its in WL4 format but perhaps you can convert it to WL5/.NET, or ask Cone/Eugene to do so.

Also, I believe the code should be included in the Code Library equivalent in WL5.

Good luck with your trading.
profile picture

IAMSTEVE

#4
Reply to Gymcoach...I would look at my buy price and set that as the current low, if I'm going long...I'd like retracements to be at higher retracement prices. But I need code to pick the buy price and use it for a subsequent sale price at a Fib retracement level....Also thanks for the lead to WALL....regards....IAMSTEVE
profile picture

gymcoach

#5
Here is some code for creating Fibs based on the code found in the link provided by Wall that will work with WL5.

CODE:
Please log in to see this code.
profile picture

TrendCatcher

#6
Hi Gymcoach or Eugene,

Can you post a script which includes the above code? Thanks a lot.
profile picture

Eugene

#7
Click the link in Wall's post above (it's for WL4).
profile picture

TrendCatcher

#8
Hi Eugene,
It is not working now in WL4.5. Should I translate for WL 5.5 and add the code above?
profile picture

Eugene

#9
There are no less than 3 code snippets of V4 code by the link; which one and how exactly is "not working"?

The snippet by gymcoach right here is for V5 and it works, no need to translate anything extra.
profile picture

TrendCatcher

#10
Eugene,
could you help me to add the above code in the following published WL script? Thanks.
--

CODE:
Please log in to see this code.
profile picture

Eugene

#11
Firstly, you need to use the CODE button whenever posting code.

The Fib retracement code can safely be added right after these lines:
CODE:
Please log in to see this code.
profile picture

TrendCatcher

#12
It worked. :) :) :)
Thank you.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).