PureBytes Links
Trading Reference Links
|
Big,
Sorry, can't get this into Easy Language for you but I can point you
to a previous discussion about it.
http://finance.groups.yahoo.com/group/equismetastock/message/5319
Notice the link given in the discussion. Go there and you will find
more Easy Language formulas.
Seems the code you have has been changed from the original. Yours
uses Open values and has a very tight strata value...1% versus 10%.
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, "eyeonyou85" <eyeonyou85@xxx>
wrote:
>
> Hello all,
>
> I'm new to Metastock but would like to convert this indicator into
> Tradestation Easy Language. Any help is appreciated. Here's the
metastock
> indicator:
>
> strata:=0.01;
> If(
> O=PREV,
> PREV,
> If(
> ((Ref(O,-1)<PREV)AND (O<PREV)),
> Min(PREV,O*(1+strata/100)),
> If(
> (Ref(O,-1)>PREV) AND (O>PREV),
> Max(PREV,O*(1-strata/100)),
> If(
> O>PREV,
> O*(1-strata/100),
> O*(1+strata/100)
> )
> )
> )
> )
>
> Here's what I think is the close to the Tradestation Easy Language
code.
> I'm not sure what is getting assigned to Prev though. Even if you
don't
> know Easy Language but can put this into English I would
appreciate it.
>
> vars: intrabarpersist Strata(.01), Prev(0), Indicatorvalue(0);
>
> if Open = Indicatorvalue then Indicatorvalue = Open else begin
> if Open < Prev and Open[1] < prev then Indicatorvalue = Minlist
(Prev,Open
> * (1 + strata/100) else begin
> if Open > prev and Open[1] > Prev then Indicatorvalue =
> Maxlist(prev,Open * (1 + strata/100) else begin
> if Open > Prev then Indicatorvalue = Open * (1 - strata/100)
else
> Indicatorvalue = Open * (1 + strata/100);
> end;
> end;
> end;
>
>
> Thanks again for any help!
> bigboy
> eyeonyou85@xxx
>
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:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto: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/
|