No results in NT indicator if "close[>1]" close larger than [1] - NinjaTrader | futures io social day trading
futures io futures trading


No results in NT indicator if "close[>1]" close larger than [1]
Updated: Views / Replies:483 / 3
Created: by hallou1 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

Reply
 
Thread Tools Search this Thread
 

No results in NT indicator if "close[>1]" close larger than [1]

  #1 (permalink)
Trading Apprentice
Leipzig
 
Futures Experience: None
Platform: Ninja
Favorite Futures: Stocks
 
Posts: 2 since Feb 2014
Thanks: 0 given, 0 received

No results in NT indicator if "close[>1]" close larger than [1]

I want to write an indicator (EOD base used) with the following content:

if (Close[0] < Close[5]
&& Close[0] > SMA(50)[0])

Plot0.Set(1);

My problem is the "close[5]". I get permanent no result. If I change the "close[5]" into "close[1]" can I see correct results. I think anywhere is a problem with the loaded day data. Anybody out there who knows a solution?

Thanks Mike

Reply With Quote
 
  #2 (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,240 since Jun 2009
Thanks: 29,357 given, 83,237 received

Answer
This post has been selected as an answer to the original posters question Answer


hallou1 View Post
I want to write an indicator (EOD base used) with the following content:

if (Close[0] < Close[5]
&& Close[0] > SMA(50)[0])

Plot0.Set(1);

My problem is the "close[5]". I get permanent no result. If I change the "close[5]" into "close[1]" can I see correct results. I think anywhere is a problem with the loaded day data. Anybody out there who knows a solution?

Thanks Mike

Most likely you are missing something like:

if (CurrentBar < 5) return;

at the top of your OnBarUpdate.

This would be more obvious if you examined the log error tab.

Mike

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.
6)
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
The following user says Thank You to Big Mike for this post:
 
  #3 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Do you have any data?


With current bar <5 you would have been getting an Index Out of Range error that would have crashed the indicator since for those bars, Close[5] does not exist. That's why rejecting bars prior to bar number 5 fixed the problem.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett

Last edited by Zondor; February 3rd, 2014 at 01:06 PM.
Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Leipzig
 
Futures Experience: None
Platform: Ninja
Favorite Futures: Stocks
 
Posts: 2 since Feb 2014
Thanks: 0 given, 0 received


Big Mike View Post
Most likely you are missing something like:

if (CurrentBar < 5) return;

at the top of your OnBarUpdate.

This would be more obvious if you examined the log error tab.

Mike

Hallo Big Mike,

thanks for your quick reply. I wrote a short code that display me the closeprice 5 days ago. The result was correct. Tomorrow will I update my screencode and test. One last question: Where can I open the "log error tab"?

Good evening from Germany

Reply With Quote

Reply



futures io > > > > No results in NT indicator if "close[>1]" close larger than [1]

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fukushima: "China Syndrome Is Inevitable" ... "Huge Steam Explosions", or "Nuclear Bo Quick Summary News and Current Events 0 November 22nd, 2011 02:50 AM
How to change "Stop Loss" and "Take Profit" in "shElderImpulse" Strategy javed759 NinjaTrader 1 November 1st, 2011 11:44 PM
NT: "Line on Close - Mountain" for Converence Divergence? Or Shaded 1 Period SMA tdaman NinjaTrader 2 October 30th, 2011 04:45 AM
Indicators "Calculate on bar close" Question whatnext NinjaTrader 4 June 29th, 2011 06:48 PM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 06:01 PM


All times are GMT -4. The time now is 12:55 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-12-18 in 0.09 seconds with 27 queries on phoenix via your IP 54.196.201.241