Работа завершена
Техническое задание
Please check the picture to understand the EA strategy.
INPUT:
Entry_type: manual/automatic
Lot size:
pending_distance_pips:
lot_size_multiplier
maximum_buy_trades
Maximum_sell_trades
Enable trading time period; Enable/Disable (for automatic entry type only)
Trade start hour
Trade end hour
Enable_avarage_pending_orders_entry: enable/disable
Maximum_loss: (amount)
Profit_Close_Total_Lot:
Profit_Close_Total_Amount:
STRATEGY:
-EA opens selected quantities of sell and buy orders (maximum_buy_trades
Maximum_sell_trades) . And multiplies the opened lot by a selected Lot size (in input lot_size_multiplier) and opens Buy stops and Sell stops from a selected distance of the opened trades`s entry point. Pending_distance_pips in input will stand for the distance. and so on.. based on martingale strategy..
Explanation: If we open Buy order, EA multiplies the lot by a selected Lot size (in input lot_size_multiplier) and opens Sell Stop pending order at selected distance (pending_distance_pip) from the entry point. If we open Sell order, EA multiplies the lot by a selected Lot size (in input lot_size_multiplier) and opens Buyl Stop pending order at selected distance (pending_distance_pip)
FUNCTIONS:
1. Avarage_pending_orders_entry: EA must modify and make same pending entry point for pending Sell Stops ,EA must modify and make same pending entry point for pending Buy Stops
-explanation on 1 and 2: if we have 3 open Buy orders , then we also have 3 Sell Stops which are executed automatically. Due to high volatility Sell stops entries are executed in different entry points. EA must modify all the pending order entry points on average and make them all the same entry point.
3. Entry_types: should be automatic and manual.
4. In both entry types EA should open Buy orders, Sell orders, Pending Buy stops and pending Sell stops all in once at selected quantity and size
5. Maximum_loss: should be executed by using Multiple_Close_By instrument in MT4 (enabled for Automatic Entry type only)
6. Profit_Close_Total should be done by using Multiple_Close_By instrument in MT4.
Profit_close_total function should be enabled for Automatic Entry type only
Profit_close_total function Explanation:
if market goes bearish and Sell Stops are executed, now we have
1 lot buy
1 lot buy
1 lot sell
1 lot sell
2 lots sell
2 lots sell
Total buy lots 2
Total sell lots 6
which means we have a total of 4 SELL lots.
in this case Profit_Close_Total should be executed when the profit reaches $1600.
if one direction (BUY or SELL) total lots are 1 lot, then Profit_close_total should be executed at $400
for example:
if we had
0.5 lot Sell
0.5 lot Buy
1 lots Buy
Means now we have a total 1 lot open buy order. And Profit_close_total executes once the profit reached $400
Profit_Close_total_lot and Profit_close_total_amount more examples:
Profit_Close_Total_Lot = 1;
Profit_Close_Total_Amount = $400;
If the total lots is '1' -> in this case the EA will close trades as soon as '(1 / 1) * $400 = $400.00 ' is reached.
If the total lots is '1.5' -> in this case the EA will close trades as soon as '(1.5 / 1) * $400 = $600.00' is reached.
Profit_Close_Total_Lot = 1.2;
Profit_Close_Total_Amount = $500;
If the total lots is '1' -> in this case the EA will close trades as soon as '(1 / 1.2) * $500 = $416.66' is reached.
If the total lots is '2.5' -> in this case the EA will close trades as soon as '(2.5 / 1.2) * $500 = $1041.66' is reached.
NOTE. Profit_Close_total function should be adjustable in input. Where we can change BUY or SELL Profit_close_total. for example. 0.09, 1.20 and so on
7. Profit_Close_Total_Amount: also has to be changeable in input
8. As soon as any trade closed by using Multiple Close By instrument (automatic entry or manual entry) all the remaining open and pending orders has to be closed
9. Automatic Entry Type: After all trades are closed, EA executes new trade orders. This does not apply for Manual entry type
10. Manual Entry Type. EA should execute Trades and Pending trades as soon as we click on Buy or Sell
For example:
Input parameters:
Lot size: 0.5
Lot_size_multiplier: 2
Maximum_buy_trades: 3
Maximum_sell_trades: 3
If we choose lot size 0.03 on MT4 live and click on Buy or Sell doesnt matter. EA should open:
3 Buy trades at 0.03
3 Sell Stops at 0.06
3 Sell trades at 0.03
3 Buy Stops at 0.06
PLEASE READ THE ENTIRE STRATEGY AND FUCTIONS BEFORE TELLING ME YOU CAN DO IT. 3 DEVELOPERS TOOK THE ORDER AND COULD NOT FINISHED THE JOB AND ENDED UP IN CANCELLING THE ORDER. YOU MUST READ AND UNDERSTAND THE STRATEGY AND FUCTIONS BEFORE TELLLING ME YOU CAN DO IT! PLEASE AND THANK YOU