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 pibrew, Today, 06:37 AM
        0 responses
        1 view
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        11 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Working...
        X