[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] need help with formula



PureBytes Links

Trading Reference Links

Hi

I reveived this formula but I have some problem understand some parts 
of it.

*********************************************************
{Gann Swing 2}

{Market swing is defined as:
Up = 2 higher highs,
Down = 2 lower highs.}
Us:=BarsSince((H > Ref(H,-1)) AND (Ref(H,-1) > 
Ref(H,-2)) );
Ds:=BarsSince((L < Ref(L,-1)) AND (Ref(L,-1) < 
Ref(L,-2)));
Sd1:=If(Us=0,
{then}If(Ref(L,-1)<>LowestSince(1,Ds=0,L),
{then}1,
{else}0),
{else}If(Ds=0,
{then}If(Ref(H,-1)<>
HighestSince(1,Us=0,H),
{then}-1,
{else}0),
{else}0));
Sd2:=If(Sd1=1,
{then} If(Ref(BarsSince(Sd1=1),-1) >
Ref(BarsSince(Sd1=-1),-1),
{then}1,
{else}0),
{else} If(Sd1=-1,
{then}If(Ref(BarsSince(Sd1=1),-1) <
Ref(BarsSince(Sd1=-1),-1),
{then}-1,
{else}0),
{else}0));
TD1:=ValueWhen(1,Sd2<>0,Sd2);
Td1;

****************************************************************

Knowing that 1= true and 0= false

can anyone explain the following statements, are my thought's correct?

If US= 0 ------------------------ If US= false?

If SD1= -1----------------------- What this "-1" means?

If (BarsSince (SD1=1), -1)------- What this statement means?

ValueWhen (1,SD2 <> 0, SD2)------ What this statement means?

LowestSince(1,Ds=0,L)------------ Another one that I don't understand


I apprecciate all the help that you can give

Thank you







------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy 1, Get 1 FREE
Control Cravings & Hunger EZ! Fast Acting Natural Oral Spray - $19.97
http://www.challengerone.com/t/l.asp?cid=2866&lp=ezappetite3.html
http://us.click.yahoo.com/rJIe0D/99VGAA/ySSFAA/BefplB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/