Topic: Help Needed: Unsure why positions are closing

I'm trying to replicate a system I saw in a book for daily charts.  I believe I have the entry rules down, but for some reason when I get a signal it is closed out the next day and I can't understand why.

I have looked at the trades and the opposite signal is not triggered, nor is the SL or TP hit.  I have tried to link all the opening conditions together when an "And" condition, but does that mean if only one of the 3 becomes false the trade will close?

Any other suggestions for things to check would be appreciated.

A copy of the system is below:
Strategy name: EURUSD_D1
Forex Strategy Builder v2.64.0.0
Exported on: 1/18/2012 8:44:24 PM

Description:
Automatically generated on 1/17/2012 2:47 PM.
Out of sample testing, percent of OOS bars: 50%
Balance: 6670 pips (11/25/2011 8:48 AM  Bar: 49999)

Market: EURUSD 1 Day
Spread in pips: 20.00
Swap Long in pips: 2.00
Swap Short in pips: -2.00
Commission per lot at opening and closing in pips: 0.00
Slippage in pips: 20

Maximum open lots: 20.00
Entry lots: 1.00
Adding lots: 1.00
Reducing lots: 1.00

Intrabar scanning: Not accomplished
Interpolation method: Pessimistic scenario
Ambiguous bars: 0
Tested bars: 2198
Balance: 2294 pips (12294.00 USD)
Minimum account: -4737 pips (5263.00 USD)
Maximum drawdown: 6278 pips (6278.00 USD)
Time in position: 13 %

[Strategy Properties]
     A same direction signal - Adds to a winning position
     An opposite direction signal - Reverses the position
     Permanent Stop Loss - 5000
     Permanent Take Profit - None
     Break Even - None

[Opening Point of the Position]
     Bar Closing
     Enter the market at the end of the bar
     Base price  -  Close

[Opening Logic Condition]
     Moving Averages Crossover
     [ A ]   The Fast MA is lower than the Slow MA
     Base price  -  Close
     Fast MA method  -  Simple
     Slow MA method  -  Simple
     Fast MA period  -  3
     Slow MA period  -  20
     Fast MA shift  -  0
     Slow MA shift  -  0
     Use previous bar value  -  No

[Opening Logic Condition]
     Moving Averages Crossover
     [ A ]   The Fast MA is lower than the Slow MA
     Base price  -  Close
     Fast MA method  -  Simple
     Slow MA method  -  Simple
     Fast MA period  -  1
     Slow MA period  -  1
     Fast MA shift  -  0
     Slow MA shift  -  20
     Use previous bar value  -  No

[Opening Logic Condition]
     Moving Averages Crossover
     [ A ]   The Fast MA is higher than the Slow MA
     Base price  -  Close
     Fast MA method  -  Simple
     Slow MA method  -  Simple
     Fast MA period  -  1
     Slow MA period  -  1
     Fast MA shift  -  0
     Slow MA shift  -  23
     Use previous bar value  -  No

[Closing Point of the Position]
     Bar Closing
     Exit the market at the end of the bar
     Base price  -  Close

Re: Help Needed: Unsure why positions are closing

According to your logic the position closes at the end of each bar.

[Closing Point of the Position]
     Bar Closing
     Exit the market at the end of the bar
     Base price  -  Close

I would change your closing point to "stop loss" and set the stop loss level at  5000. At the same time increase your permanent stop loss in Strategy Properties to 5500. Should work then.

Re: Help Needed: Unsure why positions are closing

Hi SpiderMan - Thanks for the quick reply!  You nailed it - I was looking at is so long it was I didn't see it in front of my face.  Now I understand that without an additional closing logic slot, if I use "Bar Close" for position it will close right away.  Now I know better :-)

Thanks!

Re: Help Needed: Unsure why positions are closing

Probably will be more clear for the new users if we make two dummy indicators: No entry indicator and No exit indicator. We may also change the default new strategy by one using these indicators.