Problem with Order Overfills with NinjaTrader. What about Multicharts? - MultiCharts | futures io social day trading
futures io futures trading


Problem with Order Overfills with NinjaTrader. What about Multicharts?
Updated: Views / Replies:3,929 / 7
Created: by lawtan Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Problem with Order Overfills with NinjaTrader. What about Multicharts?

  #1 (permalink)
Elite Member
Singapore
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Apr 2010
Thanks: 0 given, 0 received

Problem with Order Overfills with NinjaTrader. What about Multicharts?

I have been writing strategies and testing them on NinjaTrader for several months, and once I activate them with live account, I got "order overfill" problem. I implement 1 stop order, and 1 exit order my strategy and do not see anyway to simplify my strategy anymore. I have implemented the Stop order in the OnExecution rountine instead, and still the problem exists. After several correspondances with the Technical Support, there is no clear way to define how it occurs. Most of the time, I do not face this problem in simulation mode, but once the strategy goes live, this problem occurs, and usually it places the order abruptly in the wrong direction, causing me losses in the errorneous trade.
1. I wonder if there is any good way to avoid this problem in NinjaTrader script.
2. Perhaps it is the platform problem. I would also like to explore other more stable and robust trading platforms that I can rely on for live trading e.g, Multicharts recommended by Big Mike. I wonder if this type of "order overfill" problem can be better managed and avoided. Any comments will be appreciated.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,352 given, 83,232 received

Answer
This post has been selected as an answer to the original posters question Answer



lawtan View Post
I have been writing strategies and testing them on NinjaTrader for several months, and once I activate them with live account, I got "order overfill" problem. I implement 1 stop order, and 1 exit order my strategy and do not see anyway to simplify my strategy anymore. I have implemented the Stop order in the OnExecution rountine instead, and still the problem exists. After several correspondances with the Technical Support, there is no clear way to define how it occurs. Most of the time, I do not face this problem in simulation mode, but once the strategy goes live, this problem occurs, and usually it places the order abruptly in the wrong direction, causing me losses in the errorneous trade.
1. I wonder if there is any good way to avoid this problem in NinjaTrader script.
2. Perhaps it is the platform problem. I would also like to explore other more stable and robust trading platforms that I can rely on for live trading e.g, Multicharts recommended by Big Mike. I wonder if this type of "order overfill" problem can be better managed and avoided. Any comments will be appreciated.

MultiCharts gives you a lot more control and flexibility than NinjaTrader with automated order execution.

- You can tell it if it should get the quote data from the broker, or from your data feed.
- You can tell it if it should recalculate based on events like order filled or market position change.
- You can tell it to run in sync or async mode, meaning entries/exits are based on what the broker is reporting your position as, or what MultiCharts reports internally.
- Each strategy you run can be told to execute at a different broker, its controllable per-strategy, just like you can control the chart per-datasource.

I suggest you get the trial of MultiCharts and see for yourself. Here is just one excerpt from the on-line help:


Quoting 

Synchronization of the Market Position in the Auto trading Mode

In auto-trading, there are certain circumstances which may cause the actual position and the position shown on the chart to be different. MultiCharts gives the user the ability to set the initial position of the strategy so that the actual position and the position on the chart will be synchronized.
For example, a strategy has long and short orders. The buy order reverses the short position, and the short order reverses the long position. If the position is long 1 contract, then the strategy will sell 2 contracts to reverse the long position. Conversely, if the position is short 1 contract, then the strategy will buy 2 contracts to reverse the short position. The strategy is always either long 1 contract or short 1 contract. The problem arises when this strategy is initially turned on. When this strategy is initially turned on, the actual position is flat. However, the chart will show, for example, that the strategy is already long 1 contract. When the short signal fires, the strategy will think that it already has a long position and therefore short 2 contracts to reverse the long position. This means the actual position is short 2 contracts instead of short 1 contract. Yet the chart shows that the strategy is only short 1 contract, and the actual position should only be short 1 contract.

