Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Percent Above/Below Price Crossing

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

    Percent Above/Below Price Crossing

    Instead of going long when a price (close) crosses above a moving average, is there a way in the Strategy Wizard to setup when the price (close) crosses above a moving average by a certain percentage, then go long.

    Example: The close crosses above a moving average at 1000, I wish to go long when the price is 2% above that point or 1020.

    #2
    StarBright2009, unfortunately this would have to be coded out.
    AustinNinjaTrader Customer Service

    Comment


      #3
      I used the Wizard to go long when the close crosses above the moving average. What changes must I make to the generated code (See Attachment) to go long when close is 2% above the crossing point.
      Attached Files

      Comment


        #4
        StarBright2009, unfortunately we don't provide custom coding services, a NinjaScript consultant could be a valuable resource here - http://www.ninjatrader.com/webnew/pa...injaScript.htm

        Generally, you would save your the price value at the cross over to a variable then compare it to the current, most recent Close price to determine when it's higher by 2% to trigger an entry for example.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Doxxxx, Today, 01:24 AM
        0 responses
        2 views
        0 likes
        Last Post Doxxxx
        by Doxxxx
         
        Started by ezekilany, Today, 01:10 AM
        0 responses
        3 views
        0 likes
        Last Post ezekilany  
        Started by usjavaburn, Today, 12:59 AM
        0 responses
        3 views
        0 likes
        Last Post usjavaburn  
        Started by heatherjmarshalls, Today, 12:56 AM
        0 responses
        2 views
        0 likes
        Last Post heatherjmarshalls  
        Started by Nicholewatkinsi, Yesterday, 10:53 PM
        0 responses
        6 views
        0 likes
        Last Post Nicholewatkinsi  
        Working...
        X