Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hi,
OPEN ORDERS
MAIN CONDITIONS only after an inside bar place Buy stop order at x pips (parameter i want to optimize) from the high of the inside bar. condition to open: only if the low of the mother bar is not further than y pips from the stop order. Sell stop order viceversa (low of the inside bar) same logic.
Stop loss k pips fewer than low of mother bar in case of buy. Same opposit logic for sell.
2 Strategies (i'd like a flag to use both or only one of them) based on exponential average (value kk to optimize).
Trend strategy (keep the main conditions above but set stop orders buy only if exp average < low mother bar, set sell stop order only if exp average > high mother bar)
Conutertrend (keep the main conditions above but set stop orders buy only if exp average > or = high mother bar, set sell stop order only if exp average < or = low mother bar)
Take profit options to choose:
-z pips
-or R=R (same pips distance from stop loss)
-traling stop after xx pips of yy pips step with stop loss automatically moved to breakeven after first trailing stop trigger (xx)
I want to separate take profit options depending on different strategy:
-TAKE PROFIT Trend Strategy --> z pips, R=R, traling stop
-TAKE PROFIT Countertrend Strategy --> z pips, R=R, traling stop
A martingale option yes/no which recover completely the loss of the previous orders and manage the lots accordingly
Other options:
-set MAX SRPEAD to open
-set MAX SLIPPAGE to open
-It should have both a fixed lot option and money management based on capital %
-Option to set Maximum lots per order.
-Magic Number and comment input that can be changed.
-option to open x identical trades instead of 1 single trade (ex= fix lot 1, 4 trades means that after the trigger i open 4 trades with 1 lot instead of 1 trade with 4 lots)
-stop after % dd
-stop after daily percentage dd %
-Hours of trading, i'd like to have an option to set start and stop hours if needed
-Option to stop / close all orders on Friday at a set hour/time (i don't want to have open orders during the weekend)
-Option to not open a new trade on Friday after a set hour/time .
-Option to stop / close all orders at a set hour/time (i d'like to choose to open or have open orders during rollover time or not)
-Option to not open a new trade after a set hour/time .