작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
The following functions are to be added to my fully working EA and are to work in unison with the existing functionality
1. Add time not to trade filter for each day based on local computer time in this case GMT:
Inputs:
Use time not to trade for each individual day Sunday through to Friday
For each day 3 time slots not to trade between 00:00:00 and 00:00:00
2.Add open pending order above and or below existing trade direction, if sell trade then n pips below opening price of trade, if buy trade then n pips above opening price of trade. With separate existing trade management settings/inputs
Inputs:
Use pending order function
Pips away from opening price
UseMoneyManagement
RiskPercent
RiskBased Risk_Based=Balance/Equity or new choice of Cycle target (see note 3)
StopLoss
TakeProfit
LotSize
UseMoveToBE
WhenToMoveToBE
PipsToLockIn
UseTrailingStop
Trailing_Type=Regular/Candle Trial
//Regular Trail Settings.
WhenToTrail
TrailAmount
//Candle Stop Settings
CandlesBack
PadAmount
3. Add a cycle percentage lot size functionality, to work in the following manner. Lot size of first Standard Cycle Trade to be set at n%, then after each consecutive win the lot size is set by the Cycle Target Percent e.g.
Input
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 e.g.
First Trade win lotsize=0.25%
Second Trade win lotsize=1.00%
Third Trade win lotsize=3.00%
Fourth Trade loss lotsize=0.25%
In all cases, apart from the first trade, the lotsize would increase by the set extra 1% until a loss trade occurs where again in all cases it would reduce back to the first set n%
Further to this a cycle target function input will also be needed, to set the maximum number of lot size increases before returning to the original n% lot size e.g.
Input
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%
Further to this a stay at maximum lot size function input will also be needed 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=0.25%
Tenth Trade win lotsize=1.00%
ETC…………