Работа завершена
Техническое задание
The idea of the trading system is detailed below:
I would like to have each part of the code modifiable so I can change the setting(s) and number(s) for each please.
1. Instant market execution is performed when the specified RSI condition(s) align with the 5-minute RSI condition(s) - e.g. Execute sell order if 1-minute RSI and 5-minute RSI are both in overbought territory and vice versa for oversold territory. I would like the strategy to average into losing position(s) at a pre-determined pip gap as well as having a pip step exponent option. In addition, if the 1-minute RSI is in an overbought condition and the 5-minute RSI is not - do not execute any trade(s). Ensure the EA has instant execution according to the first 1-minute candle close in either the overbought or oversold condition (again - only if the 5-minute RSI is also in the same condition) and ignore consecutive 1-minute overbought or oversold candle(s) until next signal occur(s) at the desired pip step (e.g. 150 pip(s) away from initial trade).
2. Take profit is fixed at a certain number of pip(s) with the lock profit option available and trailing stop loss option available too - e.g. During a buy on XAUUSD, set the take profit to a fixed amount of pip(s) such as 1000 pip(s) for a buy and as soon as price moves 100 pip(s) in profit automatically trail the stop loss to the 100-pip price-level/mark to secure profit.
3. No stop loss function required - more detail is described below.
4. Create option(s) for lot size - e.g. initial/default lot size for initial position and lot size exponent option available for averaging - e.g. During the first trade within the desired timeframe/session and once there is a signal - the first trade should always be executed at the initial/default lot size. The lot size exponent is used to average a losing position.
5. Trading Time Filter - ensure the EA include(s) setting(s) which demonstrate the follow:
- Close All trades & Disable EA.
- Day To Close - e.g. Friday.
- Time To Close - e.g. 21:00.
- Restart EA After Friday Close - e.g. False.
- Day To Restart - e.g. Monday.
- Time To Restart - e.g. 01:00.
5. Custom Trading Time(s) - Have the ability to modify what session or timeframe to execute trade(s) within - e.g. Asia starting from 01:00 to 07:00 (GMT).
6. Equity Protector Setting - Continuing from '3. No Stop Loss Function Required'. This part is essentially the stop loss. The % equity is the stop loss and once the account breaches the desired % or loss/profit in currency, to disable the EA and restart at the desired timeframe/session.
- Include Maximum Loss % (Based on Equity) - e.g. 10% according to the account balance of £100,000.
- Max Daily Running Loss (In Currency).
- Profit Close % (Based on Equity).
- Restart EA After Close.
- Time of Restart.
7. RSI Setting(s) - Use RSI Criteria function and have the ability to modify each RSI condition according to each timeframe. The default for this EA would ideally be the 5-minute and 1-minute and only execute trade(s) when both condition(s) align as stated above.
Additional point - All trade(s) are executed and largely based on the 1-minute timeframe (with the addition of the 5-minute RSI).
I hope this makes sense - thank you in advance for taking the time to read and consider my request. I have attached below an idea for the layout of the code and parameter(s) that may be included as a guide. I have also attached a visual representation from trading view for additional information.