Custom BarType - PropertyDescriptor - NinjaTrader Programming | futures io social day trading
futures io futures trading


Custom BarType - PropertyDescriptor
Updated: Views / Replies:1,709 / 5
Created: by bukkan Attachments:1

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
 

Custom BarType - PropertyDescriptor

  #1 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received

Custom BarType - PropertyDescriptor

hi folks,
I am trying to develop a custom bartype. now i want to place a datetimepicker in the property descriptor. can anybody throw some light on how to do the same as i am stuck on that part.

thanks in advance.

Attached Thumbnails
Custom BarType - PropertyDescriptor-custom-bars.png  
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)
Elite Member
Madison, WI
 
Futures Experience: Advanced
Platform: Sierra Charts, ALT
Favorite Futures: ES
 
aslan's Avatar
 
Posts: 614 since Jan 2010
Thanks: 342 given, 1,077 received


Sorry, I don't know how to add a DateTime, but I think you will have to play with this routine:

 
Code
public override PropertyDescriptorCollection GetProperties(PropertyDescriptor propertyDescriptor, Period period, Attribute[] attributes)
{
	PropertyDescriptorCollection properties = base.GetProperties(propertyDescriptor, period, attributes);

	// here is how you remove properties not needed for that particular bars type
	properties.Remove(properties.Find("BasePeriodType", true));
	properties.Remove(properties.Find("BasePeriodValue", true));
	properties.Remove(properties.Find("PointAndFigurePriceType", true));
	properties.Remove(properties.Find("ReversalType", true));
	properties.Remove(properties.Find("Value2", true));

	// here is how you change the display name of the property on the properties grid
	Gui.Design.DisplayNameAttribute.SetDisplayName(properties, "Value", "\rBrick size");

	return properties;
}
This example shows how to remove and rename properties. To Add one, there is an Add method, but I am not sure on the syntax to create a PropertyDescriptor. Hope that helps.

Reply With Quote
The following 2 users say Thank You to aslan for this post:
 
  #4 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


aslan View Post
Sorry, I don't know how to add a DateTime, but I think you will have to play with this routine:

 
Code
public override PropertyDescriptorCollection GetProperties(PropertyDescriptor propertyDescriptor, Period period, Attribute[] attributes)
{
    PropertyDescriptorCollection properties = base.GetProperties(propertyDescriptor, period, attributes);

    // here is how you remove properties not needed for that particular bars type
    properties.Remove(properties.Find("BasePeriodType", true));
    properties.Remove(properties.Find("BasePeriodValue", true));
    properties.Remove(properties.Find("PointAndFigurePriceType", true));
    properties.Remove(properties.Find("ReversalType", true));
    properties.Remove(properties.Find("Value2", true));

    // here is how you change the display name of the property on the properties grid
    Gui.Design.DisplayNameAttribute.SetDisplayName(properties, "Value", "\rBrick size");

    return properties;
}
This example shows how to remove and rename properties. To Add one, there is an Add method, but I am not sure on the syntax to create a PropertyDescriptor. Hope that helps.

ya i fiddled with that part, but sadly i too couldnt figure out the exact syntax for the propertydescriptor.

Reply With Quote
 
  #5 (permalink)
Elite Member
Madison, WI
 
Futures Experience: Advanced
Platform: Sierra Charts, ALT
Favorite Futures: ES
 
aslan's Avatar
 
Posts: 614 since Jan 2010
Thanks: 342 given, 1,077 received

I think you are venturing into the grey area of unsupported in Ninja. They exposed the bar formation code, but don't really tell you how to go about it. Being able to add your own properties would really be helpful in BarTypes and ChartStyles. This is one of those cases, where posting the Ninja forum might help. Tell them what you are doing, and ask if they can give you a "hint" on how to add a property of type DateTime, int, string, etc. They may decline or might give you something to get you started. You could also try asking Roonius, who works for them now. If anyone knows how to do it, he probably would be it.

Reply With Quote
The following user says Thank You to aslan for this post:
 
  #6 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received

well as you said its the gray area, and dont we know the answer of nt support such gray area

but as Ray promised during the bmt webinar that these stuffs will be supported on a later date. so i might just wait a little.

thanks.

Reply With Quote

Reply



futures io > > > > > Custom BarType - PropertyDescriptor

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
Hybrid Custom BarType MWinfrey NinjaTrader Programming 18 September 17th, 2013 10:14 AM
Custom symbol Nimble NinjaTrader Programming 20 February 27th, 2012 07:13 PM
Custom Futures Mondrakete TradeStation 3 May 8th, 2011 05:41 AM
Custom development neb1998 NinjaTrader Programming 1 March 7th, 2011 04:43 PM
help with bartype for strategy in EL JVentura EasyLanguage Programming 4 December 4th, 2010 12:57 PM


All times are GMT -4. The time now is 08:36 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-13 in 0.08 seconds with 20 queries on phoenix via your IP 54.160.245.121