Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/7/2009(UTC) Posts: 3
|
How can i create an indicator to draw gann's 9 point swing chart?
i cannot seem to save a variable form one period to the other.
Many Thanks,
D
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
It helps to post an "non-code" description of what you are looking for. Sometimes I will give coding your request a shot (Wabbit is much better) but I doubt if I would if I have to search on the net for an exact definition of "Gann's 9 point swing" calculation.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/7/2009(UTC) Posts: 3
|
Here you can find the explanation on the 9 point swing chart.
http://books.google.com/...%20point%20chart&f=false
I would be able to solve it myself but I ran into this problem:
Let’s say you have an inside day ( inside() ) then you have to plot the indicator value of the previous day. This I can solve by ref to day -1 and -2 and calculating the value all over again.
But what happens if you have 10 consecutive inside days. You should either be able to save a value from one period to the next or to have a recursive formula.
Regards and thx for helping.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Judicious use of the ValueWhen() function can be used to look back to find the most recent occurrence that wasn't an inside bar.
wabbit [:D]
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.