PDA

View Full Version : Comparison to idex


bazza
30th October 2005, 12:11 PM
Is there any way of writing codes for TradeSim that refer back to the XJO - for example - I'm looking for a way of filtering stocks against the big picture within the XJO - filtering out stocks for a trend following system when the XJO is not in an uptrend?
Seems like a good idea to play with (even though I'm aware that there are always stocks that swim against the tide)
B

Jose
31st October 2005, 01:47 PM
If you have MetaStock Pro, or MS EOD v8.01 or later, you can use the Security() function to reference other data arrays besides the current chart's.

For example:
{ Assuming XJO data is in C:\MetaStock Data\Indices folder }
x:=Security("C:\MetaStock Data\Indices\XJO",C);
filter:=x>Mov(x,10,E);

filter {AND system entry signal}




jose '-)

bazza
1st November 2005, 12:01 PM
Thanks Jose - much appreciated
B