21 crossing 200 EMA 24 hours trading robot

the first robot trading the 21 with the 200 ema cross was successful trading in the US session. The obvious question is how the same program will perform trading 24 hours a day.

Emas Cross 21 – 200 Running 24 hours

2010 historical tests:

January 74.54
February 169.79
March 157.25
April -7.36
May 68.80
June 184.57

——————————–
578.79

Results are impressive, but there was a mont5h with losses (april), small ones but losses.  in this case the robot should run 24 hours a day as it makes more money than in the US session only.

Tags: , , , , ,

EMAs Cross Robotic Trading

This is an edge i was always trying to use when i was trading manually.  Without the discipline problems this robot will just execute a trade when the 21 EMA Cross the 200 EMA up or down side.
At the same time the EA opens a SL and a TP of 20 pips and it stays in the market until one of the 2 gets executed.

Emas Cross 21 – 200

Here is a nice image of what the robot can do in action, simple but effective:

Lets see how he can do it in the strategy tester, for the US session, euro-dollar market:

January 35.84
February 50.99
March 78.93
April 17.14
May 92.30
June 95.00

——————————
370.2

this is great, even if it doesn’t look as much earnings this program made profits every month, it never had a month with losses.
Risk seems small too i will have to learn how to calculate risk.
I will make some tweaks to this program, i will also test it 24 hours. i am seeing in the internet that there is the possibility to have dedicated windows hosting for mql to don’t rely on my own internet connection and local problems so the 24 hours trading is still a possibility.

I am glad to see some light at the end of the tunnel and have something that can really work, i think i am in the right path.

Tags: , , , , ,

11 – 31 Moving Averages Difference for Trend Development US Session Only

Same as Expert Advisor 1 but with the addition of a trade range, in the US session only. This is more realistic to develop at my home office, i don’t want to have computers turned on 24h for now.

Expert Advisor 2 – US Session Trading

As we can expect the program will make less trades in the euro-dollar market:

January -147.61
February -82.53
March -203.67
April -91.90
May 89.77
June 15.66

————————————
-420.28

It is clear that the robot can’t perform well in the US session only either, but this was expected so no problem. this EA was made mainly just to have a robot that can trade only while i am following it. each edge will have to be tested using 24 hours, american session, europe, tokyo, etc.


Tags: , , , , , ,

Experts Advisors and historial tests

To test a strategy we have the strategy tester that came with the meta trader program. on it we can see how the robot performs in past months, days, etc.
We are interested on monthly tests to start, our experts advisors are for the 15 min chart.

We had been working in real time with this robot but the results are to slow to take conclusions and are very limited to human factors, sometimes i want to try something else, some others i don’t even trade or wake up at the right times.

The strategy tester runs on a perfect world, a world where there are no errors,  where computers are always on and perfectly running. We know reality is a little harder but i think the strategy tester is the best way to know if an expert advisor will work or not in the real world of trading.

11 – 31 Moving Averages Difference for Trend Development Test results 2010:

January 2010.

Details January

Earnings:  -111.21

February 2010.

Details February
Earnings:  -104.54

March 2010.

March Details
Earnings:  -242.67

April 2010.

April Details
Earnings:  -150.48

May 2010.

May Details
Earnings:  168.92

June 2010.

June Details
Earnings:  113.49

So in 6 months, this robot made:
January -111.21
February -104.54
March -242.67
April -150.48
May 168.92
June 113.49
————————-

-326.49

The strategy will loose money in the long term if we take what the strategy can do in the last 6 months. It is interesting to see how the robot made better in the last 2 months (may and june) while the first 4 months of the year were all losses.
The strategy haves to be tweaked, remember this was just a test, this wasn’t even my strategy.

Remember here the EA was running 24 hours, i am going to tweak this robot to trade in the American Session only as it is more realistic. I can’t afford computers turned on 24/7 for now.

After the time test i will change criteria of the expert advisor so it can trade other signals.

Tags: , , ,

Auto trading the cable

I changed the automatic robot to run in the gbp-usd market instead of the euro so i can have the euro free for manual trades.  With the robot running, only one trade can be done in a given market at the same moment. So the robot will be trading the sterling while i will be able to still find strategies using my favorite market, the euro against the dollar.

Remember, the trades done by this first robot can be found here:  11 – 31 Moving Averages Difference for Trend Development info and operations

At 10:09 am EST the robot start running, at the same time criteria is found so the robot get in the market without hesitation:

The robot fails but criteria still there, the EA opens another trade:

This time the EA worked good and the trade is a winner, robot is in even now:

Another winner, EA is at +20 now:

Fails, EA at even now, 4 trades made for now in the US session, it is 11:58 am EST now:

Criteria was correct, EA won 20 again and it is at +20 now.
This time the robot don’t open a new trade as criteria ended, it is 2:04 pm EST now:

2:34 pm EST criteria is present again, EA makes a new trade:

robot fails but criteria still present for a new chance:

Fails again and criteria ends:

It is hard to know if this robot will work in the long term. Mql4 provides a feature to test the EAs using historial data,  lets do that to the robot before making any modifications to it.

Tags: , , , , , , , ,

First automatic trades in the euro

Here some images and info about how the robot works in real time trading.

Early in the US session the robot get in the market short side.

The market hit the stop loss, the trader is losing 20 right now. At the same time of the loss the robot open another trade as criteria is still there (ma 31 – ma 11 >= 18).

A new loss of 20 (stop loss) and a new entry as criteria still present:

Here is a program bug, i think that the robot should not wait until the stop loss is hitted to get out of the market, it haves to react if the criteria ends in the middle of the trade.
in the next image the robot exit the trade and don’t open a new one as criteria is not present anymore:

3 bad trades in a row made by the robot, lets test it tomorrow as it is.

Tags: , , ,

Robot iron discipline

I had read this in many books and articles, “if there is no pattern present the best is don’t trade” or “do you have what is needed to don’t trade?”, things like that are very common in the trader literature.

The thing is, that is of course a lot more easy to say than to really do.  Emotions control me during real trading session, the robot will always follow the pre established rules.

In a very quiet day like today the difference between the 2 moving averages was never 18 pips so the robot just did nothing in the hole American session.

I will be leaving the robot running overnight to see if he can catch some move, i will know tomorrow:

Tags: , , ,

First Auto trade

The first robot i will be testing is the one i call “11 – 31 Moving Averages Difference”, it is a very basic expert advisor for mql but i will help me to start to see how all this work.

Please check the trades i am making with this robot and the variables used in here:  http://fforex.me/robots/11-31-moving-averages-difference/

Let’s see how it works with some images, here the robot makes an entry in the short side.
Please note that at this time that the difference between the 11 and the 31 moving averages is equal or more than 18 pips. This gives the robot criteria to open a short order.
The robot simple obey and open the trade:

Here you can see the market trading very close to the TP line of 20 pips but without hitting it:

The market bounce up, robot was very close to profits but now we are facing losses. The robot idea is no intervention so i am just spectating totally outside:

SL is finally hitted, the trade ends with -20.90 pips.

Even with a loss, i learned a lot from this trade and i liked this EA. It was so close to profits that i am sure this robot can win sometimes, i like the criteria the robot haves and it is a great start to make bigger things.

Remember to check how the robot is doing here:

http://fforex.me/robots/11-31-moving-averages-difference/

Tags: , , , , , ,

New Section

This new section will be to store my robot trading activities. i am learning to program trade operations in mql4, it can be a great way to don’t break my own rules.

i will be testing strategies from others and developing my own experts advisors here