Market position in the past - NinjaTrader | futures trading

Go Back

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

Market position in the past
Started:August 29th, 2012 (01:09 PM) by toddma Views / Replies:857 / 1
Last Reply:August 29th, 2012 (10:14 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

Market position in the past

Old August 29th, 2012, 01:09 PM   #1 (permalink)
Elite Member
vancouver canada
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
toddma's Avatar
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

Market position in the past

Does anyone know how you would check to see if you were in a position recently?

I thought it would be something like this (checking 4 bars ago) but this doesn't work:
if (Position.MarketPosition != MarketPosition.Flat[4])

Any thoughts would be greatly appreciated.
Thanks -

Reply With Quote

Old August 29th, 2012, 10:14 PM   #2 (permalink)
Elite Member
Milan (I)
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
redratsal's Avatar
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,051 received

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

Use barssinceentry() barssinceexit() NinjaTrader Version 7

Reply With Quote
The following 2 users say Thank You to redratsal for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Market position in the past

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
Contract Rollover: Adopt Real World Position and manage per previous position entry RM99 EasyLanguage Programming 3 May 30th, 2012 06:55 AM
Past contract calenders patbateman Traders Hideout 6 April 3rd, 2012 05:17 AM
At BofA, Moynihan Grapples With Past kbit News and Current Events 0 January 24th, 2012 02:01 PM
Entry order with past ranges aczk EasyLanguage Programming 4 January 17th, 2012 03:57 PM
Blast From The Past: Kyle Bass Was Right About Everything... Again Quick Summary News and Current Events 0 November 19th, 2011 10:50 AM

All times are GMT -4. The time now is 06:34 AM.

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-24 in 0.09 seconds with 24 queries on phoenix via your IP