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

Re: Unusual Array Call



PureBytes Links

Trading Reference Links

Apologies... "Pause" meaning that the If...Then statement waits until
MyArray is filled (which is at LastBaronChart), and then lets the remaining
code execute.

Thanks for the other ideas as well.

Gene

----- Original Message -----
From: "Pierre Orphelin" <sirtrade@xxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Wednesday, September 25, 2002 12:16 PM
Subject: RE: Unusual Array Call


>
>
> > -----Message d'origine-----
> > De : Gene Pope [mailto:gene@xxxxxxxxxxxxx]
> > Envoyé : mercredi 25 septembre 2002 17:36
> > À : sirtrade@xxxxxxxxxx; omega-list@xxxxxxxxxx
> > Objet : Re: Unusual Array Call
> >
> >
> > Thank you Pierre. Let me be clearer about exactly what I'm asking.
> >
> > The problem is not with the values in MyArray. The values that are
returned
> > to the calling indicator match those values in the function perfectly.
So in
> > fact, the 2-D array was passed correctly to and from the function.
>
> Good new. From an old message coming from Omega support, I believed that
only 1
> dimension array passed to and back functions were allowed.
> This was at the very beginning of multiple arrays existence.
> Obviously this has been changed if you succeeded with this one.
> >
> > The problem is in the serial values of MyClose before the If...Then
> > statement vs. after the If...Then statement.
> >
> > You would think that it should not change, but it does. There is
something
> > going on with TS internal logic that when you hit the "pause" button in
> > code, then release it after LastBarOnChart, any serial variable "filled"
on
> > the first run through, no longer holds it's historical values.
> >
>
> Pause button in code?
>
> > Perhaps I should just turn MyClose into another array and be done with
it.
>
> Yes. You may also consider to return the values into the passed array (
the
> values can be passed back by the function to the input array).
> You may also try to force the  returned fucntion to series by referring to
a
> previous value of itself at the beginning of the code.
>
> Sincerely,
>
> Pierre Orphelin
> www.sirtrade.com
> TradeStation Technologies representative in France
> Safir-X neurofuzzy logic trading system builder
>
> To subscribe to our FREE trading system newsletter:
> http://www.sirtrade.com/newsletter.htm
>
>
>
>