PureBytes Links
Trading Reference Links
|
Chris
Open the index that you want to use as the basis for your general market
indicator and drop your trend indicator onto the chart. Example follows.
{Index Trend}
A:=LinRegSlope(C,12)*(1000/C);
B:=LinRegSlope(C,25)*(1000/C);
X:=A>Mov(A,5,S)+.25 OR A>0 OR A>B;
ExtFml("GV.SetVar","IndexTrend",X);
Assuming the indicator has been created to store its plot as a global
variable (using Marks GlobalVar.dll) then once the indicator has been
dropped onto the chart (which forces the value for that chart to be saved as
a "global variable") then it can be deleted from the chart and the chart to
be tested opened.
Your test code should call the particular global variable previously set up
and use it in the same way that you would use any other indicator value.
Make sure that you DO NOT drop the global variable 'trend indicator' onto
your test chart - if you do you will lose the index values and apply the
test chart values to the global variable. Just remember that the "Index
Trend" indicator must be initialised once during each MS session and before
use. Otherwise it will return garbage.
{Long Entry}
Trend:=ExtFml("GV.GetVar","IndexTrend");
{etc}
The GV.dll may be found here
http://users.bigpond.com/prominex/pegasus.htm#roy
Roy
----- Original Message -----
From: "chrismontgomery1966" <chrismontgomery1966@xxxxxxxxx>
To: <Metastockusers@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 28, 2003 8:28 AM
Subject: [Metastockusers] (unknown)
> Do anyone know of a way to use the MS7.2 system tester while
> referencing the trend of a general market index as a filter on the
> rest of the buy/sell criteria in the system test? If I open a stock
> chart, how can I apply the test to that chart while referencing a
> general market index chart.
> I know I can use the "P" data value in a custom indicator so when the
> indicator is placed on a chart it can be placed on another indicator.
> So the question is how can I apply that indicator with "P" to the gen
> market chart and reference it in the system tester for the open stock
> chart.
>
>
> Thanks,
>
> Chris
> Metastock 7.2 EOD
>
>
>
>
>
> To unsubscribe from this group, send an email to:
> Metastockusers-unsubscribe@xxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/vhSowB/XP.FAA/3jkFAA/zMEolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|