IOrders not firing correctly? - NinjaTrader | futures io social day trading
futures io futures trading


IOrders not firing correctly?
Updated: Views / Replies:407 / 1
Created: by SodyTexas Attachments:1

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
 

IOrders not firing correctly?

  #1 (permalink)
Spread Trader
Austin TX
 
Futures Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker/Data: RJO
Favorite Futures: Futures, Spreads
 
SodyTexas's Avatar
 
Posts: 313 since Sep 2013
Thanks: 96 given, 843 received

IOrders not firing correctly?

Hey futures.io (formerly BMT) friends,

I am running into a issue with a strategy that is not firing a market order when I want it to. The code scales out of a position based on a signal ("sorry not going to say what it is") multiple times as the trend develops. The same code fires for each trade except sometimes it just does not fire.

(See attached image)
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


The system goes short 10 CL ##-## (market replay) and scales out a total of 5 contracts in 3 trades just as I wanted it too. However, the fourth trade to scale out 2 more contracts it does not fire. The bars are painted to show when it should be firing and the text Fire 2 is right next to the exitShort logic to show me that the code is running properly.

Here is the code that has the ExitShort syntax.

 
Code
if(Position.Quantity > ShortQty)
	{
	        int newposition = Position.Quantity - ShortQty;
	        //exitShort = ExitShort(newposition);
	        exitShort = ExitShort(newposition,"Buy to Close","Sell to Open");
	        if(exitShort == null)
			{
				DrawText("Qty2","Fire " + newposition,3,Low[0],Color.White) ;
			} else DrawText("Qty2","Not Null",3,Low[0],Color.White) ;	
		}
				
		if(Position.Quantity == 1 && exitShortStop != null && BarsSinceExit() > 1)
		{
			exitShort = ExitShort("Buy to Close","Sell to Open");
		}
          }
if you look at the chart again, you will also see that all my IOrder objects are properly set to null except for the stop, which is expected.

I can't see any logical reason why Ninjatrader is skipping exit logic, so I need your help to see if someone has ran into this before.

FYI, this is using the Managed approach IOrder with on execution.

Cheers,

Sody

"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Reply With Quote
 
  #2 (permalink)
Spread Trader
Austin TX
 
Futures Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker/Data: RJO
Favorite Futures: Futures, Spreads
 
SodyTexas's Avatar
 
Posts: 313 since Sep 2013
Thanks: 96 given, 843 received

SOLVED

Issues with Market Order - NinjaTrader Support Forum

Cheers,

Sody

"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Reply With Quote
The following 2 users say Thank You to SodyTexas for this post:

Reply



futures io > > > > IOrders not firing correctly?

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
SendMailChart not firing stoicbuddha NinjaTrader Programming 2 March 14th, 2014 01:42 AM
Increasing Traded Quantity AND IORDERS benwincky NinjaTrader Programming 1 September 29th, 2013 09:06 AM
Using IOrders and setting stops problems spinnybobo NinjaTrader Programming 4 June 6th, 2013 05:30 PM
Multicharts firing orders when market is closed guppy MultiCharts 1 March 15th, 2012 04:29 AM
IOrders TrailStop MXASJ NinjaTrader Programming 3 January 13th, 2012 08:58 AM


All times are GMT -4. The time now is 03:38 AM.

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-16 in 0.07 seconds with 20 queries on phoenix via your IP 54.196.201.241