Termos de Referência
I need a simple hedge EA. I know you guys can make this easily.
PLEASE MAKE SURE YOU CAN DO THIS JOB WITHIN 3 DAYS OR SO. IF YOU CANT DO THIS JOB, DONT APPLY.
**ALL PENDING ORDERS AND BUY/SELL STOP SHOULD BE HIDDEN until the real trade is executed. This means that the broker should not be able to see the pending orders or buy/sell stop in advance."
For example: buy mode: Below the current price should be pending orders. Above the current price should be buy stop. If I want to buy EURUSD with the current price of 1.35. BUY_UPPER_SR = 1.40, BUY_LOWER_SR = 1.30. If I set my grid to 20. this means that there will be 10 pending orders below the current trade until 1.30 and 10 buy stops above the current price until 1.40. If the price hits the BUY_UPPER_SR level then all the trades closes in profit. SEE ATTACHMENT FOR EXAMPLE
EA settings
1. Magic number.
2. Enable ECN broker true/false. I have an ECN broker so this should be implemented.
Trading Settings
3. Manual Lotsize: True/false. If true = I can type in lotsize of choosing. If false: this means that Ratio (see next line) will be on.
4. Ratio. This means if you have an account balance of 10,000 dollars and you want to risk a ratio of 1:3. This means: 10,000:30,000 dollars. 30,000 = 0.3 lots. If you have a grid of 10. every grid will be 0.03 lots from the upper until the lower SR ( this is explained below).
5. Lotsize
6. Enable Buy: true/false.
7. Turn off Buystop: true/false. if true, no buystop will be taken.
8. Enable Sell: true/false.
9. Turn off Sell stop: true/false. if true, no sellstop will be taken.
There should be SR upper and SR lower for buy and sell separate. the hedge will be between these two lines. these two lines should be adjusted in thickness and colour.
Buy setting:
For BUY option:
10. BUY_UPPER_SR = upper sr . if the price hits this level all trades closes. (for example EURUSD 1.45)
11. BUY_LOWER_SR = lower sr. if the price hits this level. no trades will be taken. (for example EURUSD 1.30)
12. Buy Grid Size = This is the grid size. This means for example: If I want to buy EURUSD with the current price of 1.35. BUY_UPPER_SR = 1.40, BUY_LOWER_SR = 1.30. If I set my grid to 20. this means that there will be 10 pending orders below the current trade until 1.30 and 10 buy stops above the current price until 1.40.
13. Buy_SR_Color (color of SR lines) (default Steelblue)
14. Buy_SR_Width
15. Buy_SR_Style
16. Enable_Thick_Buy_Lines: True/false (These are the grid lines)
17. Buy_thick_Color (default Powderblue)
18. Buy_thick_Width
19. Buy_thick_Style
20. Buy_Grid multiplier: true/false: All the pending orders can increase in lotsize in x%. For example: I take a trade with 0.03 lots with 5 pending orders until the lower SR level. If I set my Lot multiplier by 25%: "pending order 1" will be: 1.25*0.03= 0.04. "pending order 2" is: 0.04*1.25= 0.05. "pending order 3" is: 0.05*1.25 = 0.06 lots. "pending order 4" is: 0.06*1.25 = 0.08 lots. etc.... THIS ONLY EMPLIES FOR THE PENDING ORDERS. NOT THE BUY/SELL STOP.
21. Buy_Lotmultiplier (%):
Sell Setting:
if a trade is taken: Above the current price should be pending orders. below the current price should be sell stop. If the price hits the SELL_LOWER_SR level then all the trades closes in profit.
For SELL option:
22. SELL_UPPER_SR = upper sr. if the price hits this level. nothing happens. no trades will be taken etc.
23. SELL_LOWER_SR = lower sr. if the price hits this level.. all trades closes in profit.
24. Sell Grid Size = This is the grid size
25. Sell_SR_Color (color of SR lines) (default: red)
26. Sell_SR_Width
27. Sell_SR_Style
28. Enable_Thick_Sell_Lines: True/false (these are the grid lines)
29. Sell_thick_Color (default: Tomato)
30. Sell_thick_Width
31. Sell_thick_Style
32. Sell_Grid multiplier: true/false
33. Sell_ Lotmultiplier (%):
EA Management
34. Pause_ALL_Buy (Pauses all pending and Buy stop orders)
35. Pause_pending_Buy (This pauses all Buy pending orders)
36. Pause_Buystop (This pauses all Buystop orders)
37. Pause_ALL_Sell (Pauses all pending and sell stop orders)
38. Pause_pending_sell (This pauses all Sell pending orders)
39. Pause_Sellstop (This pauses all sellstop orders)
40. Close_All_Buy (Closes all sell trades)
41. Close_All_Sell (Closes all sell trades)