Global Stop - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

Global Stop
Started:February 25th, 2014 (09:49 PM) by nourozi Views / Replies:455 / 2
Last Reply:March 5th, 2014 (06:29 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Global Stop

Old February 25th, 2014, 09:49 PM   #1 (permalink)
Trading for Fun
New Zealand
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ZB
Posts: 92 since Jun 2013
Thanks: 52 given, 29 received

Global Stop

Hi there,

Is there a way to auto flatten all positions in Ninjatrader once the account reaches a certain amount of drawdown? Preferrably combining unrealized and realized pnl.

For example, my max drawdown is -$800 and I would like to flatten all positions once the realized + unrealized pnl is -$800 or greater.



Reply With Quote

Old March 5th, 2014, 05:36 AM   #2 (permalink)
Elite Member
London + UK
Futures Experience: Advanced
Platform: Proprietary Analytics
Broker/Data: Multiple broker + Multiple feed (for access to specific exchanges)
Favorite Futures: European Indices, Precious Metals, Energy
sands's Avatar
Posts: 423 since Dec 2013
Thanks: 204 given, 185 received

I don't believe that this is possible, however you can programatically exit positions by contract.

Hope that helps.

Reply With Quote

Old March 5th, 2014, 06:29 PM   #3 (permalink)
Administrator: Retired Backtester
Rennes France
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
sam028's Avatar
Posts: 3,183 since Jun 2009
Thanks: 3,427 given, 3,726 received

sands View Post
I don't believe that this is possible, however you can programatically exit positions by contract.

Hope that helps.

All is possible in C#, but the question is not clear enough. The answer will be different if it's in a strategy or discretionary.
You can, for example :
- use NinjaTrader.Cbi.Globals.Accounts[].Executions to compute your P&L and unrealized P&L (with an OnPositionUpdate());
- write your last P&L in a flat file, and let a strategy read this file and do what needs to be done;
- read the Ninja database to compute the P&L for the day (or since X hours, ...).

Usually in trading, those who know don't talk, and those who talk don't know. (Al Brooks)
success requires no deodorant! (Sun Tzu)
Reply With Quote
The following user says Thank You to sam028 for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Global Stop

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit vs stop vs stop-limit orders ghl123 Traders Hideout 10 April 29th, 2015 03:01 AM
How do I stop getting in my own way? Rock Sexton Psychology and Money Management 41 December 30th, 2013 11:13 AM
Ninjatrader strategy for Trailing Stop and stop loss. skann NinjaTrader 2 August 20th, 2013 07:34 PM
Is the "stop limit" used as a protective stop, and what does "off-set" mean shots fired NinjaTrader 2 July 23rd, 2013 02:01 PM
"Stop If Bid" command for entry's and stop loss arjfca EasyLanguage Programming 4 October 7th, 2010 05:05 PM

All times are GMT -4. The time now is 07:59 PM.

Copyright © 2016 by 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 2016-10-23 in 0.09 seconds with 19 queries on phoenix via your IP