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!
See more
See less

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Perr0Grande, Today, 08:16 PM
    0 responses
    2 views
    0 likes
    Last Post Perr0Grande  
    Started by elderan, Today, 08:03 PM
    0 responses
    5 views
    0 likes
    Last Post elderan
    by elderan
     
    Started by algospoke, Today, 06:40 PM
    0 responses
    10 views
    0 likes
    Last Post algospoke  
    Started by maybeimnotrader, Today, 05:46 PM
    0 responses
    12 views
    0 likes
    Last Post maybeimnotrader  
    Started by quantismo, Today, 05:13 PM
    0 responses
    7 views
    0 likes
    Last Post quantismo  
    Working...
    X