Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Add base class NinjaScriptRenderBase - for IndicatorRenderBase and StrategyRenderBase
Collapse
X
-
Hello TazoTodua,
Thanks for your post.
I have submitted your feature request with the ticket ID SFT-3863. As with other feature requests, we cannot offer an ETA or promise of fulfillment, but your interest is being tracked for consideration.
If there is anything else we can do to help, please let us know.
-
Add base class NinjaScriptRenderBase - for IndicatorRenderBase and StrategyRenderBase
Indicator and Strategy have same base NinjaScriptBase, which shares most common methods and is useful to be used in external classes. So, when in indicator or strategy we have:
Code:MyExternalMethod(this);
Code:public method MyExternalMethod(object xyz) { (xyz as NinjaScriptBase).Print("hello"); }
At this moment, many programmers, like me, use multiple lines of codes (from external classes) to achieve the simple thing
Code:public method MyExternalMethod(object xyz) { if (xyz is Indicator) (xyz as indicator).RemoveDrawObject("arrow"); if (xyz is Strategy) (xyz as Strategy).RemoveDrawObject("arrow"); }
so, just create `NinjaScriptRenderBase` base class for those two classes, so, we make things simpler:
Code:public method MyExternalMethod(object xyz) { (xyz as NinjaScript[B]Render[/B]Base).RemoveDrawObject("arrow"); }
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, 03-10-2023, 01:50 AM
|
11 responses
304 views
0 likes
|
Last Post
by z.franck
Today, 02:29 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
407 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
||
Started by yertle, Yesterday, 05:49 PM
|
2 responses
11 views
0 likes
|
Last Post
by yertle
Today, 12:12 AM
|
||
Started by kaywai, Today, 12:06 AM
|
0 responses
10 views
0 likes
|
Last Post
by kaywai
Today, 12:06 AM
|
Leave a comment: