Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Previous Bar

  1. #1

    Default Previous Bar

    Hi guys, maybe simple question for you guys .. how can I stop EA for trading on next bar if made trade on bar before?

    Thank you in advance.

  2. #2
    Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default

    hi
    you can save PrevBar = ibars(....,0) when you send order
    and use the if like this:
    currentBar = ibar(...,0)
    if(currentBar<=(PrevBar+1)) return;

    i thinkthis works

Similar Threads

  1. Simple EA idea - previous candle high/low
    By gangsta1 in forum Ideas for expert advisors
    Replies: 4
    Last Post: 07-24-2009, 13:23
  2. Breakout EA previous high/low
    By treuzelen in forum Ideas for expert advisors
    Replies: 5
    Last Post: 05-05-2009, 21:21
  3. Add Close previous order when open new position
    By darkkiller in forum MQL programming
    Replies: 1
    Last Post: 03-21-2009, 05:55
  4. Closing Previous Orders in a Martingale Sequence
    By ixbone in forum MQL programming
    Replies: 33
    Last Post: 03-09-2009, 09:56
  5. Martingale with SL (closing previous orders)?
    By ixbone in forum MQL programming
    Replies: 1
    Last Post: 02-23-2009, 04:40

Tags for this Thread

simple, stop, stop ea, trading

Posting Permissions

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