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 rhyminkevin, Today, 04:58 PM
    3 responses
    48 views
    0 likes
    Last Post Anfedport  
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X