NinjaTrader Mystery - Indicator Changes ! - Platforms and Indicators | futures io social day trading
futures io futures trading


Notices

NinjaTrader Mystery - Indicator Changes !
Updated: Views / Replies:1,708 / 5
Created: by Fat Tails 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 100,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
 

NinjaTrader Mystery - Indicator Changes !

  #1 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,732 since Mar 2010
Thanks: 4,231 given, 26,003 received

NinjaTrader Mystery - Indicator Changes !

I have a problem with the way the plots are initialized. Here comes a small indicator. Please apply it to a default ES chart and then just follow the instructions.

Any idea, what is wrong?

Attached Files
Register to download File Type: zip Test.zip (3.6 KB, 18 views)
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,484 since Jun 2009
Thanks: 3,677 given, 4,170 received

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


The indicator seems to do what you're asking it to do.
What was your expected result ?

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #4 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,732 since Mar 2010
Thanks: 4,231 given, 26,003 received


sam028 View Post
The indicator seems to do what you're asking it to do.
What was your expected result ?


My original problem can be better understood with this indicator.

The plot is not re-initializing, when toggling from one instrument to another. I expected that the plot would reinitialize, because it is in the Initialize() section! But toggling does not initialize the plot, because you want to keep the colours and pen properties, so I was trapped.

Apply to any instrument, then toggle between instruments. Plot.Name of first instrument remains active, until you hit FDAX. Then Plot.Name will remain FDAX.

Attached Files
Register to download File Type: zip Test.zip (1.9 KB, 10 views)
Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #5 (permalink)
Elite Member
Germany, Karlsruhe
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP
Favorite Futures: Futures, EUR.USD
 
AlexanderBecker's Avatar
 
Posts: 1 since Mar 2010
Thanks: 1 given, 0 received

Maybe this could be an answer to your problem

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

Hi.

I have looked at the *zip and the Test.cs of your last post.

If you change your overload of OnStartup like this then the Indicator-Plots' name will be setup with the new instruments' name:

protectedoverridevoid OnStartUp()
{
Plots[0].Name = Instrument.MasterInstrument.Name ==
"FDAX"
? "Hello, I am FDAX"
: string.Format("Hello, I am [{0}]", Instrument.MasterInstrument.Name);
}



Reply With Quote
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,732 since Mar 2010
Thanks: 4,231 given, 26,003 received


AlexanderBecker View Post
Hi.

I have looked at the *zip and the Test.cs of your last post.

If you change your overload of OnStartup like this then the Indicator-Plots' name will be setup with the new instruments' name:

protectedoverridevoid OnStartUp()
{
Plots[0].Name = Instrument.MasterInstrument.Name ==
"FDAX"
? "Hello, I am FDAX"
: string.Format("Hello, I am [{0}]", Instrument.MasterInstrument.Name);

}



That is correct. The main idea of this thread was to show that an indicator is not reinitialized, if you toggle from one instrument to another, where as OnStartUp() is executed when toggling. Reinitializing is not possible, because you want to keep some of the properties defined, such as the colors of the plot.

So if you initialize the plots by using the name of an instrument, it will stay with the first instrument for ever. Conclusion: You should not use any reference to Instrument.MasterInstrument.Name in the Intialize() section, but do that in OnStartUp().

Your suggestion compensates the error in the Initialize() section, but to code this in a clean way, the error should not be made in the first place!

Reply With Quote

Reply



futures io > > > NinjaTrader Mystery - Indicator Changes !

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Fundraiser: Feeding Families in Need (ends Dec 17)

December
 

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)

January
 

An Afternoon With Morad Askar (aka FuturesTrader71)

Elite only
 

TBA w/Brett Steenbarger

Elite only
 

Traders Tax Advice w/Ryan Curran CPA

Elite only
 

Black Swan Events w/Adam Grimes

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help creating a NinjaTrader Indicator jjl1753 NinjaTrader Programming 4 June 13th, 2011 10:26 PM
Looking for NinjaTrader Indicator h20polo NinjaTrader 3 May 24th, 2011 06:40 PM
mystery d9po CalculateOnBarClose= False rcabri The Elite Circle 1 February 25th, 2011 01:28 PM
mystery indicator, can you crack it? cory Traders Hideout 18 July 13th, 2010 09:18 AM
Mystery Chart hondo69 Traders Hideout 45 January 11th, 2010 03:51 AM


Tags
code, es, fdax, indicator, indicators, information, ninjatrader, onstartup

All times are GMT -4. The time now is 11:07 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, 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 2018-12-16 in 0.12 seconds with 25 queries on phoenix