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 frslvr, 04-11-2024, 07:26 AM
|
9 responses
121 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
4 responses
15 views
0 likes
|
Last Post
by rocketman7
Today, 02:56 PM
|
||
Started by selu72, Today, 02:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
15 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
Comment