System based on pending orders

 

Hello.So the system I want to make opens two pending orders 1 buy stop and one sell stop. When price reaches to one of the orders and it becomes a market order the EA doesn't open another stop until the position is closed for the day. In a scenario whereby the trade is carried over to the next day the EA doesn't open the orders but I want to open new orders. please help

 

Forum on trading, automated trading systems and testing trading strategies

Please fix this indicator or EA

Sergey Golubev, 2017.03.24 07:23

And this is my other suggestion (which came from tsd 2010 and from tsd 2008):

----------------

Just to remind:

Coders (any coder) are coding for free:

  • if it is interesting for them personally, or
  • if it is interesting for many members of this forum.

----------------

and Freelance section of the forum should be used in most of the cases.


---------------

... or upload source code and the coders may help to fix it.

 
Kekeletso Mofokeng: I want to make opens two pending orders 1 buy stop and one sell stop. When price reaches to one of the orders and it becomes a market order the EA doesn't open another stop

There is no need to create pending orders in code.

  1. The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)

    Don't worry about it unless you're scalping M1 or trading news.

  2. Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.