Live Forex Signals By Smart Forex Tester

Live forex signals can be generated for free with our Smart Forex Tester.

When we run the Tester on real-time market data feed, we can trigger automated forex signals every time when our day trading strategy is entering or exiting markets.

Signals are short sounds. They can be turned on or off in the Tester GUI, and the tunes can be configured for each of the market events.

Live Forex Signals By Smart Forex Tester
Sound-button turns on live Forex signals

The live data is sent to the Tester by our Forex Simulator,  which in its real-time mode supports 10 main currency pairs. This short video shows how the Tester and Simulator work together. (The signal is at 3.10)

Alternatively, the Tester can receive live market data from a Metatrader client terminal via a special Expert Advisor. This EA you have downloaded together with the Tester.

The automated day trading strategy is also included in the Smart Forex Tester download bundle. It uses our unique algorithm to detects market pivot points in real time.

How accurate are the signals. The current version of the strategy works the best on the rangebound markets. However, it can also generate profitable signals on moderate trends. We are working to adapt the strategy for the trending market.

The Tester GUI provides you the controls to change the main strategy parameters. So you can experiment with them to adjust to the current market situation.

Want to try yourself how accurate these live Forex signals are?

Subscribe for free to download Smart Strategy Tester and Forex Simulator.

Smart Strategy Builder

This page is deprecated.  We switched to C++ strategies.
Download new Smart Forex Tester. (requires FREE subscription)

We have developed the first version of Smart Strategy Builder.

Smart Strategy Builder
Smart Strategy Builder GUI

Currently we are testing the prototype and will make it available to our subscribers soon.

The Builder reads a trading strategy file and makes it all the strategy parameters visible and editable in the Builder GUI. There you can also edit and save the strategy file itself.

Smart Strategy Builder seamlessly works with our Smart Forex Tester.

You can test the changes in the strategy or its parameters by clicking a “Run” – button. The Strategy Builder launches the Tester and executes the strategy test on the previously selected test data. The results are returned to the Builder and shown in the GUI.

The Tester GUI is also shown during the test and also some configurable time after its completion. All Tester functionality is available. You can analyze the trades in the GUI and also in the log, as usual.

The current values of the parameters are saved in a temporary file. So the Builder can restore them on the next start-up.

Smart Strategy Builder Development

When completed, this tool will take our automated trading strategies development to the next level.

Later releases of the Builder will extend our strategy format. While still using the standard state machine for routine trading operations, the Bulider will support the arbitrary code for market signals.

This way, the Builder will make the first steps to support the EA syntax as a strategy definition.

Download Smart Strategy Builder.

 

 

 

 

Automated trading strategy tested: 132 pips in one day, 60% winning trades

Quick link: Download Smart Forex Tester

You are probably aware of the sharp drop in the EURUSD on October, 21. Following the ECB announcement, the Euro fell over 2% against the Dollar.

It happened so that on that day we were testing the latest version of Smart Forex Tester. This upcoming release of our software will support forward testing – i.e. test the automated trading strategies on live data feed. For that, we have developed a special Expert Advisor that sends tick data from Metatrader.

So, we were running the stability test. We were using our automated trading strategy (comes bundled with with Smart Forex Tester). We left the tester running on its own. When we checked it the next day, we were stunned. Not by the fact that the tester was still up and running (this was expected).

automated trading strategy Real Time Test with Smart Forex Tester
Smart Forex Tester runs automated trading strategy in real time (click to enlarge)

What came as a surprise was that our automated strategy absolutely crashed it! It did 27 trades, out of which 60% were winners. And it raked 132 pips profit!

Automated trading is the way to go!

This test convinced us again that automated trading can be made profitable. We understand, that for this simple strategy that we were using, we had a bit of luck. The reason being that this strategy doesn’t yet have a trend following algorithm. We are only developing it.

But still – as we have written on many occasions – we see not a single reason not to use automated trading. E.g. ckeck our post comparing Smart Forex Tester with manual Forex trading simulator.

