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

TTM Squeeze Histogram

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

    TTM Squeeze Histogram

    I am trying to develop a Strategy based on the histogram of the TTM Squeeze indicator; but the thing is that the Histogram itself is not available in the Strategy Builder to make any rationale; only IsSqueeze and SqueezeDef Values are available.
    How can I modify the TTM Squeeze Indicator so as to have the Histogram available in the Strategy Builder?
    I have been working with the indicator I downloaded from this forum once.
    Thanks!
    Plenamar27

    #2
    Hello plenamar27,

    Thanks for your post.

    Only an indicator's plots are able to be used with the Strategy Builder.

    If you would like to access a certain value in an indicator, you would need to assign that value to a plot within that indicator. For example, you could call the AddPlot() method to add a plot to the strategy. Then, you could assign the value you want to the plot by calling Value[0] = x, where 'x' represents the value you are assigning to the plot.

    Once a value is assigned to a plot in the indicator, you could reference that indicator plot when using the Strategy Builder to create a strategy.

    Note that you could make a copy of the indicator to modify by opening the code of the indicator in a New > NinjaScript Editor window, right-clicking in the script, and selecting Save As. Once a copy is made, you could modify the copy to suit your needs.

    See the help guide page below for more information and sample code.

    AddPlot(): https://ninjatrader.com/support/help...t8/addplot.htm

    Let me know if I may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X