how to overload DrwTrendLine.Create() (initial thoughts inside) - MultiCharts | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > MultiCharts

how to overload DrwTrendLine.Create() (initial thoughts inside)
Started:September 3rd, 2015 (10:25 PM) by gztanwei Views / Replies:146 / 0
Last Reply:September 3rd, 2015 (10:25 PM) Attachments:0

Welcome to

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

how to overload DrwTrendLine.Create() (initial thoughts inside)

Old September 3rd, 2015, 10:25 PM   #1 (permalink)
Elite Member
Futures Experience: Beginner
Platform: NinjaTrader
Posts: 31 since Sep 2009
Thanks: 3 given, 9 received

how to overload DrwTrendLine.Create() (initial thoughts inside)

Hi firstly my programming skill is only half-baked. So just to share some thought and hope to make the tool easier to program.

reference to: 4.3 Plotting on the Chart - MultiCharts

I think naturally people would care the appearance of the trendline created, so it would be more sensible to have DrwTrendLine.Create() to specify all parameters of the trendline when it is created, in one step.

I have written below code snippet, but not sure how to overload it in public. Could you teach me how?


		ITrendLineObject Create(ChartPoint begin, ChartPoint end, Color? color=null, 
			int size=0, ETLStyle style=ETLStyle.ToolSolid, bool extLeft=false, bool extRight=false)
			ITrendLineObject _TL = DrwTrendLine.Create(begin,end);
			_TL.Color=color ?? Color.Blue;
			return _TL;

Last edited by gztanwei; September 3rd, 2015 at 11:21 PM.
Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > MultiCharts > how to overload DrwTrendLine.Create() (initial thoughts inside)

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
help with initial startup drivers GaryD Tech Support 4 April 6th, 2014 10:44 AM
Initial Balance and the New York Open tderrick Index Futures Trading 10 November 18th, 2013 04:19 PM
Initial protective stop (IPS) johnmic MTPredictor 1 August 27th, 2013 08:17 AM
Data on Initial Balance - ES greenroomhoo The Elite Circle 19 January 29th, 2013 08:58 AM
Information Overload cmmichaels The Elite Circle 2 October 16th, 2012 04:06 PM

All times are GMT -4. The time now is 01:18 PM.

Copyright © 2016 by 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-27 in 0.06 seconds with 19 queries on phoenix via your IP