Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Hi there,
I am looking for an experienced developer to help automate my trading strategy via an expert advisor for MT4. I am open to new ideas and suggestions that may improve the EA. This EA is something I would like to utilise on live personal accounts and live proprietary firm accounts. I also have the source code that I use for TradingView that I utilise when manually trading this strategy. Once all things have been agreed upon between myself and the developer, I will provide further images for illustration purposes as well as MT5 screenshots of what it may look like. Each time the entry criteria is met, the EA must instantly execute the trade as opposed to having limit orders etc.
The strategy uses one indicator - Triangular Moving Average (TMA) Bands. I recently asked a question within the MQL5 forum regarding TMA Bands that do not repaint and the response was to use 'Non-Centred TMA Bands' - maybe this is useful for the EA? This is important as the entry involves touching the TMA Band in order to enter.
Strategy Description:
The TMA Bands act as an area where price may be overbought/oversold and therefore, where price may reverse. The strategy is simple:
- When price touches or reaches the price/level of the lower TMA Band = BUY.
- When price touches or reaches the price/level of the upper TMA Band = SELL.
- The EA must be able to average into losing positions via grid management settings detailed below. The important part of the strategy is to ensure the EA completes the first active position and its averaging positions before entering further positions (if that makes sense). Once all active positions have closed, make sure the EA waits for price to CLOSE within the TMA bands and wait until price touches the TMA Band again before entering a new position. I would like the initial position and its averaging positions to always close as 'one' - I am not sure if it is standard practice for each trade and its averaging trades to close together at the same time and as part of the same sequence in profit.
Settings Layout:
I would like the EA settings to be displayed exactly as below to make it easier to on the eye and easier to navigate please. All inputs are examples only:
—Time Management—
Time Management: True
Start Time: 00:00
End Time: 10:00
—Zone Management—
TMA: 100
ATR: 100
ATR-X: 5
—Lot Management—
Lot Size: 1
Lot Size Exponent: 1
—Grid Management—
PIP Step: 10
PIP Step Exponent: 1
Maximum Grid Management: 10
—Risk Management—
Take Profit: 50
Trailing Start: 25
Trailing Step: 5
—Money Management—
Maximum % Daily Risk: 5
Maximum % Risk Per Trade: 2.5
—Extra—
Zone Colour: Red
Magic Number: 1111
Maximum Slippage: 10
Information Panel: True
Additional information:
Time Management: Within these settings, I would like the EA to only enter trades within the 'Start Time' and 'End Time'. Allow the EA to always complete averaging trades until the sequence has closed and do not open any new positions outside of 'Start Time' and 'End Time'.
Zone Management: 'TMA' refers to TMA Period and 'ATR' refers to ATR Period. 'ATR-X' refers to ATR multiplier. These settings control the width of the TMA Bands.
Lot Management: 'Lot Size' refers to the lot size of the first position that touches the TMA Band and 'Lot Size Exponent' is a multiplier and refers to the averaging trades.
Grid Management: 'PIP Step' will control the distance in PIPs from the first position and 'PIP Step Exponent' is a multiplier and will control the distance between the averaging trades. 'Maximum Grid Management' will control how many times the EA averages into losing positions. Example: if 'Maximum Grid Management' is set to 10. The EA should not open more than 10 trades including the initial position.
Risk Management: 'Take Profit' is for each initial active position in order to capitalise on volatile moves and to secure profits. The 'Trailing Start' feature is to ensure that the EA secures profits by moving stop loss into profit and lastly, the 'Trailing Step' is used to trail behind current price and is used to capitalise on large impulsive moves in profit.
Money Management: 'Maximum % Daily Risk' refers to the percentage loss the account should reach before immediately closing all trades and not trading for the rest of the trading day. If the account reaches the Maximum % Daily Risk, do not trade for the rest of that trading day, wait until the next trading day. 'Maximum % Risk Per Trade' refers to the percentage risk per trade including its averaging positions. Example: If the EA opens 5 positions (1st position touching the TMA Band and 4 averaging positions) and the account balance reaches the 'Maximum % Risk Per Trade', immediately close all active positions. Using the example above: Maximum % Daily Risk: 5 and Maximum % Risk Per Trade: 2.5 - If the EA opens a trade and it averages in, and the account balance reaches 2.5% in loss, immediately close all active positions and wait until the entry criteria is met. If the same thing happens and the account balance goes into another 2.5% loss, immediately close all active positions and wait until the next trading day as this would breach the 5% Maximum % Daily Risk.
Extra:
I would also like the TMA Bands to be displayed on the chart for visual purposes if possible and to be able to change the colour in the 'Extra' settings - this should be displayed as 'Zone Colour'. 'Magic Number' is to make the account unique. Maximum slippage is to control slippage. Lastly, I would like an 'Information Panel' if possible which will display the following (see below) and reset each day/week according to profit and loss (and have the option to not display this on the chart):
—Information Panel—
Account Balance: £10000
Daily Profit: £500
Weekly Profit: £2000
Running Profit/Loss: -£150
Thank you all for taking the time to read and consider my request and if you have any questions, please ask away!