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

Similar Threads

  1. Open oppsite order if order don't take profit
    By luisneves in forum MQL programming
    Replies: 0
    Last Post: 12-06-2012, 17:09
  2. Replies: 1
    Last Post: 09-03-2011, 21:22
  3. How program EA for to open order when candle open?
    By Fonscky in forum MQL programming
    Replies: 0
    Last Post: 08-19-2010, 22:56
  4. Largest Open Losing Trade
    By v4vendetta in forum MQL programming
    Replies: 11
    Last Post: 07-19-2009, 01: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, 18:22

Tags for this Thread

100, advisor, expert, expert advisor, hours, programmer, programming

Posting Permissions

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