Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy builder ema conditions and actions

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

    Strategy builder ema conditions and actions

    I'm just trying to set up an exit strategy, in the conditions and actions, where I go long and if the close price goes below the 14 ema then I exit my position. I thought I put it in right but I don't know how to properly assign it
    Attached Files

    #2
    Hello mandela1528,

    This would be sending an exit long sell order on every new bar where the market price falls below the EMA 14 of the previous bar (1 bar ago).

    The strategy so far does not have an entry. An entry to take the strategy to a long position would be necessary to exit a long position.

    Note, the strategy will not see any manually submitted positions or orders. The strategy is only able to see orders submitted by the strategy.
    (It would require unlocking the script and using the Addon approach to detect manually submitted orders and/or positions)

    The exit signal name is LongEntry. I think you are wanting to have this be the From entry signal of the entry and not the signal name of the exit.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Ok now I understand thank you so much

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X