Opening at price and alternating orders
Results 1 to 1 of 1
 1 Attachment(s)    

Thread: Opening at price and alternating orders

  1. #1
    Junior Member
    Join Date
    Dec 2009

    Default Opening at price and alternating orders

    Hi all,

    I'm looking to alternate buy orders and sell orders.

    What I mean is;

    First open by mean of an indicator is a buy (could be a sell of course) and then a buy order is open, if price bounce down to a level under the open price from the buy order, a sell order will open, but if price goes up again no new open buy should happen. Here a new buy order should only happen when price bounces back from the sell order. All the same if a sell order is the first to happen.

    Other issue is the multiple opening of orders. I think that is a need to include a limit after the order the order opening but use the limit that is marked that will prevent the next order to open. Here I suppose that the problem comes from the condition the orders are open, but I'm not sure.

    For last, this EA is intended to close all open orders when an order is closed by mean of TrailingStop. That's works fine in Tester, but when in Demo just the order closed by TrailingStop is closed. Any clue why is this happen ?

    I've tried to get that with the following attached code but doesn't work.

    I really appreciate if one could help me here.

    best regards

    Attached Files Attached Files

Similar Threads

  1. EA controlling only bar opening
    By dr18 in forum Expert advisors backtesting
    Replies: 0
    Last Post: 03-12-2013, 16:07
  2. Open orders on current price plus x pips
    By luisneves in forum MQL programming
    Replies: 5
    Last Post: 12-07-2012, 12:33
  3. Replies: 0
    Last Post: 09-14-2010, 13:14
  4. The Alternating M A (E A Request)
    By JXBlack in forum Ideas for expert advisors
    Replies: 3
    Last Post: 07-14-2010, 15:39
  5. Opening 2 orders at the same time
    By szmvscla in forum MQL programming
    Replies: 5
    Last Post: 11-06-2009, 13:31

Tags for this Thread

demo, indicator, level, limit, trailingstop

Posting Permissions

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

Opening at price and alternating orders