Not logged in
Viewing 14 posts - 1 through 14 (of 14 total)
  • #113947 |
    Customer
    87 Posts

    Hello,

     

    I’m looking to have the EA to start trading 1-hour after the market opens after the weekend. I want the EA to trade until the close on Friday. 

     

    What I’m looking for is the EA to not take any trades until 1-hour after the open after the weekend and then trade all week long. If there are trades in then those would not be affected by the times.

     

    I’m struggling on the right way to put this down with the EA Wizard rules. Does anyone have some ideas on how to accomplish this?

     

    Thanks for any help.

     

    Regards,

     

    James

    #131315
    Moderator
    1559 Posts

    So market opens at 2200 GMT Sunday and you want to start trading 1 hour after that (2300 GMT) and finish on Friday?

     

    Let me know if I get it correctly so I can make up some rules for you in the Wizard.

    #131319
    Customer
    87 Posts

    So market opens at 2200 GMT Sunday and you want to start trading 1 hour after that (2300 GMT) and finish on Friday?

     

    Let me know if I get it correctly so I can make up some rules for you in the Wizard.

    Hello Tomas262,

     

    Thanks for the reply. being able to pick your brain has helped me a lot to learn how to use the EA Wizard software. Thanks for all your help. 

     

    Yes, my broker doesn’t have a Sunday bar but should be the same. I’m looking to have the EA start looking for new trades 1 hour after the market opens on Sunday/Monday and stop looking for new trades on Friday when the market closes. 

     

    Thanks for any input. I tried a few things with the day and time but I haven’t figured out how to get it to work yet. Thanks again.

     

    Regards,

     

    James

    #131326
    Participant
    29 Posts

    Hello. Have you found a solution to your problem yet? I also want the same for my EA so I won’t have to deal with gaps on weekend.

    #131329
    Moderator
    1559 Posts

    This should solve it. You just have to define correct logic relationships …

    Attachments in this forum are visible only for registered users.
    #131336
    Customer
    87 Posts

    Tomas262,

     

    Thank you for the example code. I had the right idea just not thinking i needed all the other days of the week. This should be fairly simple to put in front of my trade rules. Thank you again for all your help.  :D

     

    Regards,

    James

    #131382
    Participant
    29 Posts

    Thank you Tomas! Will use it on my EA  :)

    #138683
    Participant
    32 Posts

    Hey guys hope all is well. Wondering if you can help 

    I was reading the post and tried to include the above but it says

     

    ‘sqGetPLInPipsToday’ – function not defined checkmeout.mq4 175 12
     

    so i defined the int function in the strategy Home still no joy

     Please advise Kindly 
    Thank you
    #138684
    Participant
    32 Posts

    hey guys this 1 worked . nut still instrested to find out the above answer

     

    https://strategyquant.com/forum/topic/3244-off-ea-when-it-takes-profit/?hl=turn

     

    Thank you 

    #138692
    Moderator
    1559 Posts

    Hello, ‘sqGetPLInPipsToday()’ is a standard function included in every EA generated by EA Wizard. Can you describe exactly what you did because you should not receive such message

    #138742
    Participant
    32 Posts

    Hi Tomas Thank you for the reply

    I used the other method it works fine when profit target is met but i tried to do the opposite when Account equity is negative …………..No joy what am i doing wrong 

    Thank you 

    Attachments in this forum are visible only for registered users.
    #138780
    Moderator
    1559 Posts

    Hello,

    I could not make your project work. Can you describe your trading rules? Maybe I can design another version

    #138803
    Participant
    32 Posts

    When Bid Rises above 21MA and if P/L turns negative buy x amount turn off EA 

     

    Thank you So Much

    #138872
    Moderator
    1559 Posts

    I looked at your EA once more. You said DailyProfit works fine while DailyLoss is not working. Maybe it is because you switched order wrong way.

    Instead of

     

    AccountEquity < StopAtDailyRisk – DailyAccountBalance

     

    you could try the opposite

     

    AccountEquity < DailyAccountBalance – StopAtDailyRisk 

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

You must be logged in to reply to this topic.