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

EMA CrossOver Robot

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

    EMA CrossOver Robot

    Does anyone knows how to program with the Strategy builder a robot that put a market Buy/Sell order once the candle on 2 Min closes above or below the EMA? Looks pretty simple but I am doing something wrong cause there is no way that can program it.

    Thank you

    #2
    Welcome to the forums francosano!

    If you are new to the Strategy Builder, I highly recommend starting out with the Strategy Builder 301 tutorial and to test out our example conditions and actions before doing anything else. From these, I suggest testing simple logic based on these examples before scaling up a larger strategy.

    Strategy Builder 301 — https://www.youtube.com/watch?v=_KQF2Sv27oE

    Conditions examples —https://ninjatrader.com/support/help...on_builder.htm

    Actions examples — https://ninjatrader.com/support/help...us/actions.htm

    You can reference making crossover conditions and indicator to price comparisons from our Conditions examples. For example, you can check if the current market price (Close[0]) crosses above or below your EMA indicator .

    Under Actions examples, please then see how to enter a market position. You can use EnterLong()/EnterShort() to submit a market order.

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    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
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X