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

Signal Provided for output to strategy in the indicator but not found in the builder?

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

    Signal Provided for output to strategy in the indicator but not found in the builder?

    Hello
    In this indicator Autotrendlinecreated by you or your colleague NinjaTrader_Paul
    This is a conversion of the NT7 indicator AutoTrendLine. Uses the swing indicator to place a trend line, based on the swing strength value. A cross of the trend line is indicated on chart with an arrow and is sent to the Alerts Panel. New in this version is a transparent plot that can be […]

    Direct link https://ninjatraderecosystem.com/use...425d1651141555

    in the file it indicates that there are signals Provided for the output to the strategy:
    Line 32
    private int signal; // Provided for output to strategy: 0 = no signal, 1 = buy signal on down trend break, 2 = sell signal on up trend break


    but with strategy builder we cannot retrieve these signals
    Can you tell us how to retrieve these signals ?


    I put this line 53 to false
    ArePlotsConfigurable = true; // Plots are not configurable in the indicator dialog
    but in Strategy builder gave me a color palette no signals!

    What is the solution please?

    Thank you in advance

    #2
    Hello aekzof,

    Thanks for your post.

    In this indicator, a value of 0, 1, or 2 is assigned to the indicator's plot which could be used for comparisons in the Strategy Builder.

    To use this indicator in a Strategy Builder condition, you would need to compare the indicator's plot to a numerical value (Misc. folder > Numerical value). For example, you could create a condition that checks if the AutoTrendLine indicator is equal to 0, 1, or 2. Comparing the indicator's plot to 0 would check for no signal. Comparing the plot to 1 would check for a buy signal. And, comparing the plot to 2 would check for a sell signal.

    0 = no signal, 1 = buy signal on down trend break, 2 = sell signal on up trend break

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply

      that's my problem the signal and the plot exist in the file but the plot does not exist in Strategy Builder.
      so we can't compare

      look at the attached photo

      Click image for larger version

Name:	plot.JPG
Views:	207
Size:	78.9 KB
ID:	1199152


      Comment


        #4
        Hello aekzof,

        Thanks for your note.

        The AutoTrendLine indicator does contain a plot in the script which is what allows the indicator to be used in the Strategy Builder window.

        If you look at the code of the indicator in a NinjaScript Editor window, you could see that there is a single transparent plot named AutoTrendLineBreak. This is the plot being referenced in the Strategy Builder when using the indicator for comparisons.

        AddPlot(Brushes.Transparent, "AutoTrendLineBreak");

        To use the indicator in the Strategy Builder, you would simply compare the indicator to a numerical value of 0, 1, or 2 as shown in your screenshot.

        Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          thank you it works
          with this indicator my complicates things to learn
          I think that for any indicator (which has plots) by using strategy builder there is always a plot displayed to make the comparison
          luckily you are here
          thanks again for your help

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          15 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          229 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Started by TradingLoss, 04-21-2024, 04:32 PM
          4 responses
          44 views
          2 likes
          Last Post TradingLoss  
          Started by cre8able, 04-17-2024, 04:16 PM
          6 responses
          57 views
          0 likes
          Last Post cre8able  
          Working...
          X