Sharing another free EA for EURUSD This have been optimized from 2015-2018 using 2 pips spread.
I have posted the strategy details and full source code for anyone interested to make any adjustment you are welcome
Strategy name:
EURUSD 1Hr Spread2.0 fractal trailing 10k to 600k PF2.9 DD21 feel free do your own optimization or modifications to this EADate: 12/15/2018 12:54:29 AM
Logic
Opening (Entry Signal)
Open a new long position or add to a winning position or reverse a short position at the beginning of the bar when all the following logic conditions are satisfied:
- the position opens higher than 184 points below the hourly high (01:01 - 06:01); and
- Stochastics* (Exponential, 10, 5, 106) - Slow %D is higher than Level 25 [GBPUSD D1]; and
- the Vidya Moving Average* (Typical, 31, 158) falls.
Open a new short position or add to a winning position or reverse a long position at the beginning of the bar when all the following logic conditions are satisfied:
- the position opens lower than 184 points above the hourly low (01:01 - 06:01); and
- Stochastics* (Exponential, 10, 5, 106) - Slow %D is lower than Level 75 [GBPUSD D1]; and
- the Vidya Moving Average* (Typical, 31, 158) rises.
Closing (Exit Signal)
Close an existing long position 1403 points above Down Fractal.
Close an existing short position 1403 points below Up Fractal.
Handling of Additional Entry Signals**
Entry signal in the direction of the present position:
- Add to a winning position but not to a losing one. If the position is at a loss, cancel the additional entry order. Do not exceed the maximum allowed number of lots to open.
Entry signal in the opposite direction:
- Close the existing position and open a new one in the opposite direction using the entry rules.
Trading Size
Always trade a constant number of lots.
- Opening of a new position - 1 lot.
- Adding to a winning position - 1 lot. Do not open more than 20 lots.
- Reversing a position - 1 lot in the opposite direction.
Protection
The strategy does not provide a permanent loss limitation.
The strategy does not use a Take Profit.
--------------
* Use the indicator value from the previous bar for all asterisk-marked indicators!
** The averaging rules apply to the entry signals only. Exit signals close a position. They cannot open, add or reduce one.
Strategy Properties
Handling of Additional Entry Signals
Next same direction signal behavior - Adds to a winning position
Next opposite direction signal behavior - Reverses the position
Trading Size
Maximum number of open lots | - 20 |
Number of entry lots for a new position | - 1 |
In case of addition - number of lots to add | - 1 |
Protection
Stop Loss | - None |
Take Profit | - None |
Break Even | - None |
Indicator Slots
The slots show the logic for the long positions only. Forex Strategy Builder automatically computes the proper logic for the short positions.
Strategy Properties
Same direction signal | Winner |
Opposite direction signal | Reverse |
Stop Loss | None |
Take Profit | None |
Break Even | None |
Bar Opening
Enter the market at the beginning of the bar
Hourly High Low
The position opens above the hourly high
Base price | High and Low |
Start hour (incl.) | 1 |
Start minutes (incl.) | 1 |
End hour (excl.) | 6 |
End minutes (excl.) | 1 |
Vertical shift | -184 |
Logical group | A |
Signal shift | 0 |
Signal repeat | 0 |
Indicator symbol | Default |
Indicator period | Default |
Stochastics
Slow %D is higher than Level line
Smoothing method | Exponential |
%K period | 10 |
Fast %D period | 5 |
Slow %D period | 106 |
Level | 25 |
Use previous bar value | Yes |
Logical group | A |
Signal shift | 0 |
Signal repeat | 0 |
Indicator symbol | Default |
Indicator period | D1 |
Vidya Moving Average
The Vidya Moving Average falls
Base price | Typical |
Period | 31 |
Smooth | 158 |
Use previous bar value | Yes |
Logical group | A |
Signal shift | 0 |
Signal repeat | 0 |
Indicator symbol | Default |
Indicator period | Default |
Fractal
Exit long at Down Fractal
Visibility | Visible or shadowed |
Vertical shift | -1403 |
Signal shift | 0 |
Indicator symbol | Default |
Indicator period | Default |
Statistic Information
Input Parameters
Account Statistics
Profile nameDefault profile
Acceptance criteriaFulfilled
Data source nameFSB Demo data
Net balance608691.00 USD
Strategy nameEURUSD 1Hr SPRD2.0 fractal...
Intrabar scanningNot accomplished
ChartGBPUSD H1
Ambiguous bars0
Data bars20000
Backtest quality100 %
Time of updating2018-11-27 12:00
Profit per day507.37 USD
Time of beginning2015-08-25 12:00
Max consecutive losses9
Spread20.00 points
System quality number3.89
Swap long-2.00 points
Sharpe ratio0.11
Swap short-2.00 points
Average HPR1.92 %
Commission0.00 points
Profit factor2.91
Slippage0.00 points
Tested bars19808
Interpolation methodPessimistic
Minimum balance10000.00 USD
Initial Account10000 USD
Maximum balance622899.00 USD
Leverage400
Max balance drawdown50573.00 USD
Account exchange rateNot used
Max equity drawdown122163.00 USD
Auto scanSwitched off
Max equity drawdown21.82 %
Trade until Margin CallSwitched on
Max stagnation258 days
Average profit10244.83 USD
Average loss-4892.17 USD
Executed orders1680
Win/loss ratio0.58
Time in position94%
Additional Statistics
Parameter
Long + Short
Long
Short
Initial account [USD]10000.00
10000.00
10000.00
Account balance [USD]608691.00
331066.00
287625.00
Net profit [USD]598691.00
321066.00
277625.00
Net profit [%]5986.91
3210.66
2776.25
Gross profit [USD]911790.00
507284.00
404506.00
Gross loss [USD]-313099.00
-186218.00
-126881.00
Profit factor2.91
2.72
3.19
Annualized profit [USD]183786.56
98561.06
85225.51
Annualized profit [%]1837.87
985.61
852.26
Minimum account [USD]10000.00
10000.00
10000.00
Minimum account date8/25/2015
8/25/2015
8/25/2015
Maximum account622899.00
355834.00
287625.00
Maximum account date3/14/2018
4/9/2018
11/15/2018
Absolute drawdown [USD]0.00
0.00
0.00
Maximum drawdown [USD]50573.00
42353.00
28524.00
Maximum drawdown [%]21.82
11.90
10.17
Maximum drawdown date8/25/2015
11/1/2018
3/27/2018
History bars20000
20000
20000
Tested bars19808
19808
19808
Bars with trades73
35
38
Bars with trades [%]0.37
0.18
0.19
Number of trades306
183
124
Winning trades178
99
79
Losing trades128
83
45
Win/loss ratio0.58
0.54
0.64
Maximum profit [USD]64725.00
64725.00
35489.00
Average profit [USD]5122.42
5124.08
5120.33
Maximum loss [USD]-34813.00
-34813.00
-28050.00
Average loss [USD]-2446.09
-2243.59
-2819.58
Expected payoff [USD]1956.51
1764.10
2238.91
Average HPR [%]1.92
2.94
3.41
Geometric HPR [%]1.35
1.93
2.75
Sharpe ratio0.11
0.13
0.24
Linkback: https://www.forex.zone/mt4-mt5-eas/7/eurusd-1hr-spread2-0-fractal-trailing-10k-to-600k-pf2-9-2015-2018/601/