PureBytes Links
Trading Reference Links
|
Hello. I am kind of new to MEtastock programming and I was looking
through some code that look interesting. It's the Tom Demark
sequential code I've seen posted around the internet.
TD1:=If(C<Ref(C,-4),1,0);
TD2:=If(TD1=1 AND Ref(TD1,-1)=1 AND Ref(TD1,-2)=1 AND Ref(TD1,-3)=1
AND Ref(TD1,-4)=1 AND Ref(TD1,-5)=1 AND Ref(TD1,-6)=1 AND Ref(TD1,-7)
=1 AND Ref(TD1,-8)=1, 1,0);
TD3:=If(Ref(C,-9)>=Ref(C,-13),1,0);
TD4:=If(TD2=1 AND TD3=1,1,0);
TD5:=If(H>=Ref(LLV(L,5),-3),1,0);
now I'm okay with all the formulas to this point...
I don't understand the following:
D8:=If(Ref(TD4,1)=1 AND TD5=1,1,0);
It's the Ref(TD4,1)=1 I don't understand. THe manual sez it
references a previous or subsequent element in the data array. A
positive Period references n periods in the future; a negative period
references n periods ago.
I guess what I can't seem to understand is how does one reference a
period in the future that hasn't happened yet. Or - how does a
formula refer to a formula in the future.
Any help would be most welcome
thanks
Warren Peace2001
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/zMEolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|