FREE CODE GIVE AWAY
FREE TO TEST AND USE FOR YOUR OWN
Hi,
I'm back again. (my previous development on this EA, some attempt on UDINE Rules' EA )
I want to share this with you all.
Here is my system
Signal1
- if price is
- higher than
- highest highs of last 3 bars
- but less than highest highs of last 20 bars
- sell
- if price is
- lower than
- lowest lows of last 3 bars
- but more than lowest lows of last 20 bars
- buy
Condition 2
- if value from trend() function is less/more than -X and +X value
- and
- price is less/more than lowest lows/highest highs of last 20 bars
- then
- consider next condition
Condition 2.1
- highest high of last 3 bar (or lowest low of last 3 bar)
- subtract by current price (Current price subtract above)
- is more than
- X value (consider large move)
- then send two orders, BUYSTOP and SELLSTOP
- at specified offset from current price
Condition 2.2
- Close price from last 2 bar
- subtract by current price (Current price subtract above)
- is less than
- X value (consider small move)
- then send two orders, BUYSTOP and SELLSTOP
- at specified offset from current price
BUYSTOP and SELLSTOP are sent with specific expire time, which is configurable. However default is 90 minutes.
The EA is attached, source code also.
Back test on GBPUSD and setting are shown in the strategy report files.
Usage timeframe is M15 only
Pair, (I think any) not sure for JPY
Not design for commodity
if spread is more than 60 points (6 pips) you may need to adjust the setting.
note:
feb10_revamp_edited.zip --> Fix issue EA stopped, or freeze. show error "array out of range"
2015.03.28
Release version that fix continuous error loop, unable to delete invalid pending order ticket.
Upgrade algorithm to reduce draw down, using partial hedging with higher lot size.
(download here)