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 Taddypole, 04-26-2024, 02:47 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Eduardo  
        Started by futtrader, 04-21-2024, 01:50 AM
        6 responses
        58 views
        0 likes
        Last Post futtrader  
        Started by sgordet, Today, 11:48 AM
        0 responses
        4 views
        0 likes
        Last Post sgordet
        by sgordet
         
        Started by Trader146, Today, 11:41 AM
        0 responses
        5 views
        0 likes
        Last Post Trader146  
        Started by jpapa, 04-23-2024, 07:22 AM
        2 responses
        21 views
        0 likes
        Last Post rene69851  
        Working...
        X