+ Reply to Thread
Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Wait x hours to open new order after a losing trade

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    6

    Default Wait x hours to open new order after a losing trade

    hi all,

    i am working on a Expert Advisor, but i am not a good programmer, now i have a problem with the code. I need a function in the EA that make this: after a losing trade in the EA i will waiting x Hours before the EA can open a new Trade. Is it possibile to programming this into an Expert Advisor?

    sorry for my bad English

    thank you
    zickzack

  2. #2
    Junior Member
    Join Date
    Jan 2011
    Location
    Vienna
    Posts
    6

    Default

    There is the command "Sleep" which may help you on this.
    You can specify how long the EA shall wait until continuing his work, input in miliseconds, 1000 = one second.

    Hope this is what you are looking for.
    Software and Consulting for MetaTrader4 - MQLware - www.mqlware.com

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 10-02-2010, 09:10
  2. How program EA for to open order when candle open?
    By Fonscky in forum MQL programming
    Replies: 0
    Last Post: 08-19-2010, 21:56
  3. Trailing Open Order
    By thenikey in forum Ideas for expert advisors
    Replies: 2
    Last Post: 09-07-2009, 03:55
  4. Largest Open Losing Trade
    By v4vendetta in forum MQL programming
    Replies: 11
    Last Post: 07-19-2009, 00:49
  5. Error for the EA that trade in the same hours everyday
    By alexlsy in forum MQL programming
    Replies: 1
    Last Post: 03-12-2009, 17:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts