in Search

Issue with System Test based on Gaps not making entry on correct day?

Last post 01-17-2008, 19:34 by codeowl1. 5 replies.
Sort Posts: Previous Next
  •  01-17-2008, 3:43 26333

    Issue with System Test based on Gaps not making entry on correct day?

    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.)

  •  01-17-2008, 5:30 26334 in reply to 26333

    Re: Issue with System Test based on Gaps not making entry on correct day?

    Hi codeowl,

    This is just a hunch but try it anyway - replace buy signal with

    Cross(LOW,Ref(HIGH, -1));

    All the best,

    ozt

  •  01-17-2008, 5:59 26335 in reply to 26334

    Re: Issue with System Test based on Gaps not making entry on correct day?

    ozt,

    thanks for the reply.  But unfortunately this did not work either.  Any other ideas?

    Scott.

  •  01-17-2008, 6:45 26337 in reply to 26335

    Re: Issue with System Test based on Gaps not making entry on correct day?

    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

  •  01-17-2008, 18:57 26345 in reply to 26337

    Re: Issue with System Test based on Gaps not making entry on correct day?

    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.
  •  01-17-2008, 19:34 26346 in reply to 26345

    Re: Issue with System Test based on Gaps not making entry on correct day?

    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:

    1. Open Position on the Close of day with Gap. Lets call this Day1. (this now works thanks).
    2. Put trailing stop on the above position.  (this is working ok).
    3. Move trailing top up to the open of the next day. Lets call this Day2.
    4. 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.

View as RSS news feed in XML