Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Selecting long or short with auEMA indicator

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

    Selecting long or short with auEMA indicator

    Hi all, I want to use the auEMA indicator modified by @Rayco in a strategy builder strategy I'm working on and am having the following issues with it.

    I originally used auEMA in an Alert. And when creating the Alert I have the option of selecting which indicator plot I want to use as the alert. I select Trend = 1 or -1 and it sends me an Alert when then trend is long (1) or short (-1). See the image here for the selection.

    Click image for larger version

Name:	image.png
Views:	126
Size:	30.3 KB
ID:	1319902

    When I add the auEMA indicator to a strategy in Strategy Builder, there is no way to select which indicator plot I want to use and simply doing auEMA = -1 or 1 does not work as a condition. Here is what it looks like in Strategy Builder. As you can see, there is no way here to select Trend vs EMA.

    Click image for larger version

Name:	image.png
Views:	104
Size:	23.4 KB
ID:	1319903

    I'm not sure how to fix this so the indicator functions the same way it does when creating an Alert.
    ​I am not a coder so I'm unable to fix the code myself. I tried fixing it using AI (ChatGPT and others) but was unsuccessful. Hopefully @Rayco will see this and provide some guidance.

    Thanks Mitch

    #2
    Hello,

    We kindly ask that users refrain from posting multiple topics about the same inquiry. You are currently being assisted on this inquiry in the following post:



    As mentioned in that post, something in the code likely needs to be fixed. You can either choose to resolve this yourself with our assistance or reach out to the developer.

    Comment


      #3
      I'm sorry Gaby. In this post I did reach out to the developer rayko and I am thinking there may be others here who may offer the guidance I need. Simply pointing me to the coding examples did not provide the answers I need as I am not a very good coder. As I explained, I tried several things that did not work and I need more help than you originaly provided. I thought this post better explained the isssue than the one you originally responded too. I still don't understand why I can make it work with an Alert and not in Strategy Builder.

      Comment


        #4
        Hello mmenigma,

        No worries, it was just a heads up. If you feel you're not able to do this with our guidance, and you have access to the open-source code, you can always reach out to a NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services.

        You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more:

        https://ninjatraderecosystem.com/sea...mming-services

        You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

        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 companies and services 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.

        Let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        607 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        353 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X