Here, take this profitable ea
-
Last year (May 2017) I made some very simple ea based on bollinger bands and rsi. Today I backtested it again and surprisingly it would have worked the last year similar to the earlier years. This is not very common in backtesting - usually the bots fail after the period they are initially tested and developed on.
Feel free to use this ea (as an example, start point, inspiration, what ever). Maybe you can even improve it.
Note: this only works on a mt5 netting method account
https://fxdreema.com/shared/pTIbLpWob
Update 30.12.2022: Bot seems to be working still, without any changes since 2017

Update 29.8.2023: Refactored the EA to work on modern hedging method mt5 accounts. Also simplified the strategy to what matters the most (theres lots of useless stuff in original version), in essence the strategy is this:
- Build long/short positions with RSI
- When above 70, sell
- When below 30, buy
- Before selling/buying another time, wait for the RSI to visit level 50 - There must be a mechanism that favors closing the positions rather than letting long/short position grow bigger and bigger
- Only allow the position to grow if price is above daily median (buy) or below median (sell)
- Trades that shrink the total position don't have that rule, so positions naturally stay small - Lastly, limit the trading actions to more volatile half of the day by comparing fast and slow ATR values
The reduced strategy is not quite as profitable as the original one, but still clearly on the black after 6700 trades. Feel free to add your ideas to this.
- Build long/short positions with RSI
-
I thought there'd be a few thank you's here by now, so cheers from me!

I'd planned to come back after playing with it for a bit, but thinking I won't have time for a while.
Initially wondering if a 'No Trade' instead of the 'Once per bar' would enable more opening opportunities? (just thinking of my own issues with having it first)
... and Buy/Sell % of x.Gonna take me some time just to work out what you're doing...
Can you outline the basic principles?
I can see BB, ATR and RSI. Is it Buy/Sell when all meet High/Low conditions?
Is there also a calculated BB signal in there? High/Low against default?
Most of the Variables are on/off toggles correct?Sounds like you haven't been trading with it, any reason?
p.s. I was right about you being a Variable junkie! ;D
-
@drayzen hahaha

As I said, this is a year old project, I must recall what I was thinking:The core principle is to sell RSI 70 and buy RSI 30 (block 11 downwards).
I like to use a trigger with rsi, for example: sell at 70, rsi comes back to 50 -> another sell at 70 is now allowed.Rest of the blocks are to determine the main market direction, and to restrict selling an uptrend for example.
Block 2 downwards is checking how many consecutive days rsi is >50 and also price > BB (and vice versa for downtrend) Variables Dd = "days down" and Du = "days up"
Block 24 downwards is to find high and low point of the last swing (roughly)
Block 18 downwards is to calculate the midpoint of those highs and lows (variable "med"). This is used to restrict unwanted sells and buys..
To be honest, I doubt my main trend analysis does any good - the core principle of selling rsi 70 and buying rsi 30 with the trigger mechanism is quite good on its own.
I havent traded this, didn't trust this enough.Initially wondering if a 'No Trade' instead of the 'Once per bar' would enable more opening opportunities? (just thinking of my own issues with having it first)
I have found it best to always use once per bar. "No trade" would maybe create 0.000001% better trading results, or maybe that much worse - in any case, the difference is not much but it would greatly slow down the backtesting.
-
@roar .... start thinking about adx indicator
.... turn off main line and stay only with +DI and -DI 
it is also one of best indicators to measure currency strength (along with bollinger bands % change)
-
@miro1360 Yes, I have used it too, just like you said

