Hello JTizz,
Thanks for your post.
As I understand, you are posting in the Indicator Development forum because you are curious how you can develop this functionality, correct? This forum is meant for NinjaScript development, so if you are just asking about general usage and not how this functionality can be created, I would recommend positing in the Platform Technical Support forums instead.
These modifications are possible. The indicator uses its own custom rendering to draw the Trend Channel, so I would recommend adding your drawing code there.
The SampleCustomRender indicator which comes with NinjaTrader 8 describes how SharpDX rendering can be used, and you can use RenderTarget.DrawTextLayout to draw the label. We suggest referencing the documentation below while reviewing the example as there are important items to consider when using SharpDX.
https://ninjatrader.com/support/help..._rendering.htm
Also which may be helpful, I have some code that in a Labeled Lines Drawing Tool that draws a label on the line using SharpDX. This script can give some further insight for how text can be drawn to create a label.
https://ninjatraderecosystem.com/use...-drawing-tool/
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
We look forward to assisting.
Last edited by NinjaTrader_Jim; Today, 07:40 AM.
Jim
Comment