Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Opening of trade at the beginning of candles.

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    1

    Default Opening of trade at the beginning of candles.

    Hello. Please advise how one program in the MQL4 opening trade at the beginning of a new candle. Thank you.

  2. #2
    Member
    Join Date
    Jan 2011
    Location
    Austria
    Posts
    36

    Default

    You have to
    * save the timestamp of every tick to a variable
    * check if actual timestamp is different from current one -> new bar just opened.

Similar Threads

  1. EA controlling only bar opening
    By dr18 in forum Expert advisors backtesting
    Replies: 0
    Last Post: 03-12-2013, 17:07
  2. Opening only an order per day
    By szmvscla in forum MQL programming
    Replies: 2
    Last Post: 11-06-2009, 22:56
  3. Opening 2 orders at the same time
    By szmvscla in forum MQL programming
    Replies: 5
    Last Post: 11-06-2009, 14:31

Tags for this Thread

candle, candles, mql, mql4, thank you

Posting Permissions

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