Not logged in
Viewing 5 posts - 1 through 5 (of 5 total)

Forums>AlgoWizard / EA Wizard>Application Support>EAWizzard: Time filter for month and day

  • #233611 |
    Customer
    37 Posts

    I search for the ‘If area’ a time filter to tell the ea that he may not open new positions between 15 December and 08 January?

    #233662
    tomas262
    Administrator
    1823 Posts

    Hello,

    it is currently not possible to exclude specific period in EA Wizard using built-in functions. You would need to use custom MQ4 code for it. Let me know if any questions

    #234813
    Customer
    37 Posts

    Hi,

    Unfortunately, I’m not a programmer. I’m not familiar with the code.

    #234825
    tomas262
    Administrator
    1823 Posts

    Hello,

    you can send me your EA and I can modify for you to support@strategyquant.com or you can use this simple code in final EA code right before the entry rule after int start() function to eliminate entries in July 2018

    datetime limitStart=D’2018.07.01 00:00′;
    datetime limitEnd=D’2018.07.31 23:59′;

    if (TimeCurrent()=>limitStart AND TimeCurrent <= limitEnd) return;

    #234852
    Customer
    37 Posts

    Oh, thank you very much.

    I will try it. :-)

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.