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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        61 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X