Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market entry and ema exit

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

    Market entry and ema exit

    I am trying to use the Wizzard and create a Market Price Entry and an EMA 5/6 exit.
    The Idea is that the desired EMA crossover entry was not setup and it is now too late to enter using that strategy. This is to be an alternate entry related to Market price.

    Is the following correct for a LONG MARKET entry? I do not think I can back test it.

    Step one: "IF" EntryPrice>=GetCurrentAsk()
    "DO" EnterLong(DefaultQuantity." ")

    Step two: CrossBelow(EMA(5),EMA(6),1)
    ExitShort(" ". " ")

    If I enter at MARKET would this get me in going long and then out when the crossover occurs? I need a stop for this entry if it were to reverse immediately, but I honestly don't know how. If it gets me in I can monitor it until the profit is high enough to allow the crossover to exit normally

    #2
    You would want to do an ExitLong() order not an ExitShort() order to exit your long position.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    57 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    30 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    41 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Working...
    X