PDA

View Full Version : Stuck Orders and P/:


pivot44
03-19-2006, 04:24 AM
No orders shown, but P/L updates and position shown in control panel. Cannot close, cancel all or flatten everything. Tried fixing DB and using Windows Control Panel to repair - didn't work. Second time this happened in last two days. Once with previous beta and now with this release.



Fixed by selecting no strategy andentering opposing order, but don't know why this is happening.

Both times, this has happened after testing strategy as follows:

one stop andtwo targets (50/50)

scale in at lower price



Afterentries worked perfectly, and then closing position and reentering same strategy a second time, original order execution places only onetarget. Scale-in second order places two targets correctly. Graphic attached ofDOM after first entry.


5.1.1000.1

NinjaTrader_Ray
03-19-2006, 08:06 AM
Tools-->Options-->Simulator-->Reset

pivot44
03-19-2006, 10:30 AM
Reopened, no hung orders or P/L, reset to be sure.

Still getting first order of two entered incorrectly as one profit target. Second scale in order entered correctly as two 6 contract targets (see screenshot).

What am I missing??

NinjaTrader_Ray
03-19-2006, 11:07 AM
The picture looks correct to me so letme ask a few questions:

- With your strategy selected, 12 contracts split 6 and 6 across two targets, place a market order long.

Do you get two targets or do you get 1 target with 12 contracts?

Ray

pivot44
03-19-2006, 11:11 AM
When selecting long strategy (same parameters), I get same results, one 12 contract target.

NinjaTrader_Ray
03-19-2006, 11:22 AM
Please try this:

Select <Custom>

Create your 2 target strategy, place order. What do you get?

pivot44
03-19-2006, 01:02 PM
Using Custom and creating same strategy and entering before saving strategy results same thing; first order one 12 contract target and second split correctly 6/6.

NinjaTrader_Ray
03-19-2006, 02:15 PM
Please do this -

File-->New SuperDOM

Right click properties, press "Reset"

Select <Custom> then do a basic strategy with 2 targets, do not add any other options. Please order to fill, what do you get?


Thanks

pivot44
03-19-2006, 02:20 PM
Same thing.

NinjaTrader_Ray
03-19-2006, 02:28 PM
I can't think of anything that you are doing that would produce this behaviour. I can not reproduce and we do not have any other report of any similar behaviour. I doubt this would make a difference but you could uninstall NT via Windows control panel Add/Remove programs, then manually delete the folder C:\Program Files\NinjaTrader Version 5. You will lose all your data. Make sure you save your license key (Help-->License Key), reboot, then re-install and try.

Ray

pivot44
03-19-2006, 03:04 PM
No change after uninstall and reinstall - but I did catch something.

Entering a single order results in proper execution, 2 targets. Then entering a second order posts additional 12 contract target at first original target.

But entering two orders before either is executed (usual scenario) results in problem.

I think it has to do with the difference between two strategy orders versus one strategy order and one scale-in quantity (property).

Time for sleep. Will look at forum in AM

NinjaTrader_Ray
03-20-2006, 01:47 AM
That was the difference, placing two orders before the first is filled. Will look into this. Thanks for reporting.

pivot44
03-20-2006, 01:47 AM
Same problems this AM.

Brought up strategy with two targets - 50/50. Entered two orders below the market. First one executed and one target displayed. Could not split target although not greyed out. When target hit, second order cancelled. Cannot follow this logic at all.



SelectActiveStratetgyOnOrderSubmission selected.



What shoud Scale quantity be set to ?

pivot44
03-20-2006, 01:48 AM
Last messages crossed; will await word from you. Thanks.

NinjaTrader_Ray
03-20-2006, 06:08 AM
After reviewing this, the program does operate as it was designed. The second order placed (before the 1st order isplaced) fills are applied to the 1st target which is why you get the result you get. At this time, we will not be changing this behaviour.

Ray

pivot44
03-20-2006, 07:28 AM
I'm afraid I don't understand what you mean by " The second order placed (before the 1st order isplaced)".

If I place two orders, why does the first have only one target when executed?

NinjaTrader_Ray
03-20-2006, 02:36 PM
If you have a strategy for 12 contracts and place the first order for 12, that is considered the entry order.

Subsequent orders are considered scale orders.

When you place a scale order, the fills are ammended to existing stops/targets based on the options set underTools-->Options-->Strategies, regardless if they have been submitted or not.

So in your case, when you submit the scale order, it will change the stop/targets to fill 18 (6 from the original order plus the new 12).

Ray

pivot44
03-20-2006, 02:57 PM
:(Ray, we're going in circles!

I understand your explanation, and I agree that's how it should work. But it does just the opposite.

The first order of 12 (6/6) enters only 1 target of 12 at the first target price, despite having two targets set. (THIS IS THE IMPORTANT POINT).

The second order of 12 amendS the first target by adding six contracts, and displays an additional 6 contracts at the second target. (THIS PART MAKES SENSE)

In other words, the second order executes correctly, while the first order showsonly one target for the full amount

Why does the first order, which has two targets, enter only one target when executed?


I tried to upload a short Camtasia movie of what happens, but it asks for a URL, not a file location.

NinjaTrader_Ray
03-20-2006, 03:13 PM
Sorry, maybe I am not explaining things clearly.

Why does the first order, which has two targets, enter only one target when executed?

Because when you place the second order which is a scale order, it ammends the target qty from 6 to 18. When your first order fills, it submits an order for 12 of 18 contracts for target 1. Then once the 2nd order fills, it completes the remaining 6 of 18, then places the 2nd target for the remaining 6.

Ray

trymph
03-23-2006, 12:19 AM
I too am trying to learn the logic of targets and scaling. Regarding this situation....is it correct then if only the 1st order of 12 were working/filled the targets would be distributed 6x6? Then AFTER 12 are filled a second order placed would then distribute upon execution 6x6 also making for 2 targets of 12 each? ..........



In your example where both 12 lot orders working and distributed 18x6 once both were filled...........what would happen if you +target ..............or - target.........then what would happen upon -target after +target or +target after -target?

Still working on this +/- target logic when toggling/scaling in........I realize that settings in options/strategies makes a difference....but for now I have both choices turned off..........

Regards

Bruce