in Search

9 point swing chart

Last post 08-17-2009, 23:34 by wabbit. 3 replies.
Sort Posts: Previous Next
  •  08-09-2009, 13:14 30383

    9 point swing chart

    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
  •  08-11-2009, 22:54 30401 in reply to 30383

    Re: 9 point swing chart

      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.
     
     
     

  •  08-13-2009, 11:35 30412 in reply to 30401

    Re: 9 point swing chart

    Here you can find the explanation on the 9 point swing chart.

    http://books.google.com/books?id=is2acP3Lm7EC&pg=PA75&lpg=PA75&dq=gann+9+point+chart&source=bl&ots=gnUXoqUDOr&sig=3lFCvTgt1W272PD1twM45wIdlEk&hl=en&ei=pUuESstDi8gw2suY0gQ&sa=X&oi=book_result&ct=result&resnum=2#v=onepage&q=gann%209%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.
  •  08-17-2009, 23:34 30454 in reply to 30412

    Re: 9 point swing chart

    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 Big Smile [:D]


    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status :
    My SkyPE account : wabbit.com.au

View as RSS news feed in XML