It is just not very "flexible" for my needs, it heavily depends on the calculation period... My goal is to find a system that can evaluate not only trend from x bars, but also a bit longer and a bit shorter period - the market does not always make x bars cycles -
Maybe ticks over time period(s)?
I guess it could then also be used to stay out during quiet times... ?:\ -
@drayzen Nice thought, haven't used tick indicators before.
Anyway, I'd say it is not very fruitful to determine quiet periods and not trade in them. That is because of the quietness is very relative, and so you also have to sacrifice some good opportunies if you set a fixed quietness treshold.
I think it is better to let the trades open in all conditions, but implement a different risk managing and exit systems for the quiet periods. -
@roar Thanks for sharing. Lots of ways to use the tools, nice to see someone else's approach.
-
@richard96816 Agreed, fxdreema has some very versatile functions. It's very good to see other's ideas too, avoiding "tunnel vision" with the alone development.
Some say that sharing good eas doesn't happen because nobody would give away free money like that. I don't believe that approach at all - no matter how profitable your system is, there is always a risk present with trading, and the risk is higher if you don't even know the system you are using. So you have to learn the system, and thus you can also develop it further. Collaborative effort is the way to go
-
I agree. There's an odd paranoia among automated forex traders. When I was trading stocks and futures we were fully aware that if more people used the same system it tended to make that system WORK BETTER. Similar to pumping a stock. More traders pushing the same way.
Perhaps the fear is someone will discover the ultra-winning strategy and the authorities will have to outlaw trading or something, because the whole world will be draining currencies. Wow.

-
Hi mate, thanks for posting this. is there a MT4 version i can have by any chance please?
-
@karoshi
There is no MT4 version at the moment. This EA utilizes multiple timeframes and the netting method (no buys and sells at same time). Converting to MT4 is possible but takes some work.Backtested this EA again today, this time with a different broker. Tbh didn't quite expect such a good result, lol


-
Thanks for the post roar I will check it out
-
HI guys. Thank you so much for sharing your build. It's great to see how others create with dreema and to share ideas. How could we convert this to an MT4 veriosn? I am happy to do it, I just don't know what I would need to do. Once completed I would obviously share my mt4 version on this page.
Cheers
-
@bentyekiff
Biggest problem is the netting system. When this bot "buys", it actually closes sell trades if there is a running sell trade. So, converting to mt4, every time there is a buy/sell operation, must check first if there is an opposite trade running, and if true, then close (partially) that opposite trade.https://fxdreema.com/shared/pTIbLpWob
I can't get the builder open, probably some problem in the fxdreema server, but I think there was also some timeframe modifications - I don't know how mt4 applies multi-timeframe. -

Still working, wtf.
I updated the shared project, found one more mistake in it (buys and sells were not symmetrical).
Also added lots relative to balance, so things can get exponential. Proper risk management is for pussies anyway, right?

I guess I must give this system some live time...
https://fxdreema.com/shared/pTIbLpWob -
Been away from here for a while..but still sub'd to this. Good to see the 'ol girl still has some life in her!

..need to get my sub going again as I've got some ideas to build.
Have you had any Myfxbook results for this one?I've been using a combo of these two for some manual trading lately and had some really clean signals.
Keltner_Chanel: https://www.mql5.com/en/code/8591
Keltner ATR Bands: https://www.mql5.com/en/code/7315
Might give an improvement over the Bollingers..? -
Nothing on MyFxbook yet
I try to avoid custom indicators, they are a pain, especially with mt5

Might give Keltner a try some time.
However, I like the standard deviation as it has some fundamental statistical reasoning behind it... -
Finally got around making the .ex4 version. I hope this will inspire someone to better develop their own systems.
Please be careful if you use this, it is not very sophisticated even though it looks a mess!
https://fxdreema.com/shared/aBHjbJjN
0_1560891000683_Roar v1.1.ex4 -
@roar - Gave your MT5 version a spin. I have a broker that uses hedge method , so I added a close positions block at the "if buy/sell" blocks and it works in test mode. I ran it on a demo account for the past 12 hours across 8 pairs and it failed to open a single trade.
What timeframe do you recommend. I ran it at M15. Any suggestions?
Thanks for the EA. I am going to marry it to...
I will modify the dashboard to use ADX and Bollinger and drop MA's to give a visual spin to the EA. I will share it when complete.
Thanks,
Thomas