Our line of reasoning is simple. First, to be successful, a Forex trader must have a clearly formalized strategy. Second, this strategy has to be strictly followed. No room for emotions. Now, if we have done the former – guess who will be more successful in the latter – a person or a computer? The answer is obvious.

If you are interested  – stay tuned! Download Smart Forex Tester and  wait for the announcement of the latest release.

Forex Trading Adviser – A Step Forward From Expert Advisors

This page is deprecated. We are developing Automated Day Trader.


Forex Trading Adviser is a new software that we are developing. It is designed for strategy optimization and trading automation (both full and semi-).

It is not too difficult to fully automate Forex trading. To do that, you only need to formalize your trading strategy and have a trading terminal that supports trading automation.

Such tools are fully available to the broad public. Maybe the best example is Metatrader, which is used by the vast majority of non-institutional Forex traders. You can automate your trading strategy there with a help of an Expert Advisor – a program written in a simplified C-like language.

Still, it is safe to say that most often trading is done entirely manually. We think the main reason behind that is that people lack clear cut trading strategies that they can automate. In addition, the majority of amateur traders are not at all comfortable with coding and testing software.

During manual trading, full attention is required from the trader. But even bigger problem is stress. In our opinion, optimal solution would be to combine both methods – manual and automated. In such semi-automated approach, a trade can be entered manually, but then its monitoring is done automatically by the software. Alternatively, the software can start an automated strategy, but afterwards the trader will be monitoring the trades and interfere if needed.

All this (and much more) will be possible with the Forex Trading Adviser.

Forex Trading Adviser: In between Manual And Automated Trading

We are developing a stand-alone Windows software, called Forex Trading Adviser. It works in connection to Metatrader terminal. Via a special Expert Advisor, it receives market data in real time and sends back trading commands when necessary.

Trading Adviser will have a convenient GUI that will compensate for almost non-existent user interaction functionality of expert advisors. It can also modify an expert advisor’s behavior at runtime. Which otherwise can’t be done without the expert advisor restart. So Adviser and Advisor complement each other.

One of the use cases for the Trading Adviser can be dynamic adjusting of the threshold for the stop-loss and take profit orders. For example, the Trading Adviser can trigger them based on some averaged market quotes.

Let’s go in more detail how we can protect our position. If we use a standard stop order, Metatrader will trigger it when the market price matches the stop order. But it might be just a whipsawing that can only last several ticks. Using trailing stops will work no better.

To minimize the effect of whipsawing, we can activate the protection after some level is breached, and then use simple averaging on the interval of 5-10 latest ticks to get more reliable decision whether to exit the market or wait for more evidence of our wrong positioning.

Alternatively, we can use some indicators and only close the position when the threshold is confirmed by them.

Technically, the communication between the Trading Adviser and expert advisor is implemented using Windows messaging. Every time a new tick comes from Metatrader to the expert advisor, the latter sends a message to the Trading Adviser, which makes a decision and sends back a trading command, if needed.

Forex Trading Adviser
Forex Trading Adviser works with Metatrader

Even in the very fast-moving market, we can only get maybe tens of ticks a second. This is many orders of magnitude less compared to the speed with which any computer can process the messages. So the delay added by the Trading Advisor software is absolutely harmless.

Please comment on this post  – do you think a product like Forex trading adviser is needed? What functionality would you like it to provide?

If you are interested in Forex Trading Adviser, visit our new site forextradingadviser.com where we will be posting the early availability releases and discuss the features.

Meanwhile, to get updated automatically you can subscribe for our mailing list – Forex Strategy Tester.

Stop Loss Orders In Automated Forex Trading

Stop loss orders are essential part of leveraged Forex trading, where the risk of margin call is significant. Manual trading without stops is of course possible, but it requires constant monitoring.  For automated trading, stop loss orders are evidently a must.

Here we will discuss some ideas how stop loss orders can be optimized in an automated Forex trading algorithm. We will suggest market adaptation of the stop loss orders position based on our pivot point detection algorithm.

