using History on NT Indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading


using History on NT Indicator
Updated: Views / Replies:1,372 / 3
Created: by siscop Attachments:2

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
 

using History on NT Indicator

  #1 (permalink)
Just starting out...
germany
 
Futures Experience: None
Platform: MT4, NT, MC
 
siscop's Avatar
 
Posts: 19 since Sep 2009
Thanks: 16 given, 4 received

using History on NT Indicator

Hi,
I wanted to “convert” one of my MT4 Indicator to Ninjatrader but I can’t seem to find my problem here.

protected override void OnBarUpdate()
{
Dkurz.Set(High[0]);
Dlang.Set(Low[0]);
double[] kurz= new double[Periode];
kurz[1]=Close[1];
}

I could filter my problem to this line.
“kurz[1]=Close[1];”
If I write “kurz[1]=Close[0];” it works but I want to use history data for my indicator. As soon I write Close[1] my indicator does not show.
Can someone give me a hint why my Indicator does not allow history data?
This should be a noob question an hope someone can enlight me :-)


Last edited by siscop; November 15th, 2009 at 06:06 PM.
Reply With Quote
 
  #2 (permalink)
Just starting out...
germany
 
Futures Experience: None
Platform: MT4, NT, MC
 
siscop's Avatar
 
Posts: 19 since Sep 2009
Thanks: 16 given, 4 received

just to make it clear
I get this with Close[0]
danicht.JPG

This is when I write Close[1]
nichts.JPG

Attached Thumbnails
using History on NT Indicator-danicht.jpg   using History on NT Indicator-nichts.jpg  
Reply With Quote
 
  #3 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,314 received
Forum Reputation: Legendary


one of mistake a coder makes often is forgetting to wait for enough data
for example if you want to refer to bar[6] then you have to have this coding first

protected override void OnBarUpdate()
{
if (CurrentBar < 6)
return;

----------

you may want to try


protected override void OnBarUpdate()
{
if (CurrentBar < 1)
return;

Reply With Quote
The following user says Thank You to cory for this post:
 
  #4 (permalink)
Just starting out...
germany
 
Futures Experience: None
Platform: MT4, NT, MC
 
siscop's Avatar
 
Posts: 19 since Sep 2009
Thanks: 16 given, 4 received

Thank you sooooo much. It works now :-)

Reply With Quote

Reply



futures io > > > > > using History on NT Indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any interest in TickData ES entire history data purchase? BlackSwan The Elite Circle 7 March 4th, 2017 11:14 AM
Anyone knowledgeable on history of japan economy and Markets? GridKing Traders Hideout 11 August 4th, 2011 11:44 PM
History Suggests Stocks Are 40% Overvalued, Says Professor Shiller kbit News and Current Events 3 June 16th, 2011 08:39 PM
I need tick file of one day of history of ES for testing Crassius NinjaTrader Programming 2 February 27th, 2011 08:22 PM
Converting your Indicator for free --> NT 6.5 to NT 7 Druid The Elite Circle 21 September 27th, 2010 09:49 AM


All times are GMT -4. The time now is 01:50 AM.

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-13 in 0.09 seconds with 20 queries on phoenix via your IP 54.92.201.232