Using Two Indicators Crossover as an Entry Condition in Forex Trading

Forex Education : Using Two Indicators Crossover as an Entry Condition in Forex Trading

Crossover of two Momentum indicators
Let’s assume we want to enter the market when two Momentum indicators cross each other. We’ll use: Fast Momentum (10) and Slow Momentum (20)

The formula we use for calculating the Momentum indicator is as follows:
Momentum(10) = Price – Price10

Where:
Momentum(10) – Is the momentum for the current bar;
Price is the price of the current bar;
Price10 is the ? base price 10 bars ago.

The same is applicable for the Slow Momentum(20) but for 20 bars ago.

Now this is the tricky bit – the two indicators will cross each other upwards only if the following two conditions are satisfied:

1.Fast Momentum (10)1 < Slow Momentum (20)1 – Sigma; and
2.Fast Momentum (10) > Slow Momentum (20) + Sigma.
(For downward crossing the formula is as follows:

1.Fast Momentum (10)1 > Slow Momentum (20)1 + Sigma; and
2.Fast Momentum (10) < Slow Momentum (20) – Sigma.
But in this article we’ll only use the upwards example so read carefully)

Where:

Fast Momentum (10)1 and Slow Momentum (20)1 are the values of the Momentum indicators from the previous bar and Sigma is the permissible error when comparing floating point numbers.

I guess there won’t be any difficulties doing the maths for the first logical condition – we just compare the values of the two Momentum indicators from the previous bar. The things get a bit murkier when we develop the second logical condition:

Fast Momentum (10) > Slow Momentum (20) + Sigma
Fast Momentum (10) – Slow Momentum (20) > Sigma
Price – Price10 – (Price – Price20) > Sigma
Price – Price10 – Price + Price20 > Sigma
Price20 – Price10 > Sigma

At this point we are able to see that this logical condition doesn’t depend on the current base price because we have two equal base prices with different signs that nullify each other. So the only thing left to determine the cross are the prices from 10 and 20 bars ago (and those two change only when a new bar opens). Therefore, we can only get signal to enter the market at the opening of a bar and in the world of back testing this means certain signals and no ambiguous bars (and in the world of real trading it means we only need to check for a cross at the beginning of each bar).

Let’s just put all the maths aside and see how we can actually set this condition in Forex Strategy Builder. We simply select Oscillator of Momentum* from the indicator list and set the parameters to (Simple, Close, 10, 20). Then we choose the logic we want to use for a long position – in our case “The Oscillator crosses the zero line upward”. Now FSB will use this oscillator to compare two Momentum indicators using periods of 10 and 20 bars respectively. When Oscillator of momentum crosses the zero line upwards it means that Fast Momentum (10) also crosses Slow Momentum (20) upwards.
Now FSB will use this condition to enter the market long and will automatically adjust the opposite condition (The Oscillator crosses the zero line downwards) to enter the market short. The entry can only happen at Bar Opening price.

Crossover of two Simple Moving Average indicators
It gets a bit more complicated when using Simple Moving Averages. The
formula for MA is as follows:

MA(n) = (Price + Price1 + Price2 + … + Pricen-1 + Pricen) / n

In other words we sum up the base prices of the last “n” bars and we divide the result by “n”.

Another version of the same formula is this one:
MA(n) = MA1 + Price / n – Pricen+1 / n

We use the same logical conditions to determine if the two MAs cross each other.

1.FastMA(m)1 < SlowMA(n)1 – Sigma; and
2.FastMA(m) > SlowMA(n) + Sigma.
Let’s develop the second condition again:

FastMA(m) > SlowMA(n) + Sigma
FastMA(m) – SlowMA(n) > Sigma
FastMA(m)1 + Price / m – Pricem+1 / m – SlowMA(n)1 – Price / n + Pricen+1 / n > Sigma
Price / m – Price / n + FastMA(m)1 – SlowMA (n)1 + Pricen+1 / n – Pricem+1 / m > Sigma
(n*Price – m*Price) / (m*n) > Sigma – FastMA(m)1 + SlowMA (n)1 – Pricen+1 / n + Pricem+1 / m
Price > (Sigma + SlowMA (n)1 – FastMA(m)1 + Pricem+1 / m – Pricen+1 / n) * (n * m) / (n – m)

Now we can determine the base price at which the two MA indicators are equal and the values of the base price at which the two MA indicators cross each other.

Two MAs are equal when the current price is:

Critical Price = (SlowMA(n)1 – FastMA(m)1 + Pricem+1 / m – Pricen+1 / n) * (n * m) / (n – m)

Where:

Critical Price is the price at which the MAs are equal;
FastMA(m)1 is the previous value of the fast MA;
SlowMA(n)1 is the previous value of the slow MA;
m is the period of the fast MA;
n is the period of the slow MA;

If we want to enter the market when the two MAs cross each other then we’ll have to place our entry order at this “Critical” price. Depending on what price we use for a base price of those two MAs we might encounter some problems.

Let’s examine the following three examples where we use for our MAs base price these three prices: Open Price, Close Price and Median Price (High + Low) / 2.

Moving Average based on Open Price
In this case we certainly know the true price of bar opening because it doesn’t change for the whole bar. Therefore, the two MAs will not change while the bar develops. Thus the MAs can cross each other only at bar opening and will never cross inside a bar. So we can only open a position at the bar opening.

Moving Average based on Close Price
In this case we use the bars’ closing prices to calculate the MAs. And therefore, like in the first example, there is only one place in the whole bar where the two MAs can cross each other and that is at the closing of the bar. Thus we can only open position at the end of a bar:

Moving Average based on Median Price
Like in the previous example if we use a bar’s Median Price [(High + Low)/2] for our MAs base price we will only be able to open position at the closing of a bar. This time it is not so obvious since the High and Low prices are not at the end of a bar (usually). However, we cannot know what the correct High and Low prices of a bar are until that particular bar has closed. That is why we use market entry when the bar closing is reached. Opening at “Bar Closing” price is the only way to achieve robust backtest results.

This is also true when using other prices like Typical and Weighted as a base price.

Using other prices for entering the market
Forex Strategy Builder allows you to safely use two indicators crossover as a filter for entering the market. In order to protect the users from setting ambiguous entry rules, the software automatically turns on the “Use previous bar value” parameter. This way the historical test is carried out using correct data and will not result in ambiguous bars. In other words FSB does not cheat by “looking into the future” in order to obtain the missing data by getting the high, low and close prices the moment the bar opens.

Now let’s look at an example of a strategy using two MAs crossover as an entry signal where we enter the market at the price of the slower MA. Since the price of the slower MA can be reached during the bar we need to set strict rules of whether to enter the market and at what price. We’ll use the cross of the two MAs (Fast MA(10) and Slow MA (20)) as a logical filter. However, the only way to correctly recognize the signal is to use the previous values of the indicators that we know. That is why the “Use previous bar value” is turned on.

Conclusion
In order to conduct a reliable back test of a strategy we need to know the correct values of the indicators. There are many back test platforms that would give your indicator the high, low and close prices before the end of the bar and therefore ruining the test’s reliability.

It is not very difficult t realize that if we use MA that is calculated based on the Price Close, we cannot have a value for the current bar until the end of that bar (on a daily chart we cannot use the midday price as a close price to calculate the MA since that price will most likely change till the end of the day an we’ll end up using a false value of our indicator to enter the market).

Forex Software - The Benefits Of an Automated Forex Trading

Automated Forex Trading Software Benefits

Automated FOREX traffic can be a good approach to go about FOREX traffic as there have been most opposite programs as good as program available. This program can be a good apparatus for those that do not have a lot of knowledge as this program not usually can have your FOREX trades though it can additionally yield marketplace research report that can assistance we brand marketplace trends.

Some of a facilities that can be found in programmed program embody stop or extent orders, comment equity management, technical research indicators, optional marketplace orders as good as involuntary trailing stops. These facilities have it probable to do your FOREX trades rught away as good as during anytime of a day.

You can hook your trades by regulating most opposite indicators such as Wilder’s normal loyal vary, times array relocating average, straight plane filter, triangular relocating average, customary deviation, non-static relocating average, tailing stops, discerning relocating average, mass index, exponential relocating average, mounted stops as good as boundary or a weighted relocating average.

Automated FOREX traffic is so successful since in only a couple of seconds we can successful have a FOREX trade. The comparison normal process this traffic would take multiform hours instead of seconds. This is a most poignant good of regulating programmed FOREX software.

Additionally programmed FOREX traffic program additionally provides a approach to variegate as we right away have a capability to traffic in your made during home FOREX marketplace as good as a most opposite general FOREX markets. You additionally can pick up reduced tenure FOREX marketplace interpretation in means to demeanour during a stream marketplace trends. You can envision that of a banking pairs have been a most appropriate formed upon a program analysis.

By regulating an programmed complement we will be means to have some-more trades in a single day afterwards we would with a primer system. This is since a FOREX marketplace is updated in genuine time so we have a probability of creation during slightest 8 trades in an hour. You additionally might be means to have some-more trades after unchanging traffic hours as well.

Software can be a good time saver as we do not all a time need to be monitoring your trades. You can set up your complement to creates programmed trades so we can go about your day or suffer time with your family. The most opposite collection as good as marketplace research have FOREX program a good choice for any one meddlesome in a FOREX market.

Check out this Extremely Recommended Forex Software by Experienced Forex Traders :
Forex Software