Announcement

Collapse
No announcement yet.

Ignoring the opening and closing prints

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ignoring the opening and closing prints

    Hi all, I've been getting false signals in backtesting due to some inaccurate opening and closing prints. I assume some are partially due to NYSE stocks not opening at the bell or perhaps premarket ECN trades.

    I'd like to set a condition with the formula wizard to ignore the first and last 5 min of the day when determining entry and exit signals. What would you suggest is the best way of doing this?

    I saw the GetMinute function but I'm not sure if this will accomplish what I am trying to do. In addition, the help files don't say what format the resulting values are returned (i.e. 11:30, 11.30, 1130, or ???)

    Thanks in advance for any help,
    Derek

  • #2
    Hello Derek,

    This thread from the New Study Suggestions forum, Restricting Trading Hours, will show you how to do this by adding some code to your formula through the EFS editor.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Thanks

      Thanks for the link. I also discovered that restricting the chart to the time I wanted by using a time template also works.

      Comment

      Working...
      X