As the base for our discussion, we will use our EURUSD Asian sessions testing example for our simple Forex Day Trading Strategy.  You can download the Smart Forex Tester and repeat this test yourself.

Our trading algorithm sets stop loss orders the next tick after positions opening, and then moves these stops in a trailing manner, securing the profit.

The screenshot below shows the very beginning of the test for the April, 24, 2105. In this baseline testing example, take profit value was set to 8 pips. Also stop loss orders were placed at a 8 pips distance from the trade, and were trailing market in the same increments.

Smart Forex Tester - Stop Loss Orders
Smart Forex Tester – Regular Stop Loss Orders

The first position opened was a short. We see that this sell order was closed profitably (leftmost green line). Few ticks after, the algorithm placed another sell order, which was a loser (leftmost right line). The stop loss oder was triggered almost immediately as the market continued higher.

The question is whether we would be better off setting the stop threshold looser? At least we could have the first position stay open longer, as we see that eventually market peaked and went down. And then we wouldn’t have the second loser trade at all.

On the other hand, with tighter stop, we had losses on the second trade, but then a new short position was opened very soon. And it turned out a success. You can see the stop loss order was trailed 5 times before it was triggered. The position yielded about 30 pips of profit.

Let’s see the test results for the looser stops.

Stop Loss Orders Set Further From Market

Looser stops  might be justified for trades with low leverage or without it. To simulate it, we increased the threshold for triggering stop loss orders. In the example above, we set it to 20 pips instead of 8.

Forex Tester Loose - Stop Loss Orders
Smart Forex Tester – Stop Loss Orders Set Looser
As expected, the first position was closed much later than for the tighter stop value. And we avoided placing the second (loser) sell order.
However, this didn’t increase our profit. As seen on the screenshot above, the looser stop loss order was also triggered later (green line) so the profit potential was used only slightly.
This simple example brings us to the conclusion that the algorithm must use some logic to modify stop loss orders and also adjust to the market situation.

Stop Loss Orders Modification Algorithm

First of all, it appears we should differentiate between the cases of initial placement of a stop loss order and the case of its trailing.  If looser stops are acceptable as such (e.g. no leverage), then it might make sense to wait longer for testing the market entry decision.
But when the position becomes profitable,  the stop loss order should be moved closer to the market. And even closer for each subsequent move. This will secure more profit when the market reverses.
Moreover, while moving the stops, we can make the distance between the stop and the market proportional to the size of the preceding market’s advance. In other words, the faster-moving is the market, the slower we can afford to approach it.
If a stop loss order is triggered during a counter-trend movement, it’s the trading algorithm’s task to re-enter the market.
Another idea is to move stop loss orders using our real-time pivot point detection algorithm.
On the screenshot below you see the same market data with detected peaks (red dots) and bottoms (blue dots).
The accuracy of the detection might not look ideal, but keep in mind that it was performed in real time! Meaning that for each detected extreme, only the market data that was available prior to that time, was used. And also note that the market data plotted is smoothened for better readability. Whereas the detection has to use real-time quotes that might fluctuate quite a lot.
Smart Forex Tester - Pivot Points Detection
Smart Forex Tester – Pivot Points Detection in Real-time
However imperfect, these signals are good enough for our purposes of modifying the stop loss orders. So, e.g. for the looser stop, if we used the bottom signals, we could have 2 of them around the very bottom and could have fixed almost maximum possible profit. See the 2 blue dots to the right of the black vertical cursor line in the middle.
If you found this post interesting, you can download the Smart Forex Tester software (includes Pivot Point Analyzer) and repeat this test yourself. We would be also glad to receive your comments.

Simple Day Trading Strategy Tested: 280 Pips Monthly Profit

NOTE: The screenshots are taken from older version of the Smart Forex Tester.

Subscribe to download the latest software.

This post is a comprehensive example of Forex strategy testing with our Smart Forex Tester software. We used our example automated Forex day trading strategy.

Our test plan was to run the strategy on all Asian sessions for one month.  The strategy is very simple and it doesn’t adjust its  parameters to the market conditions. So we wanted to keep all algorithm’s parameters the same during the testing.

Asian sessions were selected as test data because their volatility is known to be low. It is important, because our simple strategy doesn’t have a trend following algorithm.

We tested on EURUSD. We used tick-by-tick market data provided by TrueFX. We took a whole month data file for April 2015 and prepared our test data with the help of our Forex Data Manager software (download).

Overall test results were positive. Total profit exceeded 280 pips. Out of 17 trading sessions, 12 were profitable.

Day Trading Strategy Test Results
Day Trading Strategy Test Results

The best result we got for the April, 24. We can see that our algorithm managed to enter the market at tops and bottoms quite well and stop orders’ trailing worked properly as well.

Forex Day Trading - Profitable Asian Session
Forex Day Trading Strategy Testing – The Most Profitable Asian Session

As the algorithm doesn’t have any trend following functionality, we can only explain this fact by the slow enough market movement.

The worst session was on April, 21. This can be attributed to visibly higher jitter in quotes, so our algorithm had a lot of false signals.

Forex Day Trading Strategy - Asian Session
Forex Day Trading Strategy Testing – Asian Session (Worst Case)

Interestingly, we could easily turn this worst trading session into a profitable one by tweaking the Pivot Points detector parameters. But we didn’t do that as this was against our test plan.

However, this observation is one of the most important results of the testing, which gave us strategy development ideas.

If you want to repeat our testing, here are our parameters.

For the pivot points detector, we used the following values.

peaks.span=253.012
peaks.quality=1e-005
peaks.limit=0.00026506

You can set them in GUI with the Filter sliders.

Takeprofit and stoploss values were 8 pips each.

Day Trading Strategy Improvements

Our testing results show that automated day trading can be profitable.

Our strategy is very simple but still it could win 70% of all trading sessions!

It is clear that priority needs to be assigned to implementing algorithm parameters adjustments on the fly.

An obvious idea to try first would be adjusting the detector parameters. We can optimize them on each tick (or, say, every 10-100 ticks) using the data from beginning of the test. This way, the jitter observed on April, 21 would have been easily eliminated.

This will be implemented in our next product – Forex Trading Adviser.

Tick By Tick Data For Forex Strategy Testing – Free. Download Data Editing Software.

We show how we prepare tick by tick data for our Forex strategy testing. Test data quality is one reason why we don’t use Metatrader Strategy Tester – it is generating ticks by extrapolating M1 bars data. Such artificially smooth quotes are not reliable test data. So we only use real market data.

We use the tick by tick data provided by TrueFX. It is real tradable quotes data – and it is free. History market data is stored as a separate *.csv data file for each month. The only problem is that the size of a monthly file is substantial – for a typical month it exceeds 200 MB, which makes it too big for MS Excel to open.

Tick By Tick Data Editing By Forex Data Manager Software

Our Smart Forex Tester software is designed to work with large files.

However, working with big data files is not convenient and is also not always reasonable. E.g. we don’t test on the data intervals spanning over weekends.

To get the most of the real market data, we have developed Forex Data Manager. This software reads a month long tick by tick data file, checks data integrity and parses it into trading days. Then we can select smaller chunks of the data in the GUI and save them into their own files. We can save one or multiple trading days or even less than a day – e.g. a single trading session.

Forex Data Manager is included into Smart Forex Tester bundle (Download). After you unzip the archive, start the software by double clicking on fdm.exe.

In the example below we show how we parsed the EURUSD data file for April 2015 and extracted Asian sessions as separate test data files.

In the GUI, click Browse and select a full month tick by tick data file that you downloaded from TrueFX. After parsing is complete, you will see the following:

forex tick by tick data editor
Tick-by-tick Data Editor Software GUI

By default, all trading days are checked. To remove selection, click on Toggle All. Then you can check one or multiple days and click Save.

We will be extracting the data for Asian session. It is more complicated as it spans over 2 days: between 23.00-08.00 GMT. For that, we click on Options and check the box Specific hours and then type in the From and To values as shown.  Note that we typed 07 – which means that all ticks until 07.59.59:999 will be included.

