Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New strategist

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

    New strategist

    Take it easy on me guys, speak to me like you would a newbie, because that's whay I am
    I'm aware there's quite a lot to learn to master this NinjaScripting. However, before I begin, I'd just like three simple questions answered, even though I understand they could require laboriousness amounts of key stroking...
    Once answered, I believe my path with begin.... just point me down the path

    1) If I have a strategy that I know has hard rules and there is no if's, and's, or's or but's about it, is this something I could 'program' for execution using Ninja Strategy builder?
    IE: (Multi-Time-Frame strategy)
    Requirement 1) Indicator X1, X2, X3 and X4 plot their plots
    Requirement 2) If indicator panels 4 of 7 = true
    Requirement 3) Ema1 & 2 >= (or) <= above/below EMA3,
    3.a) EMA2 & 3 >= (or) <= above/below EMA1,
    Then 4) Execute trade long/short appropriately in accordance with 1-3.a.

    2) If this is possible, how would I go about optimizing the appropiate time bars to execute trades on for step 4? Meaning, if I know my strategy is a multi-time-frame study of Day, 4 hour, 1 hour; how would I figure out the best optimization (most profitable while risking least amount of capital) between the minutes of 1-59?

    3) Please, show me down the path to get me started. Thank you so much!

    #2
    Hello SBMT17,

    Thank you for your note.

    I’m sure this is possible however I’m not sure I understand the logic as you describe it, for example requirement 1, Indicator x1/x2/x3 and x4 plot their plots. Requirement 2, panels 4 of 7=true. You would have to provide more information by what you mean by your first two requirements.

    You could optimize the time frame of the strategy by going to Control Center>New>Strategy Analyzer and selecting Optimize, then checking Optimize Data Series, which will allow you to specify the range you’d like to test. I would suggest testing with the SampleMACrossover strategy preloaded with ninjatrader. I provided a screen shot of how you could set this up.

    We do have resources available to get you started learning NinjaSript to build your strategy.

    I would encourage to see the information and links under Getting Started with NinjaScript


    The following will introduce you to the strategy builder;

    Strategy Builder Intro: 7 Minutes


    Strategy Builder NT8:


    See the NinjaScript Editor Youttube,


    A link to our Help Guide NinjaScript section can be found here,


    Click here to see our NinjaScript Reference Samples:


    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X