NexusFi: Find Your Edge


Home Menu

 





Strategy stop orders partially filled


Discussion in EasyLanguage Programming

Updated
    1. trending_up 191 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 2 attachments




 
Search this Thread

Strategy stop orders partially filled

  #1 (permalink)
nfgrufio
Atlanta, GA
 
Posts: 17 since Apr 2023
Thanks Given: 1
Thanks Received: 0

I have started testing a strategy in real-time, and every now and then I have some stop orders that will only get partially filled.
My trade manager tabs confirms this, which I have attached a photo of. Usually, the orders are filled as expected.
I thought that maybe there was a setting I was missing, but couldn't find anything relevant to the issue.

The commands being used are:
buy("B") 1000 shares next bar at n_price Stop;
sell("SL") 1000 shares next bar at n_price Stop;

Each order command is being issued when conditions are met.
IOG is being used, so "next bar" means next tick in my case.

Unless I am not understanding how these behave in real-time, I can't wrap my head around why these would be getting partial fills!
Shouldn't they always be filled, at whatever available price?

Thanks for any help in advance!

Attached Thumbnails
Click image for larger version

Name:	orders.png
Views:	30
Size:	17.9 KB
ID:	339192  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Is there a way to simulate CONTINUOUS CONTRACT?
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Quantum physics & Trading dynamics
The Elite Circle
CosMik Z-TP Trading System
NinjaTrader
Help re translation of ninjascript to EL
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
74 thanks
GFIs1 1 DAX trade per day journal
17 thanks
Trading with Intuition
9 thanks
Risk/reward above 1.0
7 thanks
Just another trading journal: PA, Wyckoff & Trends
7 thanks
  #2 (permalink)
toucan94506bm
danville ca usa
 
Posts: 80 since Aug 2015
Thanks Given: 49
Thanks Received: 76

I suspect that your order uses up all the shares at n-price before filling the entire order #shares..

Reply With Quote
  #3 (permalink)
nfgrufio
Atlanta, GA
 
Posts: 17 since Apr 2023
Thanks Given: 1
Thanks Received: 0



toucan94506bm View Post
I suspect that your order uses up all the shares at n-price before filling the entire order #shares..

Maybe I'm not understanding how strategies interpret these buy/sell commands.
N-price is merely the price that a market order is triggered upon. Shouldn't the entire order be filled regardless of the price its being filled at, once the target price(n-price) is traded?

Reply With Quote
  #4 (permalink)
toucan94506bm
danville ca usa
 
Posts: 80 since Aug 2015
Thanks Given: 49
Thanks Received: 76

You could be right I thought buy (B) was like a buy limit order and sell (SL) was like a stop market order... I haven't used strats for orders in a long time

Reply With Quote
  #5 (permalink)
nfgrufio
Atlanta, GA
 
Posts: 17 since Apr 2023
Thanks Given: 1
Thanks Received: 0

On further inspection, I came across an older post where someone had mentioned being able to diagnose issues from the messages tab in the trade manager window.
Turns out this message log shows a lot of information I wasn't aware of.

I've attached those messages, regarding partial fill trades that were made today.
Although I haven't been able to decipher what has been happening from the message log, I'm hoping this will some shed light on the issue.
The log shows all the events when entering a long position, with a partial fill, and then selling that same position. At end of the trade, I had bought 600 shares and then sold 600 shares, even though I was using a stop market order for 1000 shares, as shown in the log.

The events are in ascending chronological order, as shown in the time stamp.
For some reason, one of the messages was exported out of order. Not sure what thats about!

partial fills

Reply With Quote
  #6 (permalink)
toucan94506bm
danville ca usa
 
Posts: 80 since Aug 2015
Thanks Given: 49
Thanks Received: 76

Agreed.. I always keep this up as well as open orders and open positions... Just to be sure I don't f#$k anything uP.. Especially when I quit trading for the day

Cheers toucan

Reply With Quote




Last Updated on May 20, 2024


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts