Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change wick size indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change wick size indicator

    Can one change Wick thickness in an indicator?

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    597 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    555 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X