Ondarox EA – A Simple Breakout Robot

That is my first thread on FF so right here are some things that I wished to share. — Be happy to skip forward.

I began buying and selling in late 2012 and joined FF in early 2013. I’ve a love of programming and have since coded and backtested numerous buying and selling concepts each from FF and of my very own creation. Out of the entire EAs that I’ve coded I’ve realized that almost all do rather well till they do not, which means they had been nice for the market circumstances on the time however as soon as these circumstances modified they blew up. Many others seemed nice on paper, however when confronted with actual spreads and slippage misplaced all probability of profitability.

I’m on no account a professional dealer, nor can I declare that I’m a worthwhile dealer, however these days I don’t blow up accounts and I study extra about my psychology and buying and selling the entire time. Right here just a few issues that I’ve realized in my brief journey.

  1. On paper my danger tolerance is quite a bit increased than it’s in stay buying and selling. Though, in the long term, they might have turned out to be worthwhile, I’ve stopped just a few methods early as a result of I could not tolerate the losses.
  1. For me, demo buying and selling doesn’t examine to stay buying and selling. I’m extra affected by a 1% loss in a stay account than I’m by a 10% loss in a demo account. So, I solely use a demo account to check the logic of my methods and use a really small stay account for precise ahead testing.
  1. As interesting as they’re, it’s a lot more durable to earn cash on decrease, fast paced timeframes. I contemplate the 1 hour and up a better timeframe. Most methods I take a look at are for the 1 hour, since I’ve not completely misplaced my psychological have to have no less than just a few trades open per week.
  1. I’ll by no means be a guide dealer. I don’t have the endurance or the self-discipline to sit down on my fingers for hours at a time. Throughout the first hour, I’ll begin inserting trades extra out of boredom than anything.
  1. I’m hooked on checking my open trades. I discover myself consistently checking trades which are opened by my methods.
  1. If the logic of your system is sound, don’t override it by closing or adjusting trades. I’ve many occasions closed out automated trades early, and though on the time it appeared like the best factor to do, a majority of the time if I’d have simply left it alone it will have turned out for the higher.
  1. Less complicated methods work higher. I’ve had the most effective outcomes utilizing only a few indicators. A majority of the methods that I’ve been testing recently have concerned Fractals, Ranges and Trendlines.
  1. I really want to interrupt my dependency on MT4 and take the time to study Python. I at the moment code and take a look at all of my methods on MT4 though I ship all of my trades, via recordsdata, to a Python script that locations them on Oanda’s FXTrade platform. This enables me to commerce any measurement regardless of how small. Eliminating the patchwork system I’ve in place and shifting all of it to Python could be ultimate. Apart from, you by no means know when Metaquotes will hand over on MT4 altogether.

Why Ondarox?
In actual life I’m a bartender, so “On the Rocks” simply made sense. Apart from, I did not need to spend an excessive amount of time arising with some catchy title that nobody actually cares about.

Concerning the EA
The EA that I’m sharing is a spread breakout system with the aim of catching a pattern with out predicting when it can cease whereas minimizing losses. Trades are opened based mostly on the very best excessive or lowest low inside a given variety of bars. Stops and targets are hidden from the dealer and managed by numerous consumer outlined choices. I’ve had the most effective outcomes, up to now, utilizing an ATR based mostly cease. In my testing the system has a mean win price (relying on settings) of between 30-40%, however the losses are a lot smaller than the wins.

Crucial setting throughout the EA is the Excessive / Low Excessive Interval. This units the vary of bars that the EA makes use of to open trades. One setting won’t work for all forex pairs. The EURUSD responds effectively to a 25 interval whereas I’ve discovered that the GBPUSD responds higher to a 36 interval. Additionally remember that a 25 interval on the 1 hour chart is similar as a 100 interval on the 15 minute chart since there are 4 bars each hour.

I’m not a fan of conventional Martingale methods, however have discovered that in methods, resembling this one, with only a few consecutive losses, a slight enhance in commerce measurement on every loss as much as a most quantity of danger can oftentimes decrease general drawdowns and typically enhance income.

I’ve been stay testing this method on a small account since Dec 15, 2017 and after 22 trades I’m at the moment down 11%. About 7% of that is due to some coding errors that I discovered, so in actuality I ought to be down about 4%. In comparison with my backtesting the system is performing precisely because it ought to so I’m not involved. I’ve been working it with 3% intial danger with a 0.7% danger enhance on every loss as much as a most of 5% danger. Since this method makes use of a trailing cease, the possibility of incurring a 5% loss is uncommon. The max loss I’ve encountered is 4.38% whereas the typical loss has been 2.25%. The max win has to this point been 17.7% with the typical at 8.48%.

