Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 1/22/2011(UTC) Posts: 34
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Hi guys,
In order to back test a new trading system I have designed, I’ve been using some software called Trade Sim.
I back test the last 5 years using my System that incorporates both Long and short resulting in semi decent results.
To have better results, I would be interested in having my system only Trade Long when the Overall Market is Bullish and Trade Short when the Overall Market is Bearish.
I’m wondering if it’s possible to have my system make reference to the ASX200 (XJO), and if it’s trading above a 170Day EMA My system only makes Long Trades, and if trading below a 170 Day EMA My System only Trades Short.
Any help would be greatly appreciated, even a “yes this is Possible, or no it’s not” would help.
Thanks in Advance.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
Use the SECURITY() function to reference other symbols.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 1/22/2011(UTC) Posts: 34
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Thanks jjstein,
Unfortunately I'm getting a Location error.
As im accessing my Data via the the Metastock Reuters icon, i thought i would not need make reference to a path?
If i do need to make referance to a path, what path do i need to input for the Reuters Data location.
Your help is greatly appreciated.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
I have to make a few assumptions here, so please correct me as/if needed. If you're using TradeSim from CompuVision, then you are using standard indicator code in an Exploration, in End-of-Day periodicity. An example would be: x:=Security("\MetaStock Data\INDEX\.SPX",C); ...which would put the closing price into "x", which you can then use with MOV or other indicator functions/code. You will need to customize this for the specific folder location on your computer. If you're getting a "location error", then you need to figure out where your data is -- through Windows Explorer, from The Downloader or in Metastock with the File -- Open menu option. If that doesn't help, post your code.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 1/22/2011(UTC) Posts: 34
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Im still not sure where the location of the security is stored. I access data by clicking on the following icon. I looked in C:\MetaStock Data but i only had 2 folders inside. Is my issue that im not downloading Data to my PC but rather accessing it via the Reuters Icon in Metastock, on the fly..
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
Um, you can use this: x:=Security("ONLINE:.SPX",C); You might consider downloading the data, though -- Explorations and such will be gawdawful slow with online data. If you look in your Start Menu, there should be a "Metastock Offline Mode" option.
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
yes this is possible. Use the Security() function to reference the close of the index and assign it to a variable. Then you can compare that variable to the moving average of that variable
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.