Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD Crossover ATM Strategy Sizing

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

    MACD Crossover ATM Strategy Sizing

    SeanB,

    This is my first post since purchasing the lifetime license. Please bare with me.

    I'm successfully trading with an Indicator called "UniRenko" on my chart. I imported your MACD Crossover Strategy app today for testing in Sim101 mode. I have it working by checking the box next to Enable.

    I trade the MES micros. Noticing that the strategy only trades 1 contract at a time. The Sim101 balance is $105,000 (very high compared to the small entry)... so I'm trying to understand if I should manually reset the contract amount higher (I believe the MES is at $1.25 per $.25 tick, so only $5 per $1 move) or if the code will automatically scale up as it gathers data? Any guidance is appreciated re: sizing. Want to know if/how to increase contract size in proportion to account size, etc.

    https://ninjatraderecosystem.com/use...cd-cross-over/
    Last edited by finking; 05-14-2020, 09:55 AM.

    #2
    Hello finking,

    Welcome to the NinjaTrader forums!

    This particular strategy you have linked does not use Atm Strategy methods and does not implement a stop loss or profit target.

    The quantity used for each order is the DefaultQuantity, which can be set by the user in the strategy parameters by setting 'Set order quantity' to 'Default Quantity'.
    https://ninjatrader.com/support/help...tegyProperties

    By default if this is not set by the user in the parameters, the quantity will be 1.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you, super helpful. Is it possible then to implement a stop loss or automated trailing stop loss like I use with ATM's?

      Comment


        #4
        Hello finking,

        Thanks for your reply.

        Yes you can add a stop loss using the SetStopLoss() method, please see the help guide here: https://ninjatrader.com/support/help...etstoploss.htm

        You can add a trailing stop although the SetTrailStop() is a very simple trailing stop and does not offer the many options as an ASTm stop strategy does, please see the help guide here for critical use information: https://ninjatrader.com/support/help...ttrailstop.htm

        Please note that, as mentioned in the help guide links, you cannot use a TrailStop on the same order that you are using a StopLoss, if so, the trail stop will be ignored. If you place multiple entry orders, you can assign either a stoploss or a trail stop as you wish. For example if placing two entry orders, by using "signal names" you can assign one entry to a stop loss and the other entry to a trailing stop. For further clarity on signal names, please see: https://ninjatrader.com/support/help...d_approach.htm

        Comment


          #5
          Thanks Paul. This is my first time modifying NinjaScript Code. Is there a reference guide I can study before making changes? I'm interested to learn where to apply the stop loss code and if I should rename the Strategy or just restore the original if it doesn't work during testing.

          Comment


            #6
            Hello finking,

            Below I am providing a link to the help guide in the NinjaScript section.
            https://ninjatrader.com/support/help..._resources.htm
            https://ninjatrader.com/support/help...erence_wip.htm

            Also, below is a link to a forum post with helpful information about getting started with NinjaScript.
            https://ninjatrader.com/support/foru...040#post786040

            Last, below are links to examples of custom exit order trailing movements.
            https://ninjatrader.com/support/foru...596#post806596
            https://ninjatrader.com/support/foru...269#post802269


            I would recommend making a copy of the script and making modifications to the copy.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hello Bob Joy,

              Welcome to the NinjaTrader forums!
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                hi chelz , just came across this 6 months later.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                649 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                370 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                109 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                574 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                576 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X