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 itrader46, Today, 09:04 AM
        0 responses
        1 view
        0 likes
        Last Post itrader46  
        Started by timmbbo, Today, 08:59 AM
        0 responses
        1 view
        0 likes
        Last Post timmbbo
        by timmbbo
         
        Started by bmartz, 03-12-2024, 06:12 AM
        5 responses
        33 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        14 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        28 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X