Работа завершена
Техническое задание
Good day.
I need a expert based on the following criteria.
Overview: I have two Moving averages, longer period MA for overall trend and shorter period MA for entry points. When the Shorter ma is above the longer MA, buy orders should be triggered when price crosses from bellow the short MA to above the Short MA and the opposite for sell orders. When the short MA is bellow the longer MA , sell orders should be entered when price crosses from above the short MA to bellow the short MA. **** Important**** Only one order must be open at a time. So if price breaks the short MA and the order enters, another order should not open until the first order has closed even if price drops below the short MA and breaks above the short MA again in a buy example. If the first order has closed, only then can another order open.
Details on this will be explained bellow.
Variables:
- Trading Hours //Start en end hours every day.
- TP
- SL
- Trail
- Max Slippage
- Lot Size
- # Moving Averages //This should be a drop down menu with "1" or "2" as options. When 1 is selected only the short MA will be
used for entering orders, the long MA will be ignored. All orders (Buy and Sell) will open each time price crosses the short MA. Same
applies for this option, only one order must be open at a time. Once the first order has closed, another order can open when price crosses
the short Moving average.
- Short MA // Short moving average period
- Short MA Mode // Drop down menu with "Simple" and "EMA" as options
- Short MA Price // Drop Down Menu with "Open" or "Close" as option. This is the "Apply to" option of the indicator.
- Long MA // Long moving average period
- Long MA Mode // Drop down menu with "Simple" and "Ema" as options.
- Long MA Price // Drop down menu with "open" and "close"
- Trigger Bar // "0" = current bar so it should not wait for the bar
to close before entering the orders. "1" EA must wait for the close of the first bar before entering. "2" EA should wait for the close of the
2nd bar before entering an order.
- Price Past MA // Only applicable if the "Trigger Bar" = 0. This is how many points
price must move past the short MA before entering an order.
- Max Price Distance // Only applicable if the "Trigger Bar" is set to > 0. This is the max distance price can be away from the short
MA and still be allowed to enter an order. This is to prevent orders from entering to far away form the moving average in high volatility.
So if the trigger bar closes at a price that's further away form the short MA than specified in this variable, the EA should not be allowed
to enter an order. Price should first move back trough the short MA and up trough the short MA again in a BUY example to retest the
statement. If a statement fails , price must first move bellow the short MA and back up thought it again to retest the statement.
- Martingale // Drop down menu with "True" and "False" options. This option turns martingale on and off.
- Max MG Step Mode // Drop down menu with " Stop EA" and "Reset Lot" options. Once the Max steps are reached, the EA should either stop
completely (Disable) until manually reset, or it should reset the lot size to default as set in the "Lot Size" variable above and start
the step process over form the default lot size until max step is reached again. On the first successful order after a step, lots sizes
should return to the default value as set above in the "Lot Size" variable and restart the step counter.
- Max MG Steps // Number of steps before the "Max MG Step Mode" activates.
- MG Step Size // This states how big the martingale steps should be.
Conventionally martingale doubles the lot size with each failed order, but i want to specify how big the step should be. If set to 1.1 , its
should only increase the lot size by 1.1 times the previous lot size. If set to 2, it should double the previous lot size. If set to 2.4 , it
should increase by 2.4 times the previous lot size. The numbers used above is only as example. I will enter a number as needed. The EA
should round off to the closest available lot size in the case where the size is between available lot sizes.
Side Notes:
Applicants of this job should have fair English communication skills.
If anything is unclear above, PLEASE ASK.
Thanks