Announcement

Collapse
No announcement yet.

efs time programming

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

  • efs time programming

    Hello,

    how can I tell my efs that it should trade only the first and the last hour of a trading day. I mean how can I program that my efs trade from 9.30 to 10.30 and from 15.00 to 16.00 o´clock.
    I would like to have this in my efs, because I will check the profit with the tick replay tool.

    thanks for help
    regards sams

  • #2
    wrap your logic with:

    if ((( getHour() * 100 + getMinute()) >= 930 && ( getHour() * 100 + getMinute()) <= 1030) ) || ( ( getHour() * 100 + getMinute()) >= 1500 && ( getHour() * 100 + getMinute()) <= 1600) ))
    {
    }

    Comment

    Working...
    X