Backtests
Under are just a few backtests that I’ve carried out with my set file for the EURUSD. I’m utilizing TickDataSuite with Dukascopy knowledge with precise spreads and random slippage at 99.9% modelling high quality. These checks had been carried out from 1/1/2010 to 2/1/2018.

Larger Danger Exams

Hooked up Picture (click on to enlarge)
Click to Enlarge

Name: EU-NoMarty.png
Size: 64 KB
Hooked up Picture (click on to enlarge)
Click to Enlarge

Name: EU-Marty.png
Size: 66 KB

Decrease Danger Exams

Hooked up Picture (click on to enlarge)
Click to Enlarge

Name: EU-NoMarty-Conservative.png
Size: 63 KB
Hooked up Picture (click on to enlarge)
Click to Enlarge

Name: EU-Marty-Conservative.png
Size: 66 KB

Please don’t belief my outcomes!
Do your individual testing and share any good set recordsdata you provide you with!
Simply because one thing seems to be good in backtests by no means assume that it’ll proceed to be worthwhile sooner or later!

Description of EA Settings

  1. Commerce As soon as Per Route?
    If set to true, the EA will solely open one commerce within the given course. If the earlier commerce was a brief the following commerce shall be a protracted.
  1. Excessive / Low Excessive Interval
    Trades are opened when a bar is both the very best excessive or lowest low in a given interval. That is the place you outline stated interval.
  1. Use NRTR ATR Trailing Cease?
    Use the “NRTR_ATR_STOP” indicator as a trailing cease.
  1. Use BB Stops Trailing Cease?
    Use the “BB stops (new format) 1.3” indicator as a trailing cease.
  1. Use Parabolic Trailing Cease?
    Use the “Parabolic_Mod” indicator as a trailing cease.
  1. Use Three Bar Trailing Cease?
    Use the bottom low or highest excessive of the three earlier bars as a trailing cease.
  1. Exit on Laborious Cease?
    Exit trades on a set cease outlined in pips.
  1. Exit on Laborious Goal?
    Exit trades on a set goal outlined in pips.
  1. Exit on Excessive / Low Extremes
    Exit trades on the highest excessive or lowest low in a given interval.
  1. Use Avg Hist Vary for Goal? Cease?
    Exit trades on a share of the vary of given variety of previous most commerce ranges.
  1. Max Complete Danger w/Martingale
    The utmost allowed complete danger when utilizing martingale
  1. Use Martingale on Losses?
    Modify the danger on the following commerce following a loss
  1. Enhance Danger Dimension on Loss?
    If set to true the following commerce following a loss could have its danger elevated by a given quantity. The danger shall be decreased when set to false.
  1. Use Martingale on Wins?
    If set to true the following commerce following a win could have its danger elevated by a given quantity.

Though I solely use the NRTR ATR indicator in my stay buying and selling I’ve included a few different choices throughout the settings so beneath are the symptoms these would use. The Parabolic indicator beneath is similar one included with MT4 besides that I modified it to indicate whether or not a dot is an higher or decrease one.

Ultimate Ideas
I’ve spent a variety of time on this and at current am not prepared to share my supply code. I even have an expiration set throughout the code to stop others from promoting my work. I’ll replace the expiration effectively earlier than it expires. I’ve no intention of promoting this and there are not any restrictions on whether or not it may be used on demo or stay accounts.
In the event you do not agree with any of this then please don’t use it and easily transfer on.

Ondarox EA - A Simple Breakout Robot 1

Hooked up Recordsdata
File Type: zip indicators.zip   7 KB | 222 downloads
File Type: ex4 Ondarox.ex4   39 KB | 181 downloads
File Type: zip lcoff_ondarox_EU_Set.zip   < 1 KB | 149 downloads
File Type: zip lcoff_ondarox_EU_Martingale_Set.zip   < 1 KB | 63 downloads
File Type: zip lcoff_ondarox_EU_Conservative_Set.zip   < 1 KB | 57 downloads
 Huge thank’s To :  lcoff

Please rate this Article

0 / 5 0 0

Your page rank:



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] whose only purpose in life is to live according to our own design and desire. For that, self-education and experience in Forex market was the only choice for all of us in order to achieve a self-sustainable.
Send this to a friend