Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy, Stop Strategy -Trailing Stop - Auto BE

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

    ATM Strategy, Stop Strategy -Trailing Stop - Auto BE

    Does anyone have a strategy with all these working together. I need to understand the logic behind the numbers to use (preferable Forex, but any logical explanation in any market will do). Are there any limitations?
    Last edited by FredMorgan; 09-27-2009, 06:00 AM.

    #2
    Hello,

    There are always limitations, but generally it takes most inputs. I suggest looking at this link and all of the associated pages:


    The connect to: File>connect>Simulated data feed, and practice.

    Also you can go to an online event that goes through all of this:
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by FredMorgan View Post
      Does anyone have a strategy with all these working together. I need to understand the logic behind the numbers to use (preferable Forex, but any logical explanation in any market will do). Are there any limitations?
      Did you ever get one? There are no samples of actual working strategies that have ATM code and order conditions attached. If you did could I see the code please?

      Comment


        #4
        Hello,

        Unfortunately we don't have an article that covers all the logic behind ATM strategies.

        We do have the built in SampleATMStrategy which provides help on integrating an ATM strategy into your NinjaScript automated strategy.

        When going this route, the reference sample below can help:
        Getting PnL from an ATM strategy.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_RyanM View Post
          Hello,

          Unfortunately we don't have an article that covers all the logic behind ATM strategies.

          We do have the built in SampleATMStrategy which provides help on integrating an ATM strategy into your NinjaScript automated strategy.

          When going this route, the reference sample below can help:
          Getting PnL from an ATM strategy.
          Hello, thanks for the response. I was looking for an actual example of a working strategy with an ATM buy condition in it. I've used the in built sample to cobble together some strategies but I usually get various errors in the log. It runs the strat but it's not clean. Was hoping to get code for one that works with no errors and then just modify it with my buy conditions.

          I appreciate the response and your time though! Thanks.

          Comment


            #6
            Here's a reference sample that discusses how to code some of the ATM strategy concepts:

            Modifying the price of stop loss and profit targets.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Thanks for the link.

              Comment


                #8
                Help please....

                Does anyone there who could help in this problem. I want to call ATM strategy template in a ninja script and I have already a ATM template in the Super DOM now my problem is it will work I try to backtest it. Here is my code below:

                if (CrossAbove(SMA(SMA1), SMA(SMA2), 1) && orderIdL.Length == 0 && atmStrategyIdL.Length == 0)
                {
                atmStrategyIdL = GetAtmStrategyUniqueId();
                orderIdL = GetAtmStrategyUniqueId();
                AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderIdL, "CL_Scalp", atmStrategyIdL);
                }
                else if (CrossBelow(SMA(SMA1), SMA(SMA2), 1) && orderIdS.Length == 0 && atmStrategyIdS.Length == 0 )
                {
                atmStrategyIdS = GetAtmStrategyUniqueId();
                orderIdS = GetAtmStrategyUniqueId();
                AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Market, 0, 0, TimeInForce.Day, orderIdS, "CL_Scalp", atmStrategyIdS);
                }

                Thanks in advance.
                Last edited by luxurious_04; 08-26-2010, 02:03 AM.

                Comment


                  #9
                  Please post your issues in one thread only, I already replied to others you opend on this topic - thanks.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  657 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  373 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
                  579 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X