PDA

View Full Version : New to Tradesim - 2 Questions


Clive
17th December 2011, 07:29 AM
Have had Tradesim for a while and now want to use it with Metastock V10. I am not that familiar with the MS language as am coming from Tradestation which I have a good understanding of.

1. What I need to know if it is possible to reference another security to determine if a trade can be entered. EG To use the XJO as a filter, say not in a downtrend, before entering a trade. Coming from Tradestation this is very easy to do by just inserting another data stream in the chart eg a 90 day MA of close of data2 is greater than a 90 day MA of close data2 30 days ago then whatever entry condition. This is simply written as
If average(c data2,90) >= average(c data2,90)[30] and c < c[1] then buy next open;{wording of data1 is not needed}
How would I do this in Tradesim/Metastock – Please be gentle I have not yet got my head around the MS language!


2. When running a Tradesim test on a portfolio of stocks, say the ASX 200, how would I set it up so that I am not using the increasing (hopefully) available capital/equity to determine number of shares to trade but only using the initial staring equity only. Yes I do understand what I am asking and no I do not have the capability to do Monte C test with my version of Tradesim.

oztrader
18th December 2011, 12:36 AM
Hi Clive,

Question 1
I think you are using Paritech but have included Premium Data in case you have changed.

a) *Using directory path for Paritech (unless it has changed)*

{xjo Index Filter}
xjo:=
Security("C:\Shares\ASX\Indices\XJO",CLOSE);
xjoMA:=Mov(xjo,90,S);
xjoMA > Ref(xjoMA,-30)

b) *Using directory path for Premium Data*

{xjo Index Filter}
xjo:=
Security("C:\Trading Data\Stocks\ASX\Indices\XJO",CLOSE);
xjoMA:=Mov(xjo,90,S);
xjoMA > Ref(xjoMA,-30)


Question 2

You can use any Position Size Model but ensure the Pyramid Profits button is NOT checked.

Cheers,
Rob

Clive
18th December 2011, 01:15 AM
Hi Clive,

Question 1
I think you are using Paritech but have included Premium Data in case you have changed.

Cheers,
Rob

Thanks yes you are correct still with Paritech

OK so this means that I can reference the XJO, or whatever, in my calculations/explorations. Can I do multiple references EG the XJO and DowJones ($DJIA in DataTools)

Regards

oztrader
18th December 2011, 06:13 AM
Clive,

I haven't used Paritech for a few years now (the path I used in my example code came from an old computer) but if $DJIA (in DataTools?) is in the Paritech Data Directory then you should be able to access the Dow in the same way as the example above.

Rob

Clive
18th December 2011, 07:33 AM
Clive,

I haven't used Paritech for a few years now (the path I used in my example code came from an old computer) but if $DJIA (in DataTools?) is in the Paritech Data Directory then you should be able to access the Dow in the same way as the example above.

Rob

I have DataTools in it's own directory but wil try it anyway shortly