IOrder.AvgFillPrice - NinjaTrader Programming | futures io social day trading
futures io futures trading

Updated: Views / Replies:674 / 0
Created: by manev31 Attachments:0

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


  #1 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: Tradestation, Python
Favorite Futures: Forex
Posts: 8 since Aug 2014
Thanks: 1 given, 1 received


Can someone please tell me why am I not geting any print in the output window of the following command:

if (Position.MarketPosition == MarketPosition.Long && entryOrder != null)

this is the whole context:

protected override void Initialize()
CalculateOnBarClose = true;

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
// Submit an entry limit order if we currently don't have an entry order open
if (entryOrder == null && CurrentDayOHL().CurrentOpen[0] > PriorDayOHLC().PriorHigh[0] && ToTime(Time[0]) > ToTime(8, 30, 0) && ToTime(Time[0]) < ToTime(8, 46, 0))
/* The entryOrder object will take on a unique ID from our EnterLong()
that we can use later for order identification purposes in the OnOrderUpdate() method. */
entryOrder = EnterLong(1, "MyEntry");


/* If we have a long position and the current price is 4 ticks in profit, raise the stop-loss order to breakeven.
We use (7 * (TickSize / 2)) to denote 4 ticks because of potential precision issues with doubles. Under certain
conditions (4 * TickSize) could end up being 3.9999 instead of 4 if the TickSize was 1. Using our method of determining
4 ticks helps cope with the precision issue if it does arise. */

if (Position.MarketPosition == MarketPosition.Long && entryOrder != null)

if (Position.MarketPosition == MarketPosition.Long && entryOrder !=null && (Close[0] >= entryOrder.AvgFillPrice + (80 * (TickSize / 2))))
// Checks to see if our Stop Order has been submitted already
if (stopOrder != null && stopOrder.StopPrice < entryOrder.AvgFillPrice)
// Modifies stop-loss to breakeven
stopOrder = ExitLongStop(0, true, stopOrder.Quantity, entryOrder.AvgFillPrice, "MyStop", "MyEntry");


Reply With Quote


futures io > > > > > IOrder.AvgFillPrice

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

All times are GMT -4. The time now is 04:27 AM.

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-05-26 in 0.07 seconds with 18 queries on phoenix via your IP