stoploss to breakeven to trailing - NinjaTrader Programming | futures io social day trading
futures io futures trading

stoploss to breakeven to trailing
Updated: Views / Replies:7,731 / 13
Created: by stephenszpak Attachments:2

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 100,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

stoploss to breakeven to trailing

  #11 (permalink)
Elite Member
Madison, WI
Futures Experience: Advanced
Platform: Sierra Charts, ALT
Favorite Futures: ES
aslan's Avatar
Posts: 614 since Jan 2010
Thanks: 343 given, 1,090 received

Here are a couple of items to try:

* limit your data set (i.e. specific day or less) to help cut down on the amount of info to sift thru when debugging

* use set TraceOrders = true in Initialize() in order to see all order actions in Ninja in the output window, this combined with your own prints should help you figure out where your looping is coming from.

* make sure you are doing compare of price values correctly, Close[0] > lastPrice does not cut it when comparing double values. Just comparing values works most of the time, but you really need to use the following: Instrument.MasterInstrument.Compare() - see help. I hate needing this, and I usually leave it out until I get to the final code and then add it in. If you have a comparison that you think should trigger this could be it.

Hope this gives you some ideas.

Reply With Quote
The following 2 users say Thank You to aslan for this post:
  #12 (permalink)
Elite Member
Massachusetts (USA)
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
stephenszpak's Avatar
Posts: 778 since Jun 2009
Thanks: 144 given, 365 received

Not doing much regarding a system these days. I do thank you all though,
Beth, cory, and Aslan.

P.S. Beth, I did come across a programmer that seems to be very knowledgeable,
should you need his name someday.

- Stephen

Reply With Quote
The following user says Thank You to stephenszpak for this post:
  #13 (permalink)
Elite Member
New York
Futures Experience: Intermediate
Platform: thinkorswim
Favorite Futures: options
Posts: 28 since Feb 2014
Thanks: 62 given, 41 received

wgreenie View Post
Hi Stephen

I also tried for weeks to have a trail code "functioning" in my strategies. Can certainly understand the stress and frustration when days and nights were spent and nothing seemed working.

Just got the enclosed sample and hope it may help you. Good Luck!


Wow, this script right here is exactly why I joined the elite (formerly BMT) section. Super thanks, I know its 4 years later but NT is still the leader!

Reply With Quote
  #14 (permalink)
Cambridge, Ontario
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: 6E
Posts: 1,773 since Dec 2009
Thanks: 1,258 given, 1,196 received

Yes Stephen. NT Support Forum is extremely important/helpful for my learning. You can also email the NT support team directly for any issues you may have.

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Reply With Quote


futures io > > > > > stoploss to breakeven to trailing

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

July Journal Challenge - $500 in Amazon Gift Cards!


Current Events in Commodity Markets: Influence & Crowd Psychology w/IQFeed

Jul 12

AXESS Trader: Powerful cloud Based Trading Platform w/GFF Brokers

Jul 17

TBA: FuturesTrader71 w/Morad Askar

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
StopLoss as fraction of ATR FArias NinjaTrader Programming 5 February 23rd, 2011 02:45 PM
Stops, trailing and breakeven stops jonc NinjaTrader 4 November 9th, 2010 12:06 AM
Help Coding Trailing stoploss in Strategy Darshiit NinjaTrader Programming 3 June 25th, 2010 09:45 AM
Runner Breakeven re entry emini_Holy_Grail Psychology and Money Management 6 May 1st, 2010 08:48 AM
BREAKEVEN + ONE TICK rajafx1 NinjaTrader Programming 1 November 8th, 2009 05:37 PM

All times are GMT -4. The time now is 05:23 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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-07-13 in 0.09 seconds with 15 queries on phoenix