Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

using price Value in a strategy

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

    using price Value in a strategy

    Hi,

    how do i use the price value in a strategy instead of an indicator?

    So,if the price is @ 2020 and i wan the strategy to buy whe the Close is above 2030,or sell when the Close is below 2010?I know it can be done via lmt orders,but the strategy i use additionally track for other things.

    Thanks!
    Last edited by outsource; 03-26-2015, 05:19 PM.

    #2
    Hello outsource,

    You would continue to use Close price series and compare that to whatever you are using to track the price.

    Example -
    if(Close[0] > SMA(14)[0])
    EnterLong();

    http://www.ninjatrader.com/support/h...html?close.htm
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Cal View Post
      Hello outsource,

      You would continue to use Close price series and compare that to whatever you are using to track the price.

      Example -
      if(Close[0] > SMA(14)[0])
      EnterLong();

      http://www.ninjatrader.com/support/h...html?close.htm
      Hi Cal.

      no,i use nothing to compare with.I`d need the price values solely

      Comment


        #4
        So,is there a way to put the price as conditions for entry?

        Say,if price@2020 - go long
        if price@2010 - go short

        ?

        Comment


          #5
          Hello outsource,

          Thank you for your response.

          For the price call Close[0]. So for your two conditions:
          Code:
          if(Close[0] == 2020)
          EnterLong();
          if(Close[0] == 2010)
          EnterShort();
          For information on Close please visit the following link: http://www.ninjatrader.com/support/h.../nt7/close.htm

          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