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 DJ888, 04-16-2024, 06:09 PM
          4 responses
          12 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by terofs, Today, 04:18 PM
          0 responses
          7 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by nandhumca, Today, 03:41 PM
          0 responses
          6 views
          0 likes
          Last Post nandhumca  
          Started by The_Sec, Today, 03:37 PM
          0 responses
          3 views
          0 likes
          Last Post The_Sec
          by The_Sec
           
          Started by GwFutures1988, Today, 02:48 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Working...
          X