PureBytes Links
Trading Reference Links
|
I have been struggling to understand the following section of Roy
Larsen's excellent paper on latches:
He says:
One problem to be addressed with this simple code is that the output
line (using BarsSince) can have an extended invalid signal period. In
other words it will return a value of N/A instead of a legitimate
value. This N/A period will extend from the first bar on the chart
until the `set' signal is true and the `reset' signal is valid.
My difficulty is with the last sentence.
As I understand it, BarsSince(foo) becomes valid the first time foo
is true and therefore the expression BarsSince(N) < BarsSince(X) will
become valid when all its constituents are valid i.e. when N and X
are both true for the first time. If N happens before X, I can
envisage a situation where N is true and X is valid but X has not yet
been true. In this case the N/A period will extend beyond the
situaton where "the `set' signal is true and the `reset' signal is
valid".
Can someone explain to me why the last sentence should not have read
something like:
"This N/A period will extend from the first bar on the chart until
the `set' signal and the `reset' signal have both been true at least
once".
Colin
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> 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/
|