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 NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            54 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            130 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            72 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            44 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            49 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X