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

RE: Question on calculation



PureBytes Links

Trading Reference Links

Guy,
Why don't you get MSX, then you can make the add on your self.
I don't think it is too complicated if you know C or C++ Pascal , Power
Basic.



> -----Original Message-----
> From: owner-metastock@xxxxxxxxxxxxx
> [mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Guy Tann
> Sent: woensdag 19 juli 2000 1:19
> To: Metastock User Group
> Subject: Question on calculation
>
>
> List,
>
> Well I'm in the process of trying to move our Intermediate
> Term Signals into
> MetaStock and need a little help.
>
> First, here are a few of my assumptions I made after
> reviewing the latest
> manual (v7.01).
>
> 1. Variables go away after each day (we're EOD traders, so
> daily is our time
> frame).
> 2. The only way you can reference a prior day's value is by
> using PREV or by
> plotting the indicator and using the "P" Data Array Identifier.
> 3. The only way to reference the previous 20 values of an
> indicator is by
> using the "P" Data Array Identifier.
> 4. Plotting of indicators is irrelevant for our system, so I'm only
> interested in a programming solution.
>
> Questions:
>
> 1. Is there any way to build an array or list of variables
> that you can
> programmatically control?  For instance, I want to maintain
> the last 20
> values of a specific indicator and keep them for use on the
> next day.  At
> then end of each days processing, I would move X17 to X18,
> thereby dropping
> the previous X18.  X16 to X17, etc., thereby getting ready
> for the next days
> result, which I would store in X.
> 2. Is there any way that I can maintain multiple PREV values for an
> indicator?  What about PREV -1 and PREV -2?
>
> In our Intermediate Term System, we have an indicator we
> calculate whereby
> we maintain the last 18 results, always keeping the last 18
> values available
> to us for calculations.  We use the first 6 for a short-term
> indicator, the
> second six for an intermediate-term indicator and the final six for a
> long-term indicator.
>
> I'm trying to avoid having to do much additional programming
> outside of
> MetaStock, if possible, so I would appreciate any assistance.
>  Does anyone
> know of an add-in that's available that would provide array or table
> capabilities to MetaStock?
>
> Thanks for any help.
>
> Guy
>
> Paranoia...you only have to be right once to make it all worthwhile!
>
>
>