MultiCharts can prevent such problems from occurring. Before turning on auto-trading, the user can specify the actual position and MultiCharts will understand how to synchronize it with the strategy. In the example above, the user can specify that the actual position is flat. When the short signal fires, MultiCharts will only short 1 contract instead of 2 contracts. The actual position is now synchronized with the chart, and the actual position is correct. Both the actual position and chart position are short 1 contract.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #4 (permalink)
Market Wizard
Boca Raton
 
Futures Experience: Advanced
Platform: Variety
Broker/Data: Optimus Futures, LLC
Favorite Futures: Futures
 
mattz's Avatar
 
Posts: 2,059 since Sep 2010
Thanks: 1,933 given, 2,786 received
Forum Reputation: Legendary

I want to attempt and help you with that.
Can you give a specific example of what the strategy was suppose to do and what it did instead.

PM with any questions about optimusfutures (800) 771-6748 (561) 367 8686. THERE IS A SUBSTANTIAL RISK OF LOSS IN FUTURES TRADING.
Reply With Quote
 
  #5 (permalink)
Market Wizard
Boca Raton
 
Futures Experience: Advanced
Platform: Variety
Broker/Data: Optimus Futures, LLC
Favorite Futures: Futures
 
mattz's Avatar
 
Posts: 2,059 since Sep 2010
Thanks: 1,933 given, 2,786 received
Forum Reputation: Legendary

From the little research I have done:


If your strategy is working in sim mode, but not in live as expected, you will most likely need to de-bug your strategy order placement method and take an unmanaged order method approach. You can self manage the orders meaning the strategy is not terminated. The Unmanaged approach should only be taken if you are a very experienced programmer based on the risks involved. However, the upside is the Unmanaged approach offers ultimate flexibility in terms of NinjaTrader order submission and management. I would suggest reviewing the NT 7 help guide that covers 'overfills' when taking an Unmanaged approach.


I would suggest also to resend the traces/logs to NT again. If you do, I will give them a push to answer your email.

Let me know if you do.

PM with any questions about optimusfutures (800) 771-6748 (561) 367 8686. THERE IS A SUBSTANTIAL RISK OF LOSS IN FUTURES TRADING.
Reply With Quote
 
  #6 (permalink)
Elite Member
Singapore
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Apr 2010
Thanks: 0 given, 0 received

Thanks Big Mike for your reply. Will try out Multicharts soon.

Mattz, my NinjaTrader strategy has the following functions;
1. Go long upon Long Signal
2. Place Stop Loss order in Iexecution
3. Exit long if Long Signal condition no longer exist or profit target is reached
The opposite is true for Go Short.

The Order Overfill occurs occasionally when a Long ord Short order is placed.

Here is an extract of the code:


Quoting 
protectedoverridevoid Initialize()
{


Add(PeriodType.Tick, tickMT);
Add(PeriodType.Tick, tickLT);
Add(PeriodType.Minute,
13);



EntriesPerDirection =
1;
EntryHandling = EntryHandling.AllEntries;
TimeInForce = Cbi.TimeInForce.Day;

CalculateOnBarClose =
true;
}


privatevoid GoLong()
{ entryOrder = EnterLongLimit(
0, true, orderQty, GetCurrentBid(), "SMTsqt_L"); }


privatevoid CoverLong()
{ exitOrder = ExitLong(
"Exit SMTsqt_L", "SMTsqt_L"); }


privatevoid GoShort()
{ entryOrder = EnterShortLimit(
0, true, orderQty, GetCurrentAsk(), "SMTsqt_S"); }


privatevoid CoverShort()
{ exitOrder = ExitShort(
"Exit SMTsqt_S", "SMTsqt_S");}


