Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automatic Trend Line Detection Indicator by NT Ray

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

    Automatic Trend Line Detection Indicator by NT Ray

    Hi Ray,

    I have question regarding this indicator you wrote sometime ago and is posted in the indicators section.

    There is a "signal" function in there, 0 for none, 1 for buy and 2 for sell. How do I access this signal? I tried using it in the Strategy wizard, but the "signal" column is not displayed.

    Is there a call to it say maybe..

    mysignal = AutoTrendLine.Signal[0];

    Thanks

    #2
    SuperDriveGuy, you would need code modifications for this to work in the Strategy Wizard...but for a custom strategy your posted call should do it.

    Comment


      #3
      Thanks!!!!

      Comment


        #4
        Automatic Trend Line Detection Indicator by NT Ray

        hello, could you tell me how to access the signal from Autotrendline indicator to use it in a market analyzer.
        What part of code should I add to the script.? I know there is there is the signal 0, 1 and 2 ...but i don't know how to reach it.

        thanks

        Comment


          #5
          Hello PEPBOSCH,

          The AutoTrendLine which I am linking below, does not set any plots that can be read by another script (when using the Strategy Wizard).
          http://ninjatrader.com/support/forum...php?linkid=451

          There is a public int Signal.
          In an unlocked script this would be called with:
          AutoTrendLine(bool alertOnBreak, int lineWidth, int strength).Signal

          For example:
          private int currentSignal;

          currentSignal = AutoTrendLine(true, 1, 5).Signal
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          129 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          74 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          116 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          110 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          89 views
          0 likes
          Last Post CarlTrading  
          Working...
          X