Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator trips trade

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

    indicator trips trade

    Hello,
    Does anyone know if it is possible to set a trade entry to activate when an indicator hits a certain level, as opposed to the price activating the trade? Trying to get rid a better entry.
    Thanks

    #2
    Hello mw355,

    Thank you for writing in. You can access indicators using the following syntax:
    Code:
    indicatorName(dataSeries, indicatorParameter1, indicatorParameter2, etc)[barsAgo]
    NOTE: barsAgo is necessary if you need a specific value from the indicator, and dataSeries is necessary if you wish to use a data series that is not the default data series

    Here is a basic example using the SMA indicator:
    Code:
    if(SMA(14)[0] > SMA(7)[0])
    {
        //Enter trade
    }
    Here is an example using the CrossAbove comparison with the SMA indicator:
    Code:
    if(CrossAbove(SMA(14), SMA(7), 1))
    {
        //EnterTrade
    }
    Here is an example using another data series with the SMA indicator:
    Code:
    if(SMA(High, 14)[0} < 15)
    {
        //Enter Trade
    }
    Please see this help guide document for further reference: http://ninjatrader.com/support/helpG..._indicator.htm

    Please let me know if you have any questions.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hello Michael,
      Thank you for the response. It looks like it can be done, I'll just need to find someone to code.
      Thanks again.

      Comment


        #4
        Hello mw355,

        You can also accomplish this using the strategy wizard which does not require programming experience.

        If you are interested in creating this using the strategy wizard, please feel free to follow along our video tutorial here:
        https://www.youtube.com/watch?v=MaaqCBoqYxI

        Please let me know if you have any questions.
        Last edited by NinjaTrader_MichaelM; 07-15-2015, 06:04 AM.
        Michael M.NinjaTrader Quality Assurance

        Comment


          #5
          Thanks Michael, I'll give this a try.
          mw355

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          85 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          47 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          29 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          67 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X