protectedoverridevoid OnBarUpdate()
{

if (BarsInProgress == 0)
{ Compute something }


if (BarsInProgress == 1)
{ Compute something and place orders
if (exitOrder == null && Position.MarketPosition == MarketPosition.Long)
{
if xxxx CoverLong() // Profit Target
elseif xxxxCoverLong() // Long Signal no longer exist
}

elseif (exitOrder == null && Position.MarketPosition == MarketPosition.Short)
{
if xxxx
CoverShort() // Profit Target
elseif xxxx CoverShort(); // Short Signal no longer exist
}
elseif (entryOrder == null && Position.MarketPosition == MarketPosition.Flat)
{
if (longcondition) GoLong();
else if (shortcondition) GoShort();

}
}



if (BarsInProgress == 2)
{ Compute something }

protectedoverridevoid OnOrderUpdate(IOrder order)
{
if (entryOrder != null && entryOrder.Token == order.Token)
{ if (order.OrderState == OrderState.Cancelled && order.Filled == 0)
{entryOrder =
null;}
}
}


protectedoverridevoid OnExecution(IExecution execution)
{
if (entryOrder != null && entryOrder.Token == execution.Order.Token)
{
if (execution.Order.OrderState == OrderState.Filled || execution.Order.OrderState == OrderState.PartFilled || (execution.Order.OrderState == OrderState.Cancelled && execution.Order.Filled > 0))
{
if (execution.MarketPosition == MarketPosition.Long)
{
stopOrder = ExitLongStop(0, true, execution.Order.Filled, execution.Order.AvgFillPrice - tickStop * TickSize, "Stop SMTsqt_L" , "SMTsqt_L"); }

elseif (execution.MarketPosition == MarketPosition.Short)
{
stopOrder = ExitShortStop(0, true, execution.Order.Filled, execution.Order.AvgFillPrice + tickStop * TickSize, "Stop SMTsqt_S" , "SMTsqt_S");

}


if (execution.Order.OrderState != OrderState.PartFilled)
{
if ((stopOrder != null && stopOrder.Token == execution.Order.Token) || (exitOrder != null && exitOrder.Token == execution.Order.Token))
{
if (execution.Order.OrderState == OrderState.Filled || execution.Order.OrderState == OrderState.PartFilled)
{
stopOrder = null; exitOrder = null;

}
}



Reply With Quote
 
  #7 (permalink)
Market Wizard
Boca Raton
 
Futures Experience: Advanced
Platform: Variety
Broker/Data: Optimus Futures, LLC
Favorite Futures: Futures
 
mattz's Avatar
 
Posts: 2,059 since Sep 2010
Thanks: 1,933 given, 2,786 received
Forum Reputation: Legendary

I am only assuming, but this could be the case of inflight execution.
Submitting multiple order both long and short very close to the market, then its possible to have the order executed in the reverse side of the market. I have also seen it with programmed OCO orders.

If you PM me I will send you to our programmer who is really good, he could be of help as well.

PM with any questions about optimusfutures (800) 771-6748 (561) 367 8686. THERE IS A SUBSTANTIAL RISK OF LOSS IN FUTURES TRADING.
Reply With Quote
 
  #8 (permalink)
 Vendor: www.multicharts.com 
Columbus, Ohio, US
 
Futures Experience: Intermediate
Platform: MultiCharts
Broker/Data: Multiple/Multiple
Favorite Futures: ES, EUR/USD
 
MultiCharts's Avatar
 
Posts: 168 since Oct 2010
Thanks: 74 given, 170 received

If you guys have any questions, please send me a PM.

MultiCharts - Raising the Trading Standard.
Please send me a private message if you have any further questions about MultiCharts
Reply With Quote
The following user says Thank You to MultiCharts for this post:

Reply



futures io > > > > Problem with Order Overfills with NinjaTrader. What about Multicharts?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
VIDEO: MultiCharts vs. NinjaTrader strategy backtesting and optimization Big Mike MultiCharts 53 June 12th, 2016 02:34 PM
Just starting out. Automated Trading: MultiCharts or Ninjatrader AngryNJ MultiCharts 10 November 25th, 2015 08:10 AM
NinjaTrader or Multicharts tom1 MultiCharts 113 October 7th, 2013 06:28 AM
Does anyone have Order FLow Analytics indicator for Ninjatrader FHTrader The Elite Circle 18 June 27th, 2012 08:13 PM
[NinjaTrader] Murray Math problem rafaelce NinjaTrader 5 September 13th, 2010 06:12 AM


All times are GMT -4. The time now is 01:26 PM.

Copyright © 2017 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
Page generated 2017-12-14 in 0.44 seconds with 33 queries on phoenix via your IP 54.234.255.29