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

    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 f.saeidi, Today, 07:07 AM
          6 responses
          19 views
          0 likes
          Last Post f.saeidi  
          Started by cmtjoancolmenero, Today, 02:31 PM
          6 responses
          14 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by Graci117, Yesterday, 11:40 PM
          5 responses
          26 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by rene69851, Today, 03:25 PM
          0 responses
          3 views
          0 likes
          Last Post rene69851  
          Started by Irukandji, Yesterday, 05:50 AM
          3 responses
          9 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X