Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hi i need simple ea for mt5 with usage of moving avarge (From 1min timeframe)with high/low (calculated by rma) and closed position based on ADX (calculated by ma 33) (From 5min timeframe)
Opening position must be based only on cross of moving averge 144slow and 33fast (that must by calculated by rma) on 1 min timeframe
Exactly like in this indicator on trading view or mt5
trading view link in priv (open source code)
https://mega.nz/file/1ptwlDoK# Cp-_ E21EYr7VR7mzfFeJ8Rk00LDlglr1T- JFc7-XW6k
They needs to look exactly LIKE this
To open long position this must cross:
Short high with long low
Or
short low with long low
To open short position this must cross:
Short low with long high
Or
Short high with long high
To close position we will need to use ADX calculated on ma 33 From 5min timeframe or when ma cross
adx thershold 0
adx lenght 14
maLenght 33
When in long position must be closed on first 5min adx red candle
When in short position must be closed on first 5min adx green candle
This must look exacly like this Link to mt5 adx and adx tradnig viwew
https://files.fm/u/x4a8bq6qb
trading view link in priv
in short:
the bot opens a position on a 1-minute moving average crossover and closes it when the first opposing 5-minute candle appears on the ADX indicator.
Additions if possible:
1) i also would like to have everything shown on chart moving avarge + adx (on candles) to be able to look at it
2) time when bot is working
For example bot turn on on 9:00 and turns off on 22:00
3) option to set lot size
4) custom settings so i can change timeframe from 1min to diffrent
picture that shows how it should work
https://imgur.com/a/yNG1ezU
thank you,