Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM to Ninjascript

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

    ATM to Ninjascript

    Hello Team,

    I was looking for combine ATM strategy to Ninja script
    Need your expertise for this

    or plese help me to develope small script on auto trailing stoploss
    like for every 4 tick profit 4 tick stop loss should trail

    Thank You
    Last edited by siddhugaddi; 12-10-2024, 11:12 AM.

    #2
    Hello siddhugaddi,

    There is a sample called SampleATMStrategy that comes with NinjaTrader, you can find it in the strategies folder of the NinjaScript editor.

    Comment


      #3
      Yes i have pasted that entire code and followed one youtube video for that
      and i have created one ATM strategy but the problem is what i was looking for every 4 tick up move my trail sl move up by 4 tick this thing was not happning

      i will share some code if need please let me know any modification




      if (GetAtmStrategyMarketPosition(atmStrategyId) != MarketPosition.Flat)
      AtmStrategyChangeStopTarget(0, Low[0] - 3 * TickSize, "STOP6", atmStrategyId);

      Comment


        #4
        Hello siddhugaddi,

        If some change you made to update the targets is not working you would need to use a print to verify that code is being called and that there are no warnings happening in the output window.

        Comment


          #5
          Thank You for You replay NinjaTrader_Jesse

          Now will keep script aside
          can you please share me the setting for the ATM Strategy that what are the values to set auto trailing stoploss
          for every 4 tick price move up my trail stoploss should move 4 tick move up

          Comment


            #6
            Hello siddhugaddi,

            For the stop settings you would use the offset you wanted, 4 for the profit trigger and 4 for the frequency. You can find some examples in the following page

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            43 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            21 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            30 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            50 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            40 views
            0 likes
            Last Post CarlTrading  
            Working...
            X