Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript horizontal line trader recommendation

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

    NinjaScript horizontal line trader recommendation

    Hey everyone!

    Can somebody recommend me a NinjaScript strategy where the code trades based on a support/resistance approach between horizontally drewn levels on a chart? Given that this strategy is rather simple I'd figure maybe there are free automated strategies available which are able to trade like this. An example for what I want would be that let's say NQ is trading at 17620, I have a horizontally drewn level at 17640 and 17600 on the chart, which would theoretically act like resistance and support, so I'd want the script to either sell at 17640 or buy at 17600 with a selected ATM strategy. Also a possibility to not trigger a trade when price reaches a horizontal drawing, but the account is still in an active trade running in profit would be handy. Appreciate if someone can help me out on this, I'm a complete beginner in automated trading.

    #2
    Hello oliverupnext,

    Thank you for your post.

    The "Strategy Development" topic in the forum is for developers looking to code strategies in NinjaScript. What you have described should be possible using a custom NinjaScript add-on. If you have a programming background, our NinjaScript team may provide you links to samples that would help you write the script yourself. Otherwise, we can provide you with resources to find a programmer to create the script for you. Please let me know if this option interests you so I may follow up accordingly.​

    You can also search for ready-made scripts on our publicly available NinjaTrader Ecosystem website:
    Here is a basic guideline of how to import NinjaScript add-ons in NinjaTrader 8:

    Note — To import NinjaScripts you will need the original .zip file.

    To Import:
    1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
    2. From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.

    Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

    Once installed, you may add the indicator to a chart by:
    • Right-click your chart > Indicators... > Select the Indicator from the 'Available' list on the left > Add > OK

    Here is a short video demonstration of the import process:
    Please let me know if I can be of further assistance.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment


      #3
      Dear Emily!
      Thanks for your help, could you please provide the links to some samples that would help me creating a code like this?

      Comment


        #4
        Originally posted by oliverupnext View Post
        Dear Emily!
        Thanks for your help, could you please provide the links to some samples that would help me creating a code like this?
        Hello oliverupnext,

        Thank you for your reply.

        For anyone looking to get started with NinjaScript, I suggest reviewing the tips and resources provided here:


        The Strategy Builder would allow you to set up conditions that draw the horizontal lines and also place trades based on specific values. With that said, if you are looking to submit trades based on manually drawn horizontal lines, you would need to loop through the DrawObjects collection to identify those lines and get the price they're drawn at. This would only be possible in an unlocked NinjaScript Strategy. There is an example of looping through the DrawObjects collection here:


        Please feel free to reach out with any additional questions or concerns.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        86 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        151 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        79 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        52 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        59 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X