Dynamic Properties (Page 3) - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

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

Dynamic Properties
Started:March 4th, 2010 (03:20 AM) by baruchs Views / Replies:5,898 / 21
Last Reply:October 10th, 2014 (09:44 AM) Attachments:3

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

Dynamic Properties

Old October 9th, 2014, 05:16 PM   #21 (permalink)
Elite Member
Heidelberg, Germany
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Stocks
Posts: 11 since Jun 2014
Thanks: 6 given, 11 received

Succeeded in updating the description as well. As a final step have gathered all the code into cut-and-paste sections with three utility methods for deleting a property, updating the name and updating the description. From the (attached!) example:

private void ModifyProperties(PropertyDescriptor[] properties)
  if (deleteAnotherProperty)
    DeleteProperty(properties, "DeletePropertyIfTrue");

  UpdateDisplayName(properties, "PropertyWithChangedName", "Property NEW Name");
  UpdateDescription(properties, "PropertyWithUpdatedDescription", "New property description.");
All the relevant code is boiler plate sections that can just be copied into a strategy. Commented to explain what everything does.

Caveat emptor: code tested, but I am not C# expert galore, it could be that I overlooked something somewhere.
But for now it works beautifully.

In the attached strategy is the complete example, with all of the code ready for cut and paste.

Attached Thumbnails
Dynamic Properties-exampledynamicproperties.jpg  
Attached Files
Register to download File Type: zip ExampleDynamicProperties.zip (3.2 KB, 48 views)
Reply With Quote
The following 2 users say Thank You to zr6bcm for this post:

Old October 10th, 2014, 09:44 AM   #22 (permalink)
Elite Member
Futures Experience: Beginner
Platform: NinjaTrader 7
Favorite Futures: CL, TF
grankus's Avatar
Posts: 8 since Aug 2012
Thanks: 5 given, 0 received

Thank you very much for all zr6bcm!

I think it's crystal clear now. I really appreciate your effort and thanks for the attached file with all the annotations.


Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Dynamic Properties

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
Dynamic Fib Lines S/R keepdchange NinjaTrader 10 May 8th, 2011 07:12 PM
Dynamic Stop Loss wallsteetking NinjaTrader Programming 2 March 7th, 2011 08:59 AM
Dynamic Range Indicator arjfca The Elite Circle 3 February 28th, 2011 05:18 AM
Draw object Properties kenz987 NinjaTrader Programming 1 November 10th, 2010 09:48 AM
Trading Hours in NT Properties togier Traders Hideout 4 August 18th, 2010 07:44 AM

All times are GMT -4. The time now is 05:22 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-26 in 0.09 seconds with 20 queries on phoenix via your IP