PDA

View Full Version : Avoid re-enter


MAX
01-02-2007, 05:22 AM
I'm using the NT6 Beta version and I programmed a Signal that buy/sell limit and exit in stoploss or profit target. The thing I'd like, is to avoid the system to get again in position when a stoploss is generated.
In the attachment you can find an example.If, for instance, I'm long and my stoploss is 3 points below my entry point, maybe the 3 points is also the setup to buy limit, but it is not my intention to buy for example in a panic selling.
Below is the code I used to try to solve the trouble. Can you suggest me a solution if any)

Thanks.

if (Position.MarketPosition != MarketPosition.Long)

{
EnterLongLimit(CTR, DonchianChannel(LEN).Lower[1], "Buy Limit");

NinjaTrader_Ray
01-02-2007, 05:41 AM
Max,

When running the backtest, do you set Entries per direction= 1 in the strategy dialogue window along with Entry handling = AllEntries?

Ray