My problem is the "close". I get permanent no result. If I change the "close" into "close" can I see correct results. I think anywhere is a problem with the loaded day data. Anybody out there who knows a solution?
This post has been selected as an answer to the original posters question
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.
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.
The following user says Thank You to Big Mike for this post:
Favorite Futures: Gameplay Klownbine® Trading of Globex
Posts: 1,276 since Jul 2009
Thanks: 1,227 given,
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 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 12:06 PM.
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"?