PureBytes Links
Trading Reference Links
|
Thanks Roy.
This is fine as long as you 'look up' a value, but what if you assign?
Is there a way to do an assignment, say
Variable[100] = 10;
If this exists (and I doubt it), then you can use it to 'bridge' the
20 variable limitation, by defining and array, say 'Variables' and
using say the first say 100 entries of it as your program's variables.
The penalty is that you have to look them up using these funny
gymnastics.
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com
--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> wrote:
> Hi MG
>
> There isn't a function such as you describe. The effect can be
> achieved with this though.
> ValueWhen(1,Cum(1)=1,C);
>
> Sometimes it's useful to plot an entire data array with a value
> that occurs at some clearly defined point, and an example of that is..
> LastValue(ValueWhen(1,Cum(1)=100,C));
>
> Of course that's forward looking for the first 99 bars, so not
appropriate
> for every situation.
>
> Kind regards
>
> Roy
> www.metastocktips.co.nz
>
>
>
> > I am working on your question, just a quick question to the group,
> > that relates to our discussion.
> >
> > Is it possible to get an absolute reference? I know
> >
> > Ref(C,-1)
> >
> > gives the close one bar ago. Also, something like
> >
> > sum(C*(Cum(1)=1))
> >
> > gives the close of the first bar. But is there a function, say 'X',
> > so that
> >
> > X(C,1)
> >
> > gives the close of the first bar?
> >
> > Thanks in advance
> > MG Ferreira
> > TsaTsa EOD Programmer and trading model builder
> > http://www.ferra4models.com
> > http://fun.ferra4models.com
> >
> >
> >
> >
> >
> >
--------------------------------------------------------------------------------
> > Yahoo! Groups Links
> >
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/equismetastock/
> >
> > b.. To unsubscribe from this group, send an email to:
> > equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> >
> > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
> >
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/
|