Forex Tick-by-tick data editor: selecting hours
Tick-by-tick data editor: selecting data by hours

Now, we click OK and we select two adjacent days, e.g. April 23rd and April 24th. This means that we will be saving a data segment spanning from 23.00 of April 23rd until 08.00 of April 24th.

Forex Tick-by-tick data editor software - saving Asian session
Tick-by-tick data editor software – saving selected data

You give a file name and click Save – the process is completed. We included this saved session file as an example in the Smart Forex Tester download bundle.

Why are we interested in Asian sessions?

Because there is less volatility there and usually there are no breaking news and other market moving events like e.g. FOMC press-releases. It is often recommented for newbee traders to start from Asian session.

We used this data for testing our example Forex day trading stratedy. This algorithm is very simple and doesn’t have the trend following functionality, so this setup suits perfectly.

Download Smart Forex Tester (Includes Forex Data Manager and Pivot Points Analyzer).

Check out our EURUSD testing results for April 2015 Asian sessions.

 

Real-Time Forex Trend Indicator

This Forex trend indicator is included in our strategy building and testing software (Download Smart Forex Strategy Tester).

This post continues the topic we started in our latest post on the adaptive trend following strategy. All figures refers to the example of a trend that we covered in that post.

Our Forex Trend Indicator Works In Real Time

For automated trading strategies that we develop and test with our software, we only use indicators that work fast and a value is available ideally at every tick.

Our trend indicator works in real-time as well. It is recalculated on every coming tick using a sliding window of a fixed length starting at the current tick.

Let’s see how the indicator works. The figure below covers the same interval as the figure 2 in the post on trend following strategy.

There we noticed, that staying in the market in points C and especially D is not easy – risk looks very high and you might want to take profits.

Forex Trend Indicator
How Forex Trend Indicator Works In Real Time

The trend indicator is plotted with a blue line. It starts from the horizontal segment on the left, which is a zero line. The indicator is zero, as there is not enough data yet to fill the full computation window.

But once the indicator start getting calculated (starting form the point 1), trend indicator yeilds positive values – until point 2. So we can see that if our automated strategy used this indicator, it would not exit the market in C nor in D.

You can download the latest Smart Forex Tester software and try analyzing the trends yourself. Use the trend-checkbox on the left panel to turn the indicator on or off. You can also adjust the computation window size with a slider control (requires data file reload!).

Starting from the next release, this Forex trend indicator will be also made available to trading strategies as a signal. Then we will include it in our trading strategy and update the below example to see how will trend indicator works in practice. Stay tuned!

Example Strategy Without Using A Trend Indicator

To get a baseline, let’s check how well our simple day trading strategy works in trending market. The strategy uses peak point detection algorithm to enter the market, but it is “not aware” of any trends.

We can see that market entry in pivot points is flawless. But the direction is wrong. So it will be really exciting to improve the strategy by adding the trend indicator and retest.

Stay tuned!

Meanwhile, you can run this test yourself.  Download the software bundle and use the data file named week1_1.db.

Losses Without Forex Trend Indicators
Without Forex trend indicator trades are losers

Adaptive Forex Trend Trading Strategy Based on Pivot Points

In any market, including Forex, trend trading is potentially the most profitable. However, to get decent profits, you need to catch a trend early enough. Which is not easy, but doable, because Forex trends usually last quite long.

What is considerably more difficult is to have enough self-control and not to leave the markets too early. Market doesn’t move in a straight line and it’s impossible to predict where the market tops or bottoms.

In hindsight, spotting a trend is an easiest task. This one a clear trend, right? From the bottom A to the top C market advanced almost 200 pips! And along the way, the rise from A to B looks even more obvious. It appears easy to get in somewhere in between and still have enough profit potential.

Forex Trend Trading Strategy
On Forex Trend Trading Strategy Development – Big Picture

But let’s take a closer look. The next picture shows the closeup between A and B that covers about 2 hours of trading .

Forex Trend Trading Strategies
On Forex Trend Trading Strategy Development – closeup

You can see that A-B that seemed an obvious trend on an averaged graph, now looks completely differently. And when you follow the market in real-time, the picture will be much more uncertain. And this is exactly the timeframe where decisions have to be made.

You get the idea. Suppose, you are extremely lucky and entered a trade at the bottom A. Will you still dare to stay in the market at C? Or D, for that matter? And in the big picture, A-C or A-D are only small fractions of the whole trend.

So what trend trading strategy should we use? Which works better: wait for the ultimate top or bottom and lose profit or fix profit on reaching a certain level only to watch how market continues to advance in the same direction? How to address this dilemma?

Forex Trend Trading Strategies Need Adaptive Algorithms

In our opinion, Forex trend trading must use real-time strategy adaptation. And it needs reliable and fast signals about local tops and bottoms. We are developing our trend following strategy based on signals from our pivot point detection algorithm and our real-time trend indicator.

The main idea is to try to enter market on very early signs of emerging trend – not to be late. This is impossible to predict, as any trend indicator won’t give any signal so early. So we need to do it by trial and error. And tune itself on the market as trend develops.

Here is where our pivot point analyzer comes very handy. It can nail a top or bottom very accurately – and in real time. This is important as it gives us a chance to win some pips on the counter-trend movenens – even if we didn’t guess the bigger trend direction.

And this buffer allows us to take more risk. Suppose we decided to call a market top at the peak to the left of D. And opened a short position to trade a possible market reversal. We have in this case enough potential not to lose when the market eventually ends its correction in the point D. And we can use the same approach and enter the market at D againg, but now in the opposite direction.

Another level of adaptation is the pivot point detection algorithm itself. We can use the market direction information for more reliable pivot points detection. The idea is to introduce asymmetry in the peak analysis process.

So, e.g. for an ascending trend, we need to raise the detection threshlold before picking a possible top candidate, because the chances are higher that the market will continue higher. At the same time, we need to lower the threshold for bottom candidates.

Adaptation is also needed to adjust the thresholds depending on the nature of the trend: the steeper it is the bigger changes are needed in the threshold values compared to the default values that work in flat market conditions.

Check out this example of trading based on pivot points signals. You can also download it together with Smart Forex Tester and play with it yourself.

Stay tuned on the implementation of this trend trading strategy.

The Best Forex Strategy Ever?

What is the best Forex strategy? Or should we fisrt ask whether such thing as the best strategy exists? These are literally “million dollar questions”.

But before even thinking of the best strategy, let’s try to understand what a good strategy is. How can we define it?

The obvious answer is that good should be a synonym to winning. This is true of course, but we are afraid there is just no such thing as “always profitable Forex strategy”.

So better answer would probably be that a good strategy  is winning with 50%+ probability in some predictable market conditions. If we can’t formalize them, the use of the strategy would be questionable. An example of what we mean can be market behavior aroung a major news release. There are known patterns, e.g. price might shoot in one direction, then turn on a dime and go even further in the opposite direction.

Next, we need to find reliable numerical criteria of evaluating a strategy and so be able to compare strategies to each other and rank them.

These are the problems that we are solving on this site, and we’ve also started a specialized site devoted to trading strategies to discuss in more detail how to build strategies.

But back to the question, how can we find the best Forex strategy? To do so we need at least a broad selection of them to test and compare. How can we do it?

Breeding The Best Forex Strategy

The idea that we are going to try is to reuse the principle of evolution. Imagine that each trading strategy is a creature, and they are all exposed to hostile environment (which means we put them to the difficult tests). We can then make selection based on the test results and implement cross-mutations between the selected algorithms.

The Best Forex Strategy Selection
The Best Forex Strategy Selection By Genetical Approach

The whole process must definitely be automated. Manually we won’t be able to do much. Can we do that?

First of all, need the adequate software tools that will make it possible.

  • the strategy development framework that can efficiently generate strategies, make changes in them and merge them automatically (cross-mutation)
  • strategy testing environment that makes automated testing and selection.

We shared some more ideas here: www.robotsforforextrading.com