Flatten All ? - NinjaTrader Programming | futures io social day trading
futures io futures trading

Flatten All ?
Updated: Views / Replies:3,633 / 12
Created: by phyzfer 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

Thread Tools Search this Thread

Flatten All ?

  #11 (permalink)
Market Wizard
New Orleans, La (Mardi Gras City)
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Ninjatrader / Optimus Futures / AmpFutures
Favorite Futures: ES / 6E / 6B / CL
DavidHP's Avatar
Posts: 1,033 since Aug 2009
Thanks: 939 given, 1,442 received

phyzfer View Post
7 only. It's very useful and goes around some of the idiotic NT nuances for order handling.

Yes I may have to do this too.

It seems there is an issue with 'reversing' orders in NT.
I have been testing the strategy posted in Mike's video and I changed the parameters so that you would always be short or long.

However, when you try to let the strategy reverse by entering the opposite direction, NT gives an error about 'OverFill' and disables the strategy.

I'm not sure how to proceed without managing it myself.

Do you know of another way to reverse and still use named orders
(i.e. in the strategy, 'target1', target2', 'target3' are used but when you try to use them the error is generated)

private void GoLong()
    SetProfitTarget("target1", CalculationMode.Price, Close[0] + (Target1*TickSize));
    SetProfitTarget("target2", CalculationMode.Price, Close[0] + (Target2*TickSize));
    SetProfitTarget("target3", CalculationMode.Price, Close[0] + (Target3*TickSize));


Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Reply With Quote
  #12 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus/Zen-FIre
Favorite Futures: GC, ES
Posts: 73 since Mar 2010
Thanks: 40 given, 31 received


This is how I handle reverses without using their order handling (there in NT7).
I have a marked price (The reverseAtPrice), and I listen to each tick to see if the market has touched it. Once this price gets hit (it happens to be the SL price for one of the legs of my total quantity), I set a boolean flag to say reverseoccurred.

I then check every OnBarUpdate if this flag is true and the position is flat, if so, I enter a bunch of orders in the opposite direction.

Even if you are not using SL orders and waiting for the SL orders to kick in, you can save a "reverseAtPrice" and compare the Close[0] to it.

I hope that helps.

Reply With Quote
  #13 (permalink)
Elite Member
Brussels / Dublin
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: Stdev + 2
Posts: 467 since Jun 2010
Thanks: 842 given, 592 received

Hi David,

I also came up against the reversal issue with ninja in a trade strategy that i need.

Ive just kicked off using the SubmitOrder but aint seeing very many example code snippets in help etc specifically regarding stop setting etc.

Would you be so kind as too just paste in a few lines off code associated with u using SubmitOrder so i can take as pointers. I also see disconnect options issue listed when using the submit order and obviously i dont want that to be an issue either.

It would be a lot nicer if ninja would actually allow u to use the original ones and just hack the way the enterlong entershort is performed.

Reply With Quote


futures io > > > > > Flatten All ?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flatten All Positions togier NinjaTrader Programming 11 October 13th, 2012 01:55 AM

All times are GMT -4. The time now is 10:01 AM.

Copyright © 2018 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 2018-05-22 in 0.08 seconds with 19 queries on phoenix via your IP