I am sure that it is possible to mix Plot and plot override in the same indicator. Is there a reference to doing this? Any suggestion would be greatly appreciated. Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Mixing Plot and override Plot
Collapse
X
-
Zeos,
Are you looking to have an overridden plot method AND also have access to the original plot method?
I am not aware of a supported way to do this currently, and likely wouldn't be possible due to OOP rules and the way NinjaTrader is designed.
You could try using a partial method : http://msdn.microsoft.com/en-us/library/6b0scde8.aspx
Or you could simply override the Plot method and include in it any functionality you want, duplicating the standard plot method to the best of your ability.Adam P.NinjaTrader Customer Service
-
Originally posted by Zeos6 View PostHi _AdamP. Thanks for your email. I actually figured it out.
For those interested, add the following line at the end of your plot override code:
// Call the base Plot() method to paint defined Plots
base.Plot(graphics, bounds, min, max);
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rwilliam, Today, 01:54 PM
|
1 response
7 views
0 likes
|
Last Post
|
||
Started by franco12364, Today, 11:27 AM
|
1 response
10 views
0 likes
|
Last Post
|
||
Started by YevhenShynkarenko, Today, 11:48 AM
|
3 responses
24 views
0 likes
|
Last Post
![]() |
||
Started by NinjaTrader_ChrisL, Today, 11:21 AM
|
0 responses
21 views
0 likes
|
Last Post
|
||
Started by lunardiplomacy, Today, 08:09 AM
|
3 responses
14 views
0 likes
|
Last Post
|
Comment