Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OnFlatten() method

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

  • NinjaTrader_Jesse
    replied
    Hello WHICKED,

    There are not any means to monitor the log output from NinjaScript, you would need to monitor one of the account events like position or order updates to know something had happened.

    Leave a comment:


  • WHICKED
    replied
    In the log file when using Account.Flatten(instrument) there is a log entry that a flatten was executed on instrument - is it possible to monitor for that event?

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    Hello WHICKED,

    The only way that I would be aware of would be to monitor the position updates or the execution updates looking for orders with the name of Close assuming you are using one of the flatten all options.

    Leave a comment:


  • WHICKED
    started a topic OnFlatten() method

    OnFlatten() method

    heres a question - is there a way to see if a OnFlatten event handler is fired or a way to detect it?

    On strategies there is a disablement if the trades are closed etc, but if you are handling trades via a indicator there is not a great way to see if flatten has been attempted.

Latest Posts

Collapse

Topics Statistics Last Post
Started by gabrielrodrigues, Today, 07:38 AM
2 responses
9 views
0 likes
Last Post gabrielrodrigues  
Started by aguison, 06-19-2024, 02:32 PM
5 responses
28 views
0 likes
Last Post aguison
by aguison
 
Started by alifarahani, 04-19-2024, 09:40 AM
15 responses
123 views
0 likes
Last Post NinjaTrader_Jesse  
Started by yossefbn, 03-20-2024, 11:39 PM
3 responses
42 views
0 likes
Last Post NinjaTrader_Jesse  
Started by Orion815, Today, 07:36 AM
1 response
6 views
0 likes
Last Post NinjaTrader_Jesse  
Working...
X