Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM autotrail error

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

    ATM autotrail error

    NT 7 setting up ATM auto trail.
    See attached image.

    I get this error when entering a trade.
    What am I doing wrong?

    **NT** Error on calling 'OnMarketData' method for strategy 'AutoTrail/eacd531400a343fc9af917931733503a': Value was either too large or too small for an Int32.
    Attached Files

    #2
    What version of NinjaTrader 7 are you using? This can be found under Help -> About (Example: 7.0.1000.X)

    Your 'frequency' and 'profit trigger' properties must have values greater than zero.

    Here is a brief overview of how the different columns in an auto-trail stop strategy work:

    'Stop loss' answers this question -
    • "How far behind the current price would you like your stop loss to trail?"

    'Profit trigger' answers this question -
    • "After how many ticks in profit would you like your auto-trail to begin?"

    'Frequency' answers this question -
    • "How often, in ticks of profit, would you like the auto-trail to update?"

    I would suggest watching this video which covers how to use a stop strategy in NinjaTrader:

    Comment


      #3
      I'm using version 36.

      Apparently the frequency / trigger thing was the issue. When it is greater than zero it works as expected.

      Thanks for the help.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      34 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      128 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      183 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      94 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      138 views
      0 likes
      Last Post cmoran13  
      Working...
      X