仕事が完了した
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Hi Coders,
The idea is simple, make an EA to open a pending order on every previous bar high/low.
So say the direction is a buying type the EA, on every bar open price, should put a pending order on each previous bar high. In that case the EA must only open buy orders.
Same goes if the direction was to be a selling type.
Inputs are:
- Bar timeframe (the timeframe for analysis, eg. m5, h1, d1 and etc.)
- Trade Direction (buying type or sellling type)
- Lots (the lots for each trade)
- overall % profit to close EA (positive % of initial balance, that if reached EA should close all trades and stop)
- pverall % lose to close EA (negative % of initial balance, that if reached EA should close all trades and stop)
- price to close EA (specific price, if reached the EA should close all trades and stop)
Notes:
On the last 3 conditions, the EA must execute the first one that reaches.
The EA will keep open all of the trades until one of the conditions is met.
None of the trades have tp or sl.
If the EA is on buying type, only put buy stop orders, if it is on selling type only put sell stop orders.
Any extra info let me know.