View Full Version : Enter and close at same price
annettes
12-01-2009, 03:31 AM
Hi,
I am trying to develop a strategy using RSI as an entry trigger. My only exit is via a profit target or stop loss. But on running the backtester I am finding that frequesntly it enters a trade and closes the position immediately at the same value at which it entered. I do not understand why. I have attached a screenshot showing an example of this, and the code, which was generated by the Strategy Wizard.
Thanks for any help you can offer.
Regards,
Annette
NinjaTrader_Bertrand
12-01-2009, 04:14 AM
From the screenshot it seems you reversed at this price, so no exit via stop loss or profit target.
annettes
12-01-2009, 04:26 PM
Hi Bertrand,
Thanks for your reply, but I'm sorry, I don't understand. How can it close a position when I haven't asked it to? What has caused it to reverse?
Thanks,
Annette
NinjaTrader_Bertrand
12-02-2009, 10:51 AM
You would see the reverse because of your entry rules, please add a drawing on your conditions to see when you should expect an order.
annettes
12-07-2009, 09:57 PM
What I wasn't understanding previously was the fact that if you have say a long position open and you enter a short position, it first closes your long position then enters a short position - two actions not one. Can you please tell me where in the documentation this is explained? It is not mentioned under enterShort or enterLong which would seem to be the logical place.
Are there any other situations where Ninja performs two actions when you might only expect one?
NinjaTrader_Bertrand
12-08-2009, 04:35 AM
annettes, I'm not aware of other occurences you would need to keep in mind - thanks for pointing this out - we're working on enhancing / overhauling our documentation for NinjaTrader 7.
To enter you into a long position NinjaTrader would logically need to take your current (if any) position flat, otherwise you could just enter up being flat instead of the desired 'long'.