NexusFi: Find Your Edge


Home Menu

 





Compiling Error (Statement Expected)


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one sagetrade with 13 posts (0 thanks)
    2. looks_two dynoweb with 7 posts (4 thanks)
    3. looks_3 sam028 with 4 posts (1 thanks)
    4. looks_4 Big Mike with 3 posts (0 thanks)
      Best Posters
    1. looks_one Nicolas11 with 1 thanks per post
    2. looks_two bd92154 with 1 thanks per post
    3. looks_3 dynoweb with 0.6 thanks per post
    4. looks_4 sam028 with 0.3 thanks per post
    1. trending_up 8,773 views
    2. thumb_up 7 thanks given
    3. group 6 followers
    1. forum 32 posts
    2. attach_file 3 attachments




 
Search this Thread

Compiling Error (Statement Expected)

  #31 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,665


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.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #32 (permalink)
sagetrade
Frankfurt / Germany
 
Posts: 47 since Jul 2013
Thanks Given: 28
Thanks Received: 11


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?

Reply With Quote
  #33 (permalink)
 dynoweb 
McKinney, TX
 
Experience: Intermediate
Platform: ThinkOrSwim, NinjaTrader
Broker: TD Ameritrade (soon to be Schwab) & NinjaTrader
Trading: The indexes, ES, YM, NQ & RTY
Posts: 171 since Aug 2012
Thanks Given: 216
Thanks Received: 157



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.

Follow me on Twitter Reply With Quote




Last Updated on August 25, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts