Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Email Notification Frequency Control

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

    Email Notification Frequency Control

    Hi,

    A few weeks into Live trading, and everything's running smoothly.

    I have just one last grouse, which is the system I have set up to notify myself each time a strategy triggers.

    Each time my strategy finds that conditions match, it

    1) Enters a trade and
    2) Sends an mail

    Thanks to the "Entries per direction" function, my strategy won't go haywire and multiply my risk infinitely. Unfortunately, I can't seem to achieve the same outcome with emails.

    Every time the strategy conditions fall into place, I receive tonnes of emails at one minute intervals. And I can understand why (because the trade conditions are still valid!), but I don't know how I can control this! Any ideas?

    #2
    Hello skyholder84,

    The control for this must be custom coded, commonly through bool flags. Brief example (pseudo code, not everything will compile) of this below:




    Code:
    private bool okToEmail = true; //declare in variables region
    
    if (tradeConditions)
    {
    EnterLong();
    
    if(okToEmail)
    {
    SendMail();
    okToEmail = false;
    }
    }
    
    if (Position.MarketPosition == MarketPosition.Flat) //resets bool back to true when you're flat
    okToEmail = true;
    Last edited by NinjaTrader_RyanM1; 03-29-2011, 10:30 AM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the advice & quick reply! It'll be a bit of a nightmare to implement this, but I'll work on it.

      Comment


        #4
        On this issue, I would like to make a new suggestion for possible implementation in upcoming versions.

        Perhaps there could be an easier way to specify the number of mails which go out? Something like the entriesperdirection function which ensures that only one trade is made. In this case, the control would ensure that only one email goes out per trigger event.

        Just trying my luck. Thanks!

        Comment


          #5
          Thank you for the feature request. We have added it to our internal tracking system with ID: #811
          Ryan M.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,789 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,294 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X