Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Regarding reverse at stop option in ATM Strategies

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

    Regarding reverse at stop option in ATM Strategies

    hi ,

    when ever i select a check box reverse at stop option in ATM Strategies , it runs infinetly or contineously until i stop .

    i want to make sure rever at stop should be executed 3 times and close atm strategy itself , is there any option to do this?

    and what is meaning of chase target and chase limit?

    #2
    Hello shankar.deshapande,

    Thank you for your message.


    This will be expected behavior as it will continue to Reverse your position every time the Stop Loss is hit until either your Profit Target is hit instead, you manually Close the trade, or you disable 'Reverse at Stop' from the right-click menu (this option is only available in the SuperDOM or Basic Entry).

    A full overview of this function may be read here in our NinjaTrader 8 Help Guide - ATM Strategies > Auto Reverse along with an overview of the Auto Chase function as well.

    Auto Chase Parameters
    1. Chase Limit The maximum amount that Auto Chase will adjust your limit order price
    2. Chase Enables Auto Chase on your entry orders
    3. Chase if touch Enables Auto Chase if touched on your entry orders
    4. Target Chase Enables Auto Chase if touched on your Profit Target orders

    Please let me know if you have any additional questions.
    Justin D.NinjaTrader Customer Service

    Comment


      #3
      hi ,

      i am facing one more issue with ATM Strategy reverse . when ever reverse happens both below conditions returns true even when there is open position. because of this there will be contineous cumulative postions opened by strategy . there will be reverse position and also new position by strategy , since every time below condition return true , so again new position will be taken , how to avoid this?

      1. Position.MarketPosition == MarketPosition.Flat

      2. (GetAtmStrategyMarketPosition(longatmStrategyId) == Cbi.MarketPosition.Flat))

      in the attached screen shot even though 3 long positions opened cumulatively (which i want to avoid) but Position.MarketPosition retuns FLAT
      Attached Files

      Comment


        #4
        Hello shankar.deshapande,

        Thank you for your reply.

        Executions from ATM Strategies will not have an impact on the hosting NinjaScript strategy position and PnL - the NinjaScript strategy hands off the execution aspects to the ATM, thus no monitoring via the regular NinjaScript strategy methods will take place (also applies to strategy performance tracking).

        This means checking Position.MarketPosition will return flat even if there is an active ATM in place as this checks the calculated strategy position. To check the market position of an active ATM you would need to use #2.

        That being said it looks like it's not finding the ATMs associated with whatever ID is currently in use.

        To understand why that may be happening we would need to see a code example, can you provide one?

        Thanks in advance; I look forward to assisting you further.

        Comment


          #5
          Hi ,

          In below code Position.Quantity.ToString() always returns 0 even the position is open after reverse. When ATM is reversed how to check open position quantity?


          Print(" Position.Quantity.="+Position.MarketPosition.ToStr ing() + " " + Position.Quantity.ToString());
          Print(" Position.MarketPosition == MarketPosition.Flat ="+ (Position.MarketPosition == MarketPosition.Flat )+"=="+Position.MarketPosition);
          Print("(GetAtmStrategyMarketPosition(shortatmStrat egyId) == Cbi.MarketPosition.Flat)"+(GetAtmStrategyMarketPos ition(shortatmStrategyId) == Cbi.MarketPosition.Flat));
          Print("(GetAtmStrategyMarketPosition(longatmStrate gyId) == Cbi.MarketPosition.Flat)"+(GetAtmStrategyMarketPos ition(longatmStrategyId) == Cbi.MarketPosition.Flat));

          // if (MySqueez1.Mom[1]>=MySqueez1.Mom[0] && (BarsSinceEntryExecution() > 3 || BarsSinceEntryExecution() == -1) && Position.MarketPosition == MarketPosition.Flat && (GetAtmStrategyMarketPosition(shortatmStrategyId) == Cbi.MarketPosition.Flat) )
          if (MySqueez1.Mom[1]>=MySqueez1.Mom[0] && (BarsSinceEntryExecution() > 3 || BarsSinceEntryExecution() == -1)
          && (GetAtmStrategyMarketPosition(shortatmStrategyId) == Cbi.MarketPosition.Flat)
          )

          { //EnterShort(Convert.ToInt32(DefaultQuantity));
          Print("closing long and opening short");
          }

          else if((MySqueez1.Mom[1]<MySqueez1.Mom[0]) && (BarsSinceEntryExecution() > 3 || BarsSinceEntryExecution() == -1) && (GetAtmStrategyMarketPosition(longatmStrategyId) == Cbi.MarketPosition.Flat))
          {
          Print("closing short and opening long");
          }

          Comment


            #6
            Hello shankar.deshapande,

            NinjaScript strategy properties like Position don't apply to external ATM strategies. You can use the methods listed in the following link with ATM's, no other strategy properties or methods work with ATMs.



            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sjsj2732, 03-23-2026, 04:31 AM
            0 responses
            151 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            355 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            391 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            182 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            138 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X