Topic: Help Comiling a specific Startegy

Hello all of you out there who have been using ForexSB for sometime I need your help.

I need to test the following strategy:

Buy 10 Lots at a simple indication that price will move upwards.
If price moves up minimum 10 pips I sell all the lots.

If price moves down minimum of 10 pips I buy an additional Lots. Then sell all lots when price returns to my purchase price.

Can anybody help please.

Re: Help Comiling a specific Startegy

As I see, your strategy needs of two different entry logics and this makes it difficult for testing in FSB. 
The other unclear place is that you are not specify how to close the position if the price does not go in the direction of your Take Profit level (after the averaging).

So, for the first part of your logic:

Buy 10 Lots at a simple indication that price will move upwards.
If price moves up minimum 10 pips I sell all the lots.

You can use this:

Forex Strategy Builder V 2.4.3.0
Strategy name: New
Exported on: 4/29/2007 9:32:27 AM

Market: EURUSD 1 Day
Spread: 4 pips
Swap Number: 1 pip

Balance: 2796 pips
Minimum account: -1568 pips
Maximum drawdown: 1740 pips
Time in position: 100 %

The same direction signal - does Nothing
The opposite direction signal - Reverses the position

[Opening point of the position]
Steady Bands
     Open long at the Up Band
     Smoothing method  -  Simple
     Base price  -  Open
     MA period  -  1
     Margin  -  10
     Use previous bar value  -  No

[Closing point of the position]
Take Profit
     For demo only!!!
     Take Profit  -  10

The Steady Bands places two entry orders in both sides of a Moving Average. In this case it is equal to the bar's opening price. The bands are +/- 10 pips away from the central MA.

Since we have not a Stop Loss level, I use The opposite direction signal - Reverses the position. This will reverse our position if the price reaches the opposite Steady Bands' band.

This strategy uses two entry points and another two exit points and all they can be inside a single bar. In this case, we can never be sure for the correct order of its execution. So the result of the back-test can be different from the real one!

Re: Help Comiling a specific Startegy

Hi friends,

I have generated one strategy, but I don't know, how can I make an EA out of that.

Can anybody help me make an EA?

Thanks in advance.

andy

rarshi@yahoo.com

Re: Help Comiling a specific Startegy

If anybody need help to make EA for MQL4, I found this page:
http://forum.mql4.com/6228