Termos de Referência
The idea if the EA is to hedge and potentially profit from volatitly during time frames of high impact news, or other market moving events, using trailing stops coupled with positive progression.
To enter trades, the EA simply creates both a buy and sell market order simultanously at the start of a user defined day of the week and time frame. Lot size will be fixed or volume based as a percentage of the accountc balance. At the same time the BUY and SELL positions are entered into the EA will place limit orders correponding to both using the same value used to calculate the trail stops from either ATR or a simple TS multiplier (positive progression). For trailing stops, the EA will use either a user defined percentage of price movement, or an ATR (average true range) which is also the value that will apply to both the BUY and SELL successive limit orders as mentioned earlier. The step value of the TS will be the lowest possible pip/decimal of the instrument.
When either the long or short position entered into hits the Trailstop value obviously the order will be closed and the opposite position will remain open. The corersponding limit order for the successive BUY or SELL limit order of the closed position will also need to be canceled however.
If a succesive additional position is entered because the instrument's price reached the limit order price, the EA will immediately place the next limit order based on the same lot size/type chosen for the original order. The price of these continoulsy successive limit orders will be calculated based on either the current price plus current ATR value at that time the order is placed, or the current price plus the simple trail stop price multiplier. In other words, the values to calculate the trailing stops and the limit orders will be the same. This successive progression will continue untill the trail stop loss is triggered. Once the TS is triggered, the EA will immediately start from new and enter similtanous market BUY and SELL orders again. This process will continue untill the Calendar/time frame the EA is supposed to be active in comes to an end. This means the EA will always have positions open during the time frames specified by the user. When the time frame comes to an end however, whatever position is open should not be closed. Instead, the position will remail open (and the succesive positive progression will continue) untill the TS is triggered.
The EA will have the following user inputs:
1. Lot size type (drop down menu to chose FIXED LOTS or VOLUME BASED)
2. Fixed Lots (variable with two decimals)
3. Volume Based Multiplier (Percent of account balance with one decimal)
4. Trail Stop Type (drop down menu to chose ATR or SIMPLE)
4. Average True Range Period (drop down menu to choose 1 to 14. Default will be 14)
5. ATR Trailstop Price Period (drop down menu to choose time frames M1,M5,M15,M30,H1 or H4)
6. Simple Trail Stop Price Multiplier (Percent variable to with 2 decimals)
7. Weekly Trade Calendar with all days of the week (Mon to Sun)
8. Hourly START and END Trade variable from 0 to 24 for each day
9. Minute START and END Trade Variable from 0 to 60 for each hour.
Upon agreement on scope and price I will provide examples of how the strategy is supposed to work in an effort to make it as clear as possible.
As an add-on, please also quote separately whether you can develop the EA with OpenCL in order to be able to backtest using GPUs. This isn't absolutely necessary but it would be nice to have.
Thanks in advace.
AG