Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Change wick size indicator
Collapse
X
-
Thanks for your post ballboy11.
This would not be supported since this code is not locked into documentation, but you may try accessing the the ChartStyle's properties through ChartBars.Properties.ChartStyle.
I would recommend storing this value to a temporary variable and resetting it to the temporary value in State.Terminated so the script does not permanently modify the chart's candlestick wick thickness.
Stroke represents the outline when Stroke2 represents the wick.
You also would likely need to check that the ChartStyle is in fact the ChartStyleType that you wish to modify so you do not adversely modify another ChartStyle where this modification may not be needed. Printing the ChartStyleType could help provide some further direction for writing the necessary logic.
Print(ChartBars.Properties.ChartStyle.ChartStyleTy pe.ToString());
As mentioned, this code is not documented and is not supported. We could not offer further direction for usage and there may be changes that render this type of code non-functional. If you would like to do more experimenting with unsupported code, I would suggest using Intelliprompt to get further information on properties and methods available in NinjaScript objects.
Intelliprompt - https://ninjatrader.com/support/help...elliprompt.htm
If there is another item surrounding supported NinjaScript you would like assistance with, we will be happy to assist you further. Otherwise, you may refer to community members for further input.Last edited by NinjaTrader_Jim; 10-04-2018, 11:25 AM.JimNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Perr0Grande, Today, 08:16 PM
|
0 responses
2 views
0 likes
|
Last Post
by Perr0Grande
Today, 08:16 PM
|
||
Started by elderan, Today, 08:03 PM
|
0 responses
5 views
0 likes
|
Last Post
by elderan
Today, 08:03 PM
|
||
Started by algospoke, Today, 06:40 PM
|
0 responses
10 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
12 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
Comment