Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketAnalyzerColumn and email results

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

    MarketAnalyzerColumn and email results

    Hello,

    I would like to perform some End-of-Day analysis using the MarketAnalyzer that would scan many symbols and generate an email with a list of the symbols that meet certain criteria. For instance a group of symbols my have initiated buy triggers and another group may have initiated sell triggers.

    Can this be coded as a MarketAnalyzerColumn? For instance, the OnMarketData() would be used to evaluate Buy / Sell criteria and when Buy criteria met we update a list (e.g. List<MySymbol> MyBuySymbols). But is there a state event that we can use to generate (using the symbols in MyBuySymbols) an email ?

    From a strategy, I believe we could use State == State.Terminated to generate and send the email but does this get called only once upon completing scan of all symbols ?

    Additionally, I would only want this to run once, after the close of market.

    Any examples available that help with such a solution?

    Thanks,


    Last edited by tornadoatc; 08-15-2020, 02:00 PM.

    #2
    Hello tornadoatc,

    From your description this may be something that can be coded as a MarketAnalyzerColumn or as an indicator and added to the Market Analyzer.

    As far as having multiple instances of a script update a single object, this would not be documented or supported, but may be possible using a static class.
    https://ninjatrader.com/support/foru...245#post712245

    When you want the email sent? When the market analyzer is closing? Or do you want to send when some data is processed?

    You could send when the State is DataLoaded or Terminated, but I would expect the would be sent when data is processed.

    When the market is closed, no data would be processing. But you could choose to send on the last market updates just before the market closes. Or you could choose to use a timer to trigger the event after the market is closed (and optionally start the timer just before the end of the session).
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by localappleseed, Today, 02:41 PM
    0 responses
    2 views
    0 likes
    Last Post localappleseed  
    Started by kschuble, Today, 01:16 PM
    2 responses
    12 views
    0 likes
    Last Post kschuble  
    Started by wooofad, Today, 11:34 AM
    0 responses
    15 views
    0 likes
    Last Post wooofad
    by wooofad
     
    Started by tonynt, Today, 10:06 AM
    1 response
    21 views
    0 likes
    Last Post bltdavid  
    Started by Kediil, Yesterday, 09:26 AM
    2 responses
    37 views
    0 likes
    Last Post Kediil
    by Kediil
     
    Working...
    X