in Search

Kagi Exploration

Last post 10-15-2009, 12:48 by VOBiX. 1 replies.
Sort Posts: Previous Next
  •  04-12-2007, 11:36 23705

    Kagi Exploration

    Dear Everyone,

    I came across a post in Paritech forums, where the member who posted wanted to know how to write a Kagi exploration. It goes like this:

    Topic: Metastock - Kagi chart Exploration

    I have been using Kagi charts to select stocks now for some time on a manual basis (looking at each chart individually) and now would like to be able to run an exploration to look for situations where the thin line turns to a thick line. More specifically, I have changed the colours to: Thick lines - Green, Thin lines - Red; therefore I would like to find stocks where the red line has just turned Green.
    I have no idea as to how to construct such an exploration. Is there anyone who can help me please.
    Cheers
    Lee

    Reply:

    Variation:=3;
    up:=Peak(1,C,Variation);
    dn:=Trough(1,C,Variation);
    zup:=Ref(up,-1);
    zdn:=Ref(dn,-1);

    long entry / exit short : Cross(C,zup)
    short entry / exit long: Cross(ZDN,C)

    is this ok?

    --------------------
    Mauinna

    URL:-http://www.paritech.com.au/forums/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=15;t=000268

    That's what I want to know too. Is this ok? Are not the Peak and Trough functions based on hindsight? Kindly enlighten.

    Topic: Metastock - Kagi chart Exploration

  •  10-15-2009, 12:48 30953 in reply to 23705

    Re: Kagi Exploration

    HC Wrote :
    This is what I understand from the codes given, and able to get pass the error message and do an exploration. Here are the exploration codes:

    --------------------
    Col A: Close
    C

    Col B: Vol
    V

    Col C: Buy
    Variation:=3;
    up:=Peak(1,C,Variation);
    dn:=Trough(1,C,Variation);
    zup:=Ref(up,-1);
    zdn:=Ref(dn,-1);
    Cross(C,zup)

    Col D: Sell
    Variation:=3;
    up:=Peak(1,C,Variation);
    dn:=Trough(1,C,Variation);
    zup:=Ref(up,-1);
    zdn:=Ref(dn,-1);
    Cross(zdn,C)

    Filter:
    (colC=1 OR colD=1)
    AND V>300000

    --------------------

    Notes:

    1. I added a volume filter of min 300k shares, you may wish to remove the last line if you don't want the volume filter.

    2. After exploration, click on the report's heading Buy or Sell, all counters will be sorted, with all Buy grouped together (as 1) under buy column; repeat for sell column.

    3. Though I am able to get past the error message, the filter result don't looks right when I open the kagi chart.  Maybe the way the formula of kagi (those peak(1,C,Variation)...) are not right.

    Not sure if this is helpful.

    http://chartistsunited.com/forum/index.php?topic=699.0%3Bwap2
    www.VOBiX.NET Turkish Derivatives Exchange Platform
View as RSS news feed in XML