Need Expert Help on Time Function
Results 1 to 5 of 5

Thread: Need Expert Help on Time Function

  1. #1
    OK. I feel like a real bonehead. For some reason, I simply cannot get my expert working. Essentially, all I want to do is to place an order every night at precisely 3:30 GMT. For whatever reason, MT4 acts as if the hour is set correctly, but, it does funny stuff with the minutes. For instance, I changed the setting to place an order at 15:55, but, it placed it at 15:52.

    Does anyone have an idea of what could be happening? If I want an order down to the minute, does the expert need to be on a minute chart?

    If someone is willing to take a glance through the code, I'm happy to post it.

    Thanks.

  2. #2

    Quote Originally Posted by ;
    Did those few minutes get you in at a worse price?
    Thị trường rất chậm tại thời điểm đó nó thực sự không quan trọng. Nó chỉ làm tôi bối rối. Có cách tiếp cận nào khác để thực hiện một đơn đặt hàng vào cuối nến 3:30 bên cạnh việc sử dụng các chức năng thời gian không?

  3. #3

    Quote Originally Posted by ;
    ĐỒNG Ý. Tôi cảm thấy như một đầu xương thực sự. Vì một số lý do, tôi chỉ đơn giản là không thể khiến chuyên gia của mình làm việc. Về cơ bản, tất cả những gì tôi muốn làm là đặt hàng mỗi đêm vào đúng 3:30 GMT. Vì bất kỳ lý do gì, MT4 hoạt động như thể giờ được đặt chính xác, nhưng, nó thực hiện công cụ hài hước với số phút. Chẳng hạn, tôi đã thay đổi cài đặt để đặt hàng vào lúc 15:55, nhưng, nó đã đặt nó vào lúc 15:51. Có ai có ý tưởng về những gì có thể xảy ra? Nếu tôi muốn một đơn đặt hàng đến phút, chuyên gia có cần phải có trên một biểu đồ phút không? Nếu ai đó sẵn sàng lướt qua mã, tôi rất vui lòng đăng nó. Cảm ơn. kho
    stock-y...I believe it does have to be on the minute chart because the bar time is based on the closing minute of the bar. Furthermore, since experts execute on ticks, if the first tick of the 15:55 bar executed at 15:52, it would read your 15:52 bar as your 15:55 bar (since the close of the bar between 15:51 and 15:55 is exactly 15:55). Did those few minutes get you in at a worse price?

  4. #4

    Quote Originally Posted by ;
    stock-y...I believe it does have to be on the minute chart because the bar time is based on the closing minute of the bar. Furthermore, since experts execute on ticks, if the first tick of the 15:55 bar executed at 15:52, it would read your 15:52 bar as your 15:55 bar (since the close of the bar between 15:51 and 15:55 is exactly 15:55). Did those few minutes get you in at a worse price?
    Bây giờ thật thú vị. Đó không phải là những gì tôi nghĩ vấn đề là. Tôi thực sự đang sử dụng biểu đồ 30 phút và giá trị tôi muốn là 3:30. Điều này thực sự có ý nghĩa. Đêm qua, chuyên gia của tôi đã hành quyết lúc 3:00. Dựa trên những gì bạn nói, mặc dù thời gian thực tế là 3:01, nó đã coi tích tắc là 3:30. Điều đó có tổng hợp không?

  5. #5

    Quote Originally Posted by ;
    Now that's interesting. That's not what I thought the problem was. I'm actually using a 30 minute chart and the value I want is 3:30. This actually makes sense. Last night, my expert executed at 3:00. Based on what you said, even though the actual time was 3:01, it treated the tick as 3:30. Does that sum it up?
    That sums it up...as far as correcting the problem, I'm sorry, I really don't know...I just remember running into the same issue with a time-based expert of mine as well (something pivots) a while back. The easiest thing for you to do would be to execute your trade by checking to see if the time is GREATER THAN 3:30. This way it would execute on the next tick past the 3:30 bar. You may lose a minute...but that shouldn't affect you that much...right?

Quyền đăng bài

  • Bạn không thể đăng bài viết mới
  • Bạn không thể đăng trả lời
  • Bạn không thể đăng tệp đính kèm
  • Bạn không thể chỉnh sửa bài đăng của bạn
  •  
Chính sách Cookie
Chính sách Cookie: Website forexibroker sử dụng cookies và khi tiếp tục sử dụng website bạn chấp thuận với điều này. Để có thêm thông tin, vui lòng đọc 'Thông tin Cookie'.