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
    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by AttiM, 02-14-2024, 05:20 PM
        12 responses
        213 views
        0 likes
        Last Post DrakeiJosh  
        Started by cre8able, 02-11-2023, 05:43 PM
        3 responses
        237 views
        0 likes
        Last Post rhubear
        by rhubear
         
        Started by frslvr, 04-11-2024, 07:26 AM
        8 responses
        116 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        10 responses
        47 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by rocketman7, Today, 09:41 AM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X