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

[EquisMetaStock Group] Re: variable periods within functions



PureBytes Links

Trading Reference Links

Oh what!?  You didn't get my $ invoice?  <:-o

jose '-)


--- In equismetastock@xxxxxxxxxxxxxxx, "Kevin and Heather Howard" 
<kjhoward@xxxx> wrote:
>             Hi Jose,
> 
> I just wanted to say thank you for assisting me with this problem.
> You have shown me a way forward where I could see no way forward
> at all. I think your command of the metastock language is just
> incredible. Thank you again.
> 
> Kevin
> 
> -----Original Message-----
> From: Jose [mailto:josesilva22@x...] 
> Sent: Tuesday, 30 March 2004 5:47 PM
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: Re: variable periods within functions
> 
> Kevin,the biggest problem I see here is getting your coding idea 
> across.  You would have to include all necessary code, and a logical 
> explanation of the desired output, before you can expect any 
> reasonable help.
> 
> Anyway, this works:
> ---8<------------------------
> a:=CMO(C,13)>Ref(CMO(C,13),-1)
> AND Ref(CMO(C,13),-1)<Ref(CMO(C,13),-2);
> b:=CMO(C,13)<Ref(CMO(C,13),-1)
> AND Ref(CMO(C,13),-1)>Ref(CMO(C,13),-2);
> 
> state:=BarsSince(a)<BarsSince(b);
> signal:=state<Ref(state,-1);
> 
> BarsSince(signal)
> ---8<------------------------
> 
> Jose '-)



 
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/