Announcement

Collapse
No announcement yet.

Exiting position near end of day

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

  • Exiting position near end of day

    Hi,

    I'm trying to create efs for a strategy that will run on a daily chart. However, within that efs I need to exit any positions 15 minutes before the market closes.

    I've tried adding code that does (getHour() * 100) + getMinute() but I've learned that getHour() returns 0 on a daily chart.

    Any advice on how I can accomplish this would be appreciated.

    Thanks,
    Mike

  • #2
    Hi Mike

    I dont' how frequently you want to exit positions 15 minutes before the close etc (maybe some more details would help) but if it was every day, for every position then you could simply change your Daily_Time Template to force an early close 15 minutes before the official close?

    If you give me some more details I can expand on that!

    John

    Comment

    Working...
    X