Higher high since event? (Page 2) - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Higher high since event?
Started:March 11th, 2010 (07:53 AM) by MXASJ Views / Replies:1,750 / 10
Last Reply:March 13th, 2010 (03:32 AM) Attachments:1

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

Thread Tools Search this Thread

Higher high since event?

Old March 13th, 2010, 03:32 AM   #11 (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: 45,447 since Jun 2009
Thanks: 28,848 given, 79,610 received

Ok so the problem is here

if (Close[0] > EMA(fastMA)[0] && Close[0] > EMA(slowMA)[0] && flagbarlong == 0flagbarlong CurrentBar;
//if (flagbarlong + 10 > CurrentBar) flagbarlong = 0; 
else flagbarlong 0
That is not evaluating to true, ever.

When you defined flagbarlong in #var, you defined it as an int and set it to 0 yes?

Try removing the && flagbarlong == 0 from above, just to make sure the condition starts working.

Sorry I can't just run the code on my side, but I haven't even opened NinjaTrader in 2 weeks and it feels good


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


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Higher high since event?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
In the trade before a scheduled news event cw30000 Traders Hideout 19 February 16th, 2016 03:46 PM
Millisecond timer event arjfca EasyLanguage Programming 5 July 3rd, 2011 06:37 AM
Need help with an event ghoti NinjaTrader Programming 1 March 14th, 2011 01:44 PM
event handling and calling a method kaywai NinjaTrader Programming 2 April 25th, 2010 01:21 PM
HH HL Higher highs, Higher lows emini_Holy_Grail Traders Hideout 3 January 22nd, 2010 04:10 PM

All times are GMT -4. The time now is 07:31 PM.

Copyright © 2016 by futures.io. 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 2016-10-28 in 0.06 seconds with 20 queries on phoenix via your IP