Buys and Sells not matching in number - futures io
futures io futures trading



Buys and Sells not matching in number


Discussion in NinjaTrader

Updated by richw
      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 1,972 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 8 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Buys and Sells not matching in number

(login for full post details)
  #1 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 974 given, 845 received

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 futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
DLL with webrequest function for MC
MultiCharts
Need a near crosses scan help for TOS
ThinkOrSwim
EQIX - Digital REITs - any experiences?
Stocks and ETFs
OPEN_CLOSE_DOTS
ThinkOrSwim
Where is the link to download GomiRecorder?
NinjaTrader
 
 
(login for full post details)
  #3 (permalink)
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,215 given, 2,080 received



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 futures io Trade Journal Reply With Quote
The following user says Thank You to redratsal for this post:
 
(login for full post details)
  #4 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,050 since Jun 2009
Thanks: 31,658 given, 94,916 received

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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #5 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 974 given, 845 received

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 futures io Trade Journal Reply With Quote
 
(login for full post details)
  #6 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 974 given, 845 received

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 futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 974 given, 845 received

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

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #8 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,050 since Jun 2009
Thanks: 31,658 given, 94,916 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #9 (permalink)
Legendary Market Wizard
Salt Lake City, UT
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
 
richw's Avatar
 
Posts: 1,264 since May 2010
Thanks: 974 given, 845 received


Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Buys and Sells not matching in number


February 22, 2011


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts