Instrument position help! - NinjaTrader Programming | futures.io
futures.io futures trading


Instrument position help!
Started: by kidvic Views / Replies:127 / 2
Last Reply: Attachments:0

Welcome to futures.io.

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

Reply
 
Thread Tools Search this Thread
 

Instrument position help!

  #1 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 received

Instrument position help!

So, I've created a strategy that only fires when flat. Only problem is that Position.MarketPosition reflects ONLY on a position that the strategy has created!. In other words, If I enter a position manually, the strategy wont pick it up!.

Ive tried several methods to pick up the current position of the instrument that the strategy is running on:
Positions[0] (doesn't work)
Accounts.Positions (returns all positions of all accounts)

It seems as though Instrument.Position is what I would need, but does that exist?, or is there another method anyone else has used to find the position of the current instrument of the strategy, without being triggered by the strategy itself?

I've spent many many days on this.

Thanks in advance!

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Germany
 
Futures Experience: Intermediate
Platform: Other
Favorite Futures: ES, YM, 6E
 
Posts: 2,313 since Feb 2013
Thanks: 3,810 given, 5,506 received
Forum Reputation: Legendary



kidvic View Post
So, I've created a strategy that only fires when flat. Only problem is that Position.MarketPosition reflects ONLY on a position that the strategy has created!. In other words, If I enter a position manually, the strategy wont pick it up!.

Ive tried several methods to pick up the current position of the instrument that the strategy is running on:
Positions[0] (doesn't work)
Accounts.Positions (returns all positions of all accounts)

It seems as though Instrument.Position is what I would need, but does that exist?, or is there another method anyone else has used to find the position of the current instrument of the strategy, without being triggered by the strategy itself?

I've spent many many days on this.

Thanks in advance!

A classical rookie fault. You are trying to mix a discrete == unmanaged approach with a standard NT strategy == managed approach.
For sorting it out start with NinjaTrader Version 7 . If you still want to go on with unmanaged positions that - from the NT point
of view - drop from anywhere into the account, you will have to write your own syncs. For that start with NinjaTrader Version 7 .

P.S.: In the FIO download section you find additional order & position management examples.


Last edited by choke35; August 26th, 2016 at 05:07 PM.
Reply With Quote

Reply



futures.io > > > > > Instrument position help!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
When to take Profits , Add to a Position, and Exit a position ?? mdsvtr Index Futures Trading 3 June 13th, 2015 12:47 PM
Strategy Position and Account Position spinnybobo NinjaTrader 15 February 13th, 2015 10:00 PM
How to use instrument correlation in position sizing? jjsshh Psychology and Money Management 1 July 18th, 2014 10:18 AM
Contract Rollover: Adopt Real World Position and manage per previous position entry RM99 EasyLanguage Programming 3 May 30th, 2012 07:55 AM
Instrument multiplier/divider by other instrument, name of that? raffu NinjaTrader Programming 4 August 24th, 2011 03:37 AM


All times are GMT -4. The time now is 11:32 AM.

no new posts
Page generated 2017-01-21 in 0.09 seconds with 20 queries on phoenix via your IP 174.129.120.155