Работа завершена
Техническое задание
EA Input Settings:
Stoploss = (0 should disable the function)
Take Profit = (0 should disable the function)
Lot Size List = The last lot size in this list should be considered as the Default Lot Size for the remaining Future Orders. Once a Future Order gets deleted it should use the same Lot Size List number for the next day till it gets activated.
Breakeven Function = (Yes/No) This function will decide when to move the TP to Breakeven for the Initial Order and shouldn't be used on Future Orders in that Basket Direction (0 should disable the function)
Set Breakeven Plus = This is the pip amount which will decide how many pips to put on top of the Initial Order entry price (0 means entry price)
Auto Close Percent
Auto Close Function = (Yes/No) This function should automatically Close All Orders in the Basket once the imputed Profit Percentage has been reached, Formula [(Account Balance/100 * Auto Close Percent) + Account Balance] this result should equal the Account Equity.
Custom Trend Filter = 1) Bullish Trend, 2) Bearish Trend 3) Disable Custom Trend
Custom Trend Barrier = (0 should disable the function)
Distance Restriction = (0 should disable the function)
Entry Horizontal Lines = Yes/No (When enabled it will place a Horizontal Line on the Order Price)
Stoploss Horizontal Lines = Yes/No (When enabled it will place a Horizontal Line on the Stoploss Level)
Take Profit Horizontal Lines = Yes/No (When enabled it will place a Horizontal Line on the Take Profit Level)
Stoploss Horizontal Line Width
Stoploss Horizontal Line Style
Stoploss Horizontal Line Colour
Take Profit Horizontal Line Width
Take Profit Horizontal Line Style
Take Profit Horizontal Line Colour
Initial Order Horizontal Line Width
Initial Order Horizontal Line Style
Initial Order Horizontal Line Colour
=================================================================================================================
EA Condition Rules:
1) The EA should check for any readjustments made to the EA Input Settings, and adjust accordingly.
2) This means that if there were any sort of changes made to the Input Setting while having active orders open, these changes need be made onto the existing Orders.
3) Whenever the Initial Order hits its intended TP or SL then the Horizontal Lines should be removed from the chart.
4) Whenever an Order is closed manually then the Horizontal Lines should be removed from the chart.
5) Plus please make the Order Comments like the following:
Initial Order
Future Order 1
Future Order 2
Future Order 3
Future Order 4 and so on...
=================================================================================================================
Trend Filter Rules:
1) If the Custom Trend has been set on a "Bullish Trend", then the EA should only place Buy Stops.
2) If the Custom Trend has been set on a "Bearish Trend", then the EA should only place Sell Stops.
3) If the Custom Trend has been set on "Disable Custom Trend", the the EA should not place any trades till it becomes enabled.
4) The Custom Trend Barrier should perform like the following, if i set the Trend to Bearish and the Barrier has been set to 1.3000 this means that
no orders should be placed below 1.3000 only above it. If the Trend was Bullish then this means that no orders should be placed above 1.3000 only below it.
=================================================================================================================
Entry Rules:
1) The EA will now check to see if the previous Daily Candles High or Low has been broken.
2) If it has been broken in the Direction of the Trend then the EA will need to wait for the next Daily Candle to close.
3) However if it hasn't then the EA places a Buy Stop or a Sell Stop at the Daily Candles High or Low, but solely dependent on the Trend Direction.
=================================================================================================================
Exit Rules:
1) If the Pending Order has not been activated then the EA will need to remove the Order at the close of the Daily Candle, and start rechecking for a new entry conditions.
2) Ok now lets say that the Initial Order has not been closed meaning that its still has not hit its intended TP level, so the EA will now only look for Future Orders in the direction of the Initial Order till it actually closes.
3) All Future Orders should have their TP and SL now set at the same price level as the Initial Order, this means that if the Initial Orders TP and SL is at 1.3000 all future order should use these same Price Levels for their own TP and SL.
4) All Future Buy Orders cannot have their Order Price above the Initial Orders entry price only below it.
5) All Future Sell Orders cannot have their Order Price below the Initial Orders entry price only above it.
6) If the Distance Restriction has been set then any Future Orders cannot be within this Pip Distance,
so for example if i set the function to 20 and our previous Buy Order was at 1.3000 then the EA cannot place the next order anywhere between 1.3000 and 1.2980.
However if the previous order was a Sell Order then the EA shouldn't be able to place the next order anywhere between 1.3000 and 1.3020.
7) Whenever a Future Order is placed by the EA, the previous one should be moved to Breakeven Plus.
=================================================================================================================