• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.


No announcement yet.

Partner 728x90


Martingale Strategy in Strategy Builder

  • Filter
  • Time
  • Show
Clear All
new posts

  • tradersgrail
    started a topic Martingale Strategy in Strategy Builder

    Martingale Strategy in Strategy Builder

    Anyone have any idea how to create a martingale strategy in the strategy builder?

  • NinjaTrader_Kate
    Hello tradersgrail,

    Thank you for your post.

    From my understanding, a martingale strategy has to do with a strategy that has you double your position after a losing trade. This may be difficult in the strategy builder, but depending on the logic you use may be a possibility. It would almost certainly be easier to do by unlocking the code and actually programming the strategy directly using NinjaScript.

    If you know the logic you would like and can write this as psuedo code in plain English, we can assist you in writing this as logic in C#. This thread will also remain open for any community members that know of an existing strategy with this functionality or who would like to create this as a convenience to you.

    I'm providing a link to a pre-recorded set of videos 'Strategy Builder 301' and 'NinjaScript Editor 401' for you to view at your own convenience.
    Strategy Builder 301
    NinjaScript Editor 401

    If you would like to take on learning NinjaScript, we have a fully documented help guide which will help you get started. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.
    A link to our Help Guide can be found below: https://ninjatrader.com/support/help...injascript.htm

    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: https://ninjatrader.com/support/help..._resources.htm

    You will find Reference Samples online as well as some Tips and Tricks for both indicators and strategies:
    Click here to see our NinjaScript Reference Samples: https://ninjatrader.com/support/help...ce_samples.htm
    Click here to see our NinjaScript Tips: https://ninjatrader.com/support/help...en-us/tips.htm

    These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

    There is also a growing library of user submitted custom indicators (100+) that can be downloaded from the NinjaTrader Ecosystem User App Share page: https://ninjatraderecosystem.com/user-app-share/ However, a cursory search did not find an existing Martingale strategy available.

    Please let us know if we may be of further assistance to you.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Leave a comment:

Latest Posts


Topics Statistics Last Post
Started by Leope, Today, 03:15 AM
0 responses
Last Post Leope
by Leope
Started by Frook1951, Today, 03:09 AM
0 responses
Last Post Frook1951  
Started by unlobotrader, Today, 02:46 AM
0 responses
Last Post unlobotrader  
Started by greg6622, Today, 01:26 AM
0 responses
Last Post greg6622  
Started by Splex, Today, 12:04 AM
0 responses
Last Post Splex
by Splex