指定
The framework of the EA works fine however there are 2 bugs that need fixing within the trade cycle management and Take Profit - money management functions:
Both bug fix's must work correctly in accordance with the Main setting inputs, Pending order inputs and Time to trade inputs. As stated earlier the overall EA functionality works OK however there are errors to fix as explained further...
I will need time to forward test the functionality before I can sign it off as the EA is designed for 15 minute time frame, the forward testing should take no longer than a week, after the final prototype is received.
The take profit function works in that it sets correctly on live trades, however if I set the Take Profit input to 0 and or an unreachable target say 100000 pips when back testing and or optimising it effects the other money management functions. Where the trailing stop functions do not work correctly. So as part of this job the developer will need to ensure the Take Profit functions works in tandem with other money management function for back testing, optimising and on forward/live testing.
The following text explains how the lot sizing functionality should work.
Lot size of first StandardCycleTrade to be set at n%, then after each consecutive win the lot size is increased by n% in accordance to the the CycleTargetPercent until a loss is incurred e.g.
UseCycleTarget=Yes
StandardCycleTrade=0.25%
CycleTargetPercent=1.00%
First trade win lotsize=0.25%
Second trade win lotsize=1.00%
Third Trade win lotsize=2.00%
Then if the fourth trade is a loss trade the lot size would be reduced to first n% trade lot size on the 5th trade e.g.
First Trade win lotsize=0.25%
Second Trade win lotsize=1.00%
Third Trade win lotsize=3.00%
Fourth Trade loss lotsize=4.00%
Fifth Trade win Lotsize=0.25%
Sixth Trade win lotsize=1.00%
Seventh Trade loss lotsize=2.00%
Eight Trade win/lose? lotsize=0.25% etc…….
Please note: The cycle target functionality must also work as a way of limiting drawdown in that lot sizing can be set as such:
UseCycleTarget=Yes
StandardCycleTrade=1.00%
CycleTargetPercent=0.25%
First trade win lotsize=1.00%
Second trade win lotsize=0.25%
Third Trade win lotsize=0.50%
Then if the fourth trade is a loss trade the lot size would be returned to first n% trade lot size on the 5th trade e.g.
First Trade win lotsize=1.00%
Second Trade win lotsize=0.25%
Third Trade win lotsize=0.50%
Fourth Trade loss lotsize=0.75%
Fifth Trade win Lotsize=1.00%
Sixth Trade win lotsize=0.25%
Seventh Trade loss lotsize=0.50%
Eight Trade win/lose? lotsize=1.00% etc…….
Further to this both a UseNumberOfCycles input and a NumberOfCycles input will also be needed, to set the maximum number of lot size increases before returning to the original n% lot size e.g
UseCycleTarget=Yes
StandardCycleTrade=0.25%
CycleTargetPercent=1.00%
UseNumberOfCycles=Yes
NumberOfCycles=6
First Trade win lotsize=0.25%
Second Trade win lotsize=1.00%
Third Trade win lotsize=2.00%
Fourth Trade win lotsize=3.00%
Fifth Trade win lotsize=4.00%
Six Trade win lotsize=5.00%
Seventh Trade win lotsize=0.25%
Eight Trade win lotsize=1.00%
Ninth Trade loss lotsize=2.00%
Tenth Trade win win/lose? =0.25%
Further to this a UseStayAtMaximum input will also be needed, where UseNumberOfCycles sets the maximum lotsize, however it overrides the re-setting of the NumberOfCycles to n% until a losing trade occurs e.g.
UseCycleTarget=Yes
StandardCycleTrade=0.25%
CycleTargetPercent=1.00
UseNumberOfCycles=Yes
NumberOfCycles=6
UseStayAtMaximum=Yes
First Trade win lotsize=0.25%
Second Trade win lotsize=1.00%
Third Trade win lotsize=2.00%
Fourth Trade win lotsize=3.00%
Fifth Trade win lotsize=4.00%
Six Trade win lotsize=5.00%
Seventh Trade win lotsize=5.00%
Eight Trade win lotsize=5.00%
Ninth Trade loss lotsize=5.00%
Tenth Trade win lotsize=0.25%
Eleventh Trade win/lose? lotsize=1.0% etc…………….
I will supply the EA on work step agreement.
I look forward to working with you. Thank you Mike