Compiling Error (Statement Expected) - NinjaTrader Programming | futures io social day trading
futures io futures trading

Compiling Error (Statement Expected)
Updated: Views / Replies:3,105 / 32
Created: by sagetrade Attachments:3

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

Compiling Error (Statement Expected)

  #31 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 46,336 since Jun 2009
Thanks: 29,452 given, 83,954 received

Silvester17 View Post
something changed?

market wizards (red) didn't have to be elite members.

Nothing changed.

I am not aware of any Market Wizard who is not an Elite Member, although it is not a requirement.


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
  #32 (permalink)
Trading Apprentice
Frankfurt / Germany
Futures Experience: Intermediate
Platform: NT, MC
Favorite Futures: Stocks, Futures
sagetrade's Avatar
Posts: 47 since Jul 2013
Thanks: 28 given, 10 received

dynoweb View Post
All joking aside, @sagetrade if you're serious at all about learning to trade you really need to bite the bullet and change your membership to Elite, you won't get a better value for that small amount of investment. That's your first winning trade.

If I continue to meet helpful people like you guys, im probably going to do so

dynoweb View Post
You might want to check if you are already in a trade before entering another trade.

if (Position.MarketPosition == MarketPosition.Flat)
if (goodEntryCondition)
place trade order

The way you have it in your code right now is every time the bar updates and your condition is true you are hitting EnterLong(..)

You can also do a check before your long exit

if (Position.MarketPosition == MarketPosition.Long)
ExitLong("Exit Long", "Buy Long"); // note the second arg is the signal name of your trade when you went long

What is the difference/advantage/disadvantage between your suggestion, using Position.MarketPosition and using "if (Position.Quantity >/</== 0" to check market positioning?

Last edited by sagetrade; August 23rd, 2013 at 10:48 AM.
Reply With Quote
  #33 (permalink)
Elite Member
McKinney, TX
Futures Experience: Intermediate
Platform: Think or Swim, NinjaTrade
Favorite Futures: The indexes, ES, YM, NQ & RTY
Posts: 154 since Aug 2012
Thanks: 213 given, 126 received

sagetrade View Post
If I continue to meet helpful people like you guys, im probably going to do so

What is the difference/advantage/disadvantage between your suggestion, using Position.MarketPosition and using "if (Position.Quantity >/</== 0" to check market positioning?

That's just another way to skin a cat. I suspect that either would give you the same results if you're just trying to determine if you're in a trade. I typically use

Position.MarketPosition = MarketPosition.Long or MarketPosition.Short to deal with being long or short. You won't know that using Position.Quantity.

Another plug for you to consider being elite (note that I don't get any compensation or credit if you do) is that you seem to be interested in trading and also with auto trading. What you can't see is the numerous webinars that have been given by experienced traders to share their knowledge with you and are available to the elite members. The value of information available far exceeds the small cost, especially when you compare to the thousands of web sites out there that offer trader training for a lot more. One better trade will make up the cost of membership. I promise I won't say any more about this.

Reply With Quote


futures io > > > > > Compiling Error (Statement Expected)

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trade Size Analyzer compiling error sudhirc The Elite Circle 1 March 16th, 2012 12:26 PM
Error compiling indicators rltheg NinjaTrader Programming 13 March 29th, 2011 04:10 PM
NT7 audio alert - statement expected? subterfuge NinjaTrader Programming 2 March 17th, 2011 09:55 AM
NT indicator script compiling issuses / error while importing skyfly NinjaTrader Programming 8 July 20th, 2010 12:56 AM
C# and compiling tinkerz NinjaTrader Programming 1 April 6th, 2010 05:33 PM

All times are GMT -4. The time now is 04:12 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-28 in 0.08 seconds with 20 queries on phoenix via your IP