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 techgetgame, Yesterday, 11:42 PM
          0 responses
          8 views
          0 likes
          Last Post techgetgame  
          Started by sephichapdson, Yesterday, 11:36 PM
          0 responses
          2 views
          0 likes
          Last Post sephichapdson  
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,613 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Yesterday, 05:56 PM
          0 responses
          10 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          20 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Working...
          X