NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-30-2009, 06:29 AM   #1
dkrumholz
Member
 
Join Date: Aug 2009
Location: Princeton NJ
Posts: 83
Thanks: 10
Thanked 0 times in 0 posts
Default How To Access Fill Price

While I am in a trade, how can I access the fill price in my strategy? I am only going to be long 1 contract so I assume the fill price is equal to the average fill price. Is there a complete code example I can refer to?
dkrumholz is offline  
Reply With Quote
Old 08-30-2009, 01:49 PM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

Hi dkrumholz, I believe the snippet you're looking for is AvgPrice.
Code:
double price = Position.AvgPrice;
NinjaTrader_Austin is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price Gap Fill Indicator - Help Please isitpossible Indicator Development 4 07-13-2009 03:58 PM
Order Fill Price RJay Strategy Development 19 04-17-2009 01:12 PM
How to get the fill price of a signalName? zacharydw00 Strategy Development 5 02-20-2009 07:20 AM
Fill Price Issues from IB arbifox Automated Trading 2 09-23-2008 11:46 AM
Accessing order fill price and quantity NinjaTrader_Ray Strategy Development 2 01-03-2008 12:16 AM


All times are GMT -6. The time now is 09:48 AM.