PureBytes Links
Trading Reference Links
|
Thought I'd pick up on this thread hoping to get the attention of
those of you so clearly accomplished in Metastock programming.
Further to my project of trying to transfer to equities trading some
pattern recognition techniques I've been using in futures, here's
what I'm looking for:
Is there some standard Metastock programming to search large
equities directories for such minor patterns as double-inside days,
flags, pennants, 3 day pullbacks, etc.? I'm already aware that
there are special software programs for these items from Curtis
Arnold and Kasanjian Research, but I'm wondering if someone is aware
of this already done for Metastock.
And Phillip, thanks again for the code you sent my way regarding my
Dripping Spout pattern some weeks ago. Did you seen this pattern
in the April Unleaded Gas chart from Friday?
thanks in advance...
Mark Scheier
Philip wrote:
>
> Many thanks to HHP, J., Glen and Martin for the DYNAMITE support on this
> question. Much obliged!
>
> Good trades and best regards,
> Philip
>
> HHP wrote:
>
> > Philip,
> >
> > You can use binary logic. Any True/False statement evaluates to 1 when
> > true and to 0 when false. Assuming you define a rising trend as having
> > a value greater than the previous day, then:
> >
> > Mov(C,21,E) > Ref(Mov(C,21,E),-1) would such a statement.
> >
> > (ADX(13) > Ref(ADX(13),-1)) = 0 would test for the ADX not rising.
> >
> > Note also that you can combine True/false statements mathematically:
> >
> > (Mov(C,21,E) > Ref(Mov(C,21,E),-1)) * (ADX(13) > Ref(ADX(13),-1)) is the
> > same as an AND statement: it evaluates to true (1*1=1) only whan both
> > components are true, otherwise to 0.
> >
> > (Mov(C,21,E) > Ref(Mov(C,21,E),-1)) + (ADX(13) > Ref(ADX(13),-1)) = 1
> > would be true when only one component is true, but false when neither or
> > both are true.
> >
> > (Mov(C,21,E) > Ref(Mov(C,21,E),-1)) + (ADX(13) > Ref(ADX(13),-1)) >= 1
> > would be false only when both components are false.
> >
> > Even a statement "If A then B, else C" can be written (A*B) + (1-A)*C.
> >
> > HHP
> > ==========================
> >
> > Philip wrote:
> > >
> > > When writing Metastock formula syntax, is there a way to specify that a
> > > condition should NOT obtain?
> > >
> > > Examples:
> > >
> > > EMA(21) is rising, but the ADX(13) ISN'T.
> > >
> > > Such an such an oscillator is above (say) 80, but this other set of
> > > circumstances (expanding on it now) is NOT the case.
> > >
> > > Or must I spell out which conditions I want the second element/elements to
> > > fulfill in terms of "true?"
> > >
> > > Philip
|