Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
hi.
i want to have an expert that depend on parabolic sar indicator.
buy and sell based on psar signals but when predetermined price exceeded.
Expert will open orders based on psar indicator.
Expert will draw arrow(green arrow , adjustable size and color) when indicator give buy signal.
Expert will draw red arrow ( red arrow, adjustable size and color) when indicator give sell signal.
Expert will open buy or sell on every signal(arrow) when conditions met.
Conditions:
Will open buy if price exceeded predetermined price(level) which is above current price and indicator give buy signal.
Vice versa for sell orders.
Explanation:
current price is 1.1100, I am waiting for price to exceed 1.1200(level-1) to start buy when psar give buy signal , if price return under 1.1200 expert will not open signals, if price exceed 1.1200 again expert will start open positions again..
When price reach below 1.1000 (level-2) expert will open sell position when psar give sell signal.
Expert will contain following parameters: (adjustable)
Magic number
Maximum number orders: 10
Psar values:
Step : 0.02
Maximum: 0.2
Slippage: 3
Data for level-1 :
Activation price-1:
Number of positions-1:
Direction-1: buy/sell
Lotsize-1: 0.1
Take profit -1: (number e.g: 1.1500)
Stoploss-1: 10 pips
Breakeven pips-1: 999 pips
Data for level-2:
Same as (data for level-1)
Note:
1-When any level is activated, expert will write on chart : 1.1200 is activated.
2- it is important for expert to execute (ALL) signals that met conditions.
( some expert for unknown reasons ignore some signals that met conditions and execute 2nd or third signal )
3- expert for MT4 and it will be exe and MQ4 files.