Работа завершена
Техническое задание
I have an EA that works like intended but I would like to add additionnal functionnality/flexibility to it.
Here is the initial specs of the EA and the changes that need to be done. See section EA VERSION 1.2 for list on things todo
https://docs.google.com/document/d/1QJNozB2n_4o-I-AzrV_-TPNuuj3UaOJnAp4ZAei2Bjo/edit?usp=sharing
things to do:
New Features to implement
-
Initial StopLoss/TakeProfit in PIP/Percentage of symbol market price:
Right now TheRE is no initial StopLoss or Takeprofit. SL is instead updated following buy/sell Logic. We want to have an initial SL/TP as extra layer of protection -
If no value for takeProfit disable this feature
-
StopLloss can be overwritten by EA current logic. The initialStopLoss is meant as an extra layer of protection against EA failure
-
SL/TP can be configured as PIPS or percentage of symbol price at moment of the order.
Parameter Name | Description | Possible values |
InitialTakeProfit | Initial TakeProfit on new pending orders | Null, 0.01,1,10,etc... |
InitialTakeProfitMode | Switch way “InitialTakeProfit” is calculated | pip/percentage |
InitialStopLoss | Initial StopLoss on new pending orders | Null, 0.01,1,10,etc... |
InitialStopLossMode | Switch way “InitialStopLoss” is calculated | pip/percentage |
-
Option to use the buffer setting as PIPS (like right now) or percentage of symbol market price:
-
Right now the buffers are in pips. Use an option to change the logic to use percentage of symbol price at the moment of the trade.
Parameter Name | Description | Possible values |
MainBufferMode | Switch way “MainBufferMode” is calculated | pip/percentage |
-
Option to have Lot size calculated based risk
-
Right now we use “MainLotSize” for order creation. The new option will allow to automatically set the lot size dynamically based on a percentage of balance we want to risk. Here is an explanation of the logic to implement:
https://www.babypips.com/learn/forex/calculating-position-sizes
Ex.: 1% risk on a balance of 1000$ based on an initial Stoploss(based on Param: InitialStopLoss) of 200pips..
Parameter Name | Description | Possible values |
MainLotSizeMode | Switch way “MainLotSizeMode” is calculated | Lot/percentage |
-
Improve business hour logic
-
Right now the EA activates only on New candle so on a daily chart will activate once per day. We need to Change business hour logic so that it activate once per day starting at the business hour only. Ex.: The market starts at 00h00 but the business hour is set at 09h00 then the main logic will activate at 9am instead of midnight. Right now in this setup the EA never activates
-
business day logic
-
Specify the days to trade. Disable EA otherwise
Parameter Name | Description | Possible values |
BusinesDay | Days to trade | monday,tuesday,saturday,sunday,etc.. |
-
Improve pending order.
Right now we use pending orders to open and close transaction. This makes the EA latency tolerant but in rare cases it will fail because the pending order is to close of a stoplevel. -
If pending order fails because within stoplevel close the order manually right now.
-
Make sure the opposite order still opens properly like it is supposed to.
-
Buy/sell Alternate signal.
-
Enable a new parameter to modify the buy/sell signal of the EA.
-
Option 1: Current logic:
Sell signal: T(1) OpenPrice > T(1) ClosePrice AND T(2) OpenPrice < T(2) ClosePrice -
Option 2: alternative logic:
Sell signal: T(1) OpenPrice > T(1) ClosePrice
Parameter Name | Description | Possible values |
OrderLogic | Flip between logic 1 or 2 | 1,2 |