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

[EquisMetaStock Group] Re: On Balance True Range MACD Hist


  • Date: Fri, 19 Mar 2010 08:39:37 -0000
  • From: "formulaprimer" <formulaprimer@xxxxxxxxx>
  • Subject: [EquisMetaStock Group] Re: On Balance True Range MACD Hist

PureBytes Links

Trading Reference Links

The code below seems to work fine for me.


OBTR:=Cum(If(C > Ref(C,-1),1,-1) * 
(If(Ref(C,-1) < L,{Then} (H - Ref(C,-1)),
{Else}If(Ref(C,-1) > H,{Then} (Ref(C,-1) - L),
{Else} (H - L)))));
ShortMA:= Input("ShortMA -",1,200,8);
LongMA:= Input("LongMA -",1,200,17);
SignalMA:= Input("SignalMA - ",1,200,9);
MACDOBTR:=Mov(OBTR,ShortMA,E) - Mov(OBTR,LongMA,E);
If(MACDOBTR>=Ref(MACDOBTR,-1),MACDOBTR,0);
If(MACDOBTR<Ref(MACDOBTR,-1),MACDOBTR,0);
Mov(Mov(MACDOBTR,ShortMA,E)-Mov(MACDOBTR,LongMA,E), SignalMA,E);

--- In equismetastock@xxxxxxxxxxxxxxx, "newenglandlincolns" <vitas00@xxx> wrote:
>
> Hi,   I can't get MS to verify the formula - it says "this constant is
> being used incorrectly."   Thanks,   Vitas
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "formulaprimer"
> <formulaprimer@> wrote:
> >
> > Accumulation and Distribution Indicator
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    equismetastock-digest@xxxxxxxxxxxxxxx 
    equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/