NexusFi: Find Your Edge


Home Menu

 





Buys and Sells not matching in number


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one richw with 5 posts (0 thanks)
    2. looks_two Big Mike with 2 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 redratsal with 1 posts (1 thanks)
    1. trending_up 3,053 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Buys and Sells not matching in number

  #1 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,809 since May 2010
Thanks Given: 2,246
Thanks Received: 1,541

I am working on a strategy that averages down. I am running into a problem. For some reason, after it averages down more than two times it seems or it could be that the fill executions are greater than the original number of orders, the number of contracts in the target are greater than the number of contracts in the position. Can anyone shed some light on why this is happening and what to do to resolve it?

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
45 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090



richwaters View Post
I am working on a strategy that averages down. I am running into a problem. For some reason, after it averages down more than two times it seems or it could be that the fill executions are greater than the original number of orders, the number of contracts in the target are greater than the number of contracts in the position. Can anyone shed some light on why this is happening and what to do to resolve it?

Tag your entries (target1,target2, etc...) so you can track on the chart how the executions are placed

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

Best way to troubleshoot is via the output window. Write print() statements when adding to a position and evaluate the current position size, and the bar # you are adding to, so you can hunt down any problems.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,809 since May 2010
Thanks Given: 2,246
Thanks Received: 1,541

I am new to programming in NinjaTrader. Can you point me to an example of how I would accomplish printing to output the orders as they happen?

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,809 since May 2010
Thanks Given: 2,246
Thanks Received: 1,541

When the condition for long entry is true, 12 orders are set up at once at different intervals. Frequently, just after the entry signal is triggered, and even after some fills, the condition is no longer true and the orders are cleared. Then, the condition becomes true again and the orders are back, but those that have already been placed are ignored. Could this setting up of the orders, removing the unfilled orders, and then putting them back cause the buys and sell targets to get out of whack? If so, can someone point me in the right direction as to how to handle the orders properly if this is not the best way?

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,809 since May 2010
Thanks Given: 2,246
Thanks Received: 1,541

...advanced order handling using IOrder methods. I think it will be well worth the time to learn it.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610


richwaters View Post
I am new to programming in NinjaTrader. Can you point me to an example of how I would accomplish printing to output the orders as they happen?

NT has something built in called TraceOrders. In #init put "TraceOrders = true;" and then open your output dialog box and it will print debug statements on all order handling.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #9 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,809 since May 2010
Thanks Given: 2,246
Thanks Received: 1,541


Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on February 22, 2011


© 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