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

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 MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Working...
        X