Работа завершена
Техническое задание
The main parts of the robot (EA)
• One moving average
• Rules for opening and closing a buy Position
• Rules for opening and closing a sell position
• Trailing stop loss
• Fixed Take profit
• Trading time frame
• Trading volume
• Security
Moving average: MA period, need an option for customizable MA period / MA method is simple by default and there is no need to be changeable / MA apply to option, most set close to price by default and there is no need to be changeable / MA color is yellow by default and there is no need to be changeable.
Rules for opening and closing a buy Position: If the market price crosses moving average the amount of (chosen unit or pipette) upwards, EA is allowed to open a buy position. And when the trailing stop is touched, the buy position close and at the same price and time, sell position must open. Of course, regardless of the candle closing.
Rules for opening and closing a sell position: If the market price crosses moving average the amount of (chosen unit or pipette) downwards, EA is allowed to open a sell position. And when the trailing stop is touched, the sell position close and at the same price and time, buy position must open. Of course, regardless of the candle closing.
Trailing Stop Loss: It is based on the distance from the moving average (the unit or pipette number of trailing stop is arbitrary). For example: In a buy position, when the price of 400 units or pipette crosses the moving average downwards, the buy position close, and at the same price and time, the sell position should be opened.
Fixed Take profit: its unit (pipette) is customizable. It must has true and false options. If the EA fixed take profit option set to false, positions haven't take profit and the EA close positions by touching the trailing stop loss. But If the EA fixed take profit option set to true, for example: we specified 800 units (pipette) as the fixed take profit and it touched, the EA close position and it’s not allowed to open next position, the EA must wait for the market price to touch MA again. When the MA is touched again, the EA is allowed to open a position based on the Rules for opening and closing a buy Position or Rules for opening and closing a sell position (If the market price crosses moving average the amount of (chosen unit or pipette) upwards, EA is allowed to open a buy position, or If the market price crosses moving average the amount of (chosen unit or pipette) downwards, EA is allowed to open a sell position). When a gap appears in the price chart and market price moves away from the moving average more than predetermined distance, in this case the EA follows the fixed stop loss rules and wait for the market price to touch moving average again and cross the moving average with the predetermined pipette size to open new position.
Trading time frame: The EA must has the option to choose the trading time frame. When the trading time frame is introduced to the EA, the EA memorize it. By changing the time frame on the chart, the EA is not allowed to change trading time frame until I change the trading time frame through in the EA option.
Trading volume: The EA must has the option to choose trading volume. The volume starts from 0.01 lot.
Security: A section in the source code is needed so that the EA is allowed to operate only in the account that is introduced. / A true and false option is also needed to show and hide the moving average indicator on the chart.
Important Notice: The EA must run fast and smooth and use low Ram. All the executable part of the source code should be explained with comments. if the EA needs upgrade in the future, so the programmer can easily understand the parts of the source code.