in Search

Potentiel W

Last post 11-18-2008, 19:17 by carcajou. 2 replies.
Sort Posts: Previous Next
  •  11-05-2008, 19:43 28152

    Potentiel W

    Hello,

    I try to find stcok on potentiel support zone.

    I try the template and the indicators on Metastock, I try that :

    LookBack := Input("Look Back Periods",1,1000,10);

    Resistance :=ValueWhen(1,Cross(Mov(C, LookBack,

    S),C),HHV(H, LookBack));

    Support :=ValueWhen(1,Cross(C,Mov(C, LookBack,

    S)),LLV(L, LookBack));

    Resistance;

    Support;

    and this one ;

    PrCnt:=Input("Percentage",0,100,10);

    LookBack:= Input("Look Back Periods",1,1000,10);

    Resistance:=ValueWhen(1,Cross(Mov(C,LookBack,S),C),HHV(H,LookBack));

     

    Support:=ValueWhen(1,Cross(C,Mov(C,LookBack,S)),LLV(L,LookBack));

    Resistance * ((100-prcnt)/100);

    Support * ((prcnt/100)+1);

     

    If low was :

    bas400:=L <= Ref(LLV(L,400),-1);

     

    bas400

    How I can find stocks around 2% more or less bas400 ?

    Carcajou

  •  11-12-2008, 16:26 28220 in reply to 28152

    Re: Potentiel W

    Hi Carcajou,

    Welcome to the forum.

    Have a read in the MS Users Manual about how to use the Explorer to find stocks that meet certain criteria.  Use a filter condition to select the required stocks, or eliminate those not required, something like this?

    Code:

    {filter}
    bas400:=LLV(L,400);
    pct:=0.02;

    (L < (1+pct)*bas400)
     AND
    (L > (1-pct)*bas400);



    Hope this helps.

    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 & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status :
    My SkyPE account : wabbit.com.au

  •  11-18-2008, 19:17 28299 in reply to 28220

    Re: Potentiel W

    Thanks,

     

    Carcajou

View as RSS news feed in XML