Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buy/sell on trend line?

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

    Buy/sell on trend line?

    Has anyone got an ideal of how to get Ninja to buy/sell on a trend line
    automatically? Ideally I would like to get Ninja to draw a channel based
    on a Linear Regression Channel or something similar and then to buy sell
    when specific deviations from the line are reached. I presume some complex Ninjascript programming would be required but wondering if this is
    possible.

    Obviously chosing how the trend is drawn is a another matter...

    On the subject of trend lines, will Ninja 7 have the ability to take a
    previously drawn trend line and extract a parallel line by simply clicking
    on the line? Most charting packages now have this function.

    #2
    MicroAl,

    Provided you can code out what justifies your trendline and you store its values, NinjaTrader can buy/sell based on that value. It may take some coding to achieve.

    You can already create parallel lines. From your draw object just select it, copy, and paste. It will create you a parallel line to the side.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Check the NinjaScript File Sharing area for the "Automated Trend Line Detection" indicator. The source code will give you guidance how to programmatically calcualte trend lines and check for the last price breached this line.
      RayNinjaTrader Customer Service

      Comment


        #4
        Buy/Sell Trend Line

        Ray, Josh

        Excellent, I believe almost anything can be coded in Ninja, it's just a question of deciding what programming approach to take. I have only just
        started learning C# so thought it would be a good programming exercise.

        Never thought of using copy and paste - doh.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        601 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        347 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        559 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X