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

Re: NumericRef Function question



PureBytes Links

Trading Reference Links

Problem solved...

Thanks to Mark Simms for helping with the mystery... ;~)

Solution was to declare Local Variables on the Indicator side to store only
those values of the NumericRef inputs calculated at the time of the single
Tick function call.

Then I also declared Local Variables on the Function side to stash the
Serial data (now declared Simple on the inputs) on the identical Tick.

Lastly, of course, all local variables have to be reset for each sampling
Interval.

Bottom line, it appears NumericRef inputs will float and attempt to
recalculate on every tick regardless of "if...then" or "where" filter loops.
They must be isolated on both sides.

Now with the help of Robert Linders' PushPop.dll, the real fun begins...
hehe

Best regards,

Gene Pope


----- Original Message -----
From: "Gene Pope" <gene@xxxxxxxxxxxxx>
To: <code-list@xxxxxxxxxxxxx>
Cc: "Omegalist" <omega-list@xxxxxxxxxx>
Sent: Wednesday, January 16, 2002 11:27 AM
Subject: NumericRef Function question


> Hello All,
>
> Question: If I have an Indicator or Signal that is plotted on a TICK
chart,
> but is coded to call a Function for only one Tick every N minutes (and
I've
> confirmed that it is doing so correctly),
>
> AND, if the Function I'm calling normally uses NumericRef inputs for the
> data that I want calculated and passed back to the calling
Indicator/Signal,
>
> AND, if the Data that I'm passing to the Function from the
Indicator/Signal
> are declared as NumericSeries,
>
> Will the NumericRef inputs of the Function attempt to update back to the
> Indicator/Signal on every Tick anyway?
>
> It appears to be so from my observation, and I'm about to "kludge" the
> Function by splicing the same "one tick every N minutes" condition into
it,
> but I just wanted to get the undisclosed logic correct here before banging
> my head against the wall...
>
> Many thanks,
>
> Gene Pope
>
>
>
>
>