PDA

View Full Version : Entry Per Direction strange Behavior


PrTester
01-29-2009, 03:23 PM
I got an automatic strategy running with an entry per direction set to one.

Today have the following behavior:

Entry Long lets say at 100, my stop loss set at 90. After some time the trade move in my direction and my BE feature move my stop at 101.

At some time a retrace occur but my exit conditions don’t met and my entry criteria setup show up again. If my strategy entry set up per direction was setup for two it would entry again Long at 110 with stop at 100 and waiting for the BE feature to act.

The strategy move my stop from 101(actual position after BE on first trade) to 100 (imaginary position if a 2 trade was take), then after BE feature met again move to 101.

This is an expected behavior?

NinjaTrader_Bertrand
01-29-2009, 03:38 PM
Hi PrTester, the EntriesPerDirection setting will just determine if another entry in the same direction is taken or not.

The question you refer to is handled by the 'OrderHandling' settings under Tools > Options > Strategies > NinjaScript.

http://www.ninjatrader-support.com/HelpGuideV6/StrategiesTab.html

The first one creates a new set of stops and targets, the second option amends those to the existing ones.

PrTester
01-29-2009, 04:07 PM
Hi PrTester, the EntriesPerDirection setting will just determine if another entry in the same direction is taken or not.

The question you refer to is handled by the 'OrderHandling' settings under Tools > Options > Strategies > NinjaScript.

http://www.ninjatrader-support.com/HelpGuideV6/StrategiesTab.html

The first one creates a new set of stops and targets, the second option amends those to the existing ones.


Thanks for the quick reply, so in order to not amends the existing stops and targets, I should select by strategy position?

Regards

NinjaTrader_Bertrand
01-29-2009, 04:19 PM
No, for creating a new set of stops and targets you should select 'PerEntryExecution'. For example if you then get partial fills on two limit orders, you might end up with 4 sets of stop/target orders as each execution is treated individually.

PrTester
01-29-2009, 04:56 PM
No, for creating a new set of stops and targets you should select 'PerEntryExecution'. For example if you then get partial fills on two limit orders, you might end up with 4 sets of stop/target orders as each execution is treated individually.


If I don't want a second fill order and just leave the current the way it is?

NinjaTrader_Josh
01-30-2009, 07:13 AM
PrTester,

Try "ByStrategyPosition" then. This will amend your current stop/target orders to reflect the larger quantity size.

PrTester
01-30-2009, 07:22 AM
PrTester,

Try "ByStrategyPosition" then. This will amend your current stop/target orders to reflect the larger quantity size.

Josh,

Thanks for the reply, my old setting was "Per entry execution" and my stops where modified without the addition of any position, just to be clear if I don't want to add more position and don't want my stops to be modified i should change my setting to "ByStrategyPosition".

Thanks and Regards

NinjaTrader_Josh
01-30-2009, 07:31 AM
PrTester,

PerEntryExecution submits a new set of stop/targets on each execution for an entry order.

ByStrategyPosition modifies a single set of stop/targets to cover the whole position.

Both modifies stop/target prices if told to do so. If no price change is to be made just submit with a static price. If no quantity change is to be made, don't use Set() methods and instead submit ExitLongStop() and ExitLongLimit() orders and manage it manually.