Topic: Will you help me build this strategy for testing

Pair EUR/USD  using the 5 min chart
Indicators are the MACD using default settings and the 20 EMA

Long Trade

   1. Look for currency pair trading below the 20-period EMA and MACD to be negative.
   2. When price crosses above the 20EMA, then make sure that MACD is either in the process of crossing from negative to positive or has crossed into positive territory no longer than five bars ago.
   3. Go long 10 pips above the 20EMA.
   4.  Place a stop 20 pips below the 20EMA.
   5. Sell half of the position at entry plus the amount risked; move the stop on the second half to breakeven.
   6. Trail the stop by breakeven or the 20-period EMA minus 15 pips, whichever is higher.

Thank you for your help

Re: Will you help me build this strategy for testing

Hello fxdiva,

Setting the entry logic in FSB is easy:

1. Your entry point is:
- long: 10 pips above EMA20;
- Short: 10 pips below EAMA20.

[Opening Point of the Position]
Steady Bands
     Enter long at the Upper Band
     Smoothing method  -  Exponential
     Base price  -  Close
     MA period  -  20
     Margin in pips  -  10
     Use previous bar value  -  Yes


2. Entry logic conditions:

[Opening Logic Condition]
MACD
     The MACD line crosses the zero line upward
     Smoothing method  -  Exponential
     Base price  -  Close
     Signal line method  -  Simple
     Slow MA period  -  26
     Fast MA period  -  12
     Signal line period.  -  9
     Use previous bar value  -  Yes

[Opening Logic Condition]
Moving Average
     The position opens above the MA value
     Smoothing method  -  Exponential
     Base price  -  Close
     Period  -  20
     Shift  -  0
     Use previous bar value  -  Yes


or


[Opening Logic Condition]
MACD
     The MACD line is higher than zero
     Smoothing method  -  Exponential
     Base price  -  Close
     Signal line method  -  Simple
     Slow MA period  -  26
     Fast MA period  -  12
     Signal line period.  -  9
     Use previous bar value  -  Yes

[Opening Logic Condition]
Moving Average
     The bar opens above the MA value
     Smoothing method  -  Exponential
     Base price  -  Close
     Period  -  20
     Shift  -  0
     Use previous bar value  -  Yes


3. Exit Logic:
Set Permanent Stop Loss to -30 pips. (this is equal to "Place a stop 20 pips below the 20EMA" since you open 10 pips above 20EMA).



The other exit rules are too complex to be set in FSB.

Point 5 cannot be simulated.

For point 6 you can use a "Trailing Stop" of  -25pips.



You can use the Generator in order to generate proper exit rules. (Set the entry logic. Open the Generator. Lock the entry slots and start the Generator. It will change the exit logic only.)

Re: Will you help me build this strategy for testing

Hi there

I believe that you dont need to use MA open logic since this is already covered by Steady Bands as an opening point. Also if you place trailing stop at -35 and change MA in Steady Bands at 37 you will see better resuts for EUSUSD 5min

Re: Will you help me build this strategy for testing

steos wrote:

I believe that you don't need to use MA open logic since this is already covered by Steady Bands as an opening point.

Absolutely wink