• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SMA Alerts

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

    SMA Alerts

    I have a couple of indicators nicbizz wrote for me awhile ago and SMA Alert and a EMA alert, I noticed that they don't plot the same as a regular SMA or EMA,they are off set by a bit and they also don't plot as far back on the chart?
    I will post the cs files can someone take a look at them and see if you can figure out what is wrong?

    Thanks
    Attached Files

    #2
    Hello geotabs,

    Thanks for opening the thread.

    The indicator is plotting an EMA with a barsAgo reference of 1 so it will not be as up to date if it were to plot an EMA with a barsAgo reference of 0. This is the offset you see. Just by glancing at the code, I do not see where plots would be limited aside from the normal checks to make sure there are enough bars available to create the plot.

    I would suggest reaching out to nicbizz for support with these indicators and for any modifications you would like to request.

    We can also have a member of our Sales Support team reach out with information on NinjaScript Consultants who would be happy to modify these scripts for you.

    If that is the case, please let me know.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks Jim
      I'm not familiar with code, I took a look at it but I don't see bar ago in code anywhere on the SMA or EMA what line is it on if you don't mind me asking
      Also when I plot a regular SMA or EMA on the same chart as with the SMAAlerts the regular SMA and EMA plot further back

      Thanks

      Comment


        #4
        Hello geotabs,

        The plot value is set at line 73 with Value.Set(ema[1]);

        Keep in mind, this is not an indicator that we have created and we are not the experts on its function. We would not be able to provide support for modifying it.

        If you would like to modify this indicator yourself, I may suggest reviewing the help guide documentation for the introductory programming concepts as well as the tutorials for creating indicators. Once you have gone over these materials, I would then recommend making modifications to the indicator.

        I'll include links to these resources as well as documentation that can introduce you to price data and BarsAgo references.

        Programming Concepts - https://ninjatrader.com/support/help...g_concepts.htm

        Indicator tutorials - https://ninjatrader.com/support/help...ndicators2.htm

        Working with Price Data - https://ninjatrader.com/support/help...rice_data2.htm

        Other NinjaScript items can be searched for in the help guide or with a Google search and the right keywords.

        Please let me know if we can be of further assistance.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by saltminer, Today, 06:22 PM
        0 responses
        2 views
        0 likes
        Last Post saltminer  
        Started by saltminer, Today, 06:20 PM
        0 responses
        1 view
        0 likes
        Last Post saltminer  
        Started by escobar63, Today, 05:06 PM
        0 responses
        6 views
        0 likes
        Last Post escobar63  
        Started by i2w8am9ii2, Today, 04:41 PM
        0 responses
        5 views
        0 likes
        Last Post i2w8am9ii2  
        Started by Renorail, Today, 03:40 PM
        3 responses
        13 views
        0 likes
        Last Post Renorail  
        Working...
        X