View Full Version : Referencing another stock or index
helene
28th September 2003, 09:04 AM
Hi all,
I am trying to develop a system that uses the price information of the DOW (or other index/stock) as part of the entry trigger?
Does anyone know how to reference this in Metastock so that I can backtest the system in Trade.Sim?
Thanks
:roll:
David Samborsky
28th September 2003, 12:51 PM
I am fairly sure that Metastock Professional has a function called Security that allows you to access another security's data. This function may be available in version 8 or later.
mcdirt
28th September 2003, 01:56 PM
If your version of MS does not support the Security function, you can still do it by use of the P variable. If you don't know how to do this ...
Open a chart of the Dow, set to same time frame as Exploration you will run, click on the price line to highlight it. Run the Exploration with the Dow charts still selected. Dow now can be referrenced as P in an Exploration formula.
Example ...
EntryTrigger:=C>Mov(C,5,E) AND P>Mov(P,5,E)
{stocks in list} {Dow}
Have a look under "P data array identifier" in Metastock Help.
Hope that helps
helene
29th September 2003, 07:13 AM
Thanks - will give this a go!!
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.