Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What's the function which checks the account status

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

    What's the function which checks the account status

    Hi there,

    What i want do to, is to use some function which exits a trade if it is losing too much. Is there something like that?:
    if(LastEntry.ProfitFactor<SomeLevel)
    ExitLastEntry

    (or whatever method/function)

    Thanks.

    #2
    Are you referring to NinjaScript or ATM strategies rGQRGs7?

    To control losses in NinjaScript strategies I would suggest this sample - http://www.ninjatrader-support2.com/...ead.php?t=4084

    For ATM's just use regular stops to control / limit your losses - http://www.ninjatrader-support.com/H...yExample1.html

    Comment


      #3
      Yes, it was about the scripting.
      Cool,
      ta.

      Comment


        #4
        Ok, then this would also be of help - http://www.ninjatrader-support2.com/...ad.php?t=19289

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        86 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X