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 TradeForge, 04-19-2024, 02:09 AM
          2 responses
          28 views
          0 likes
          Last Post TradeForge  
          Started by aprilfool, 12-03-2022, 03:01 PM
          3 responses
          327 views
          0 likes
          Last Post NinjaTrader_Adrian  
          Started by giulyko00, Today, 12:03 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by f.saeidi, Today, 12:14 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by AnnBarnes, Today, 12:17 PM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Working...
          X