Discussions
»
Special Interest Groups
»
Basic Coding Techniques
»
Issue with System Test based on Gaps not making entry on correct day?
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/23/2007(UTC) Posts: 6
|
Hi there,
I am trying to build a System Test based on gaps. I want the system to take an entry on the Close of the day with the Gap. I have the Buy Order Formula as follows:
Ref(HIGH, -1) < LOW
Yet when I run the System Test and plot the Chart all the entry points are the day after the Gap. However I want it to take an entry on the Close of the day with a Gap.
How can I achieve this?
Thank you for your time,
Scott.
(I am running MetaStock 10.1 with End Of Day data.)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
Hi codeowl,
This is just a hunch but try it anyway - replace buy signal with
Cross(LOW,Ref(HIGH, -1));
All the best,
ozt
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/23/2007(UTC) Posts: 6
|
ozt,
thanks for the reply. But unfortunately this did not work either. Any other ideas?
Scott.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
Hi codeowl,
Just a shot in the dark as I suggested - I'm sorry that I can't be of more help but do not use the System Tester.
Will respond if anything comes to mind.
Best wishes,
ozt
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
When performing a New Simulation, click the "More" button on the System Testing Options page. Click on the "Trade Execution" tab. Uncheck "Realistic Market Prices", set all the Price fields to Close and set the "Delay Order Opening" to 0.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/23/2007(UTC) Posts: 6
|
Pyradius,
Thank you for your suggestion. It works perfectly. Now I have one more issue. What I want to be able to do is this:
- Open Position on the Close of day with Gap. Lets call this Day1. (this now works thanks).
- Put trailing stop on the above position. (this is working ok).
- Move trailing top up to the open of the next day. Lets call this Day2.
- Sell on the Close of the Day2, if Stop is not triggered.
Is this possible with the Metastock System Tester, or am I asking to much of it? If it is not up to the job do you know of any other system testers that would be.
Thanks for your time,
Scott.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Special Interest Groups
»
Basic Coding Techniques
»
Issue with System Test based on Gaps not making entry on correct day?
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.