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

Sendmail should also work on Historical Data.

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

    Sendmail should also work on Historical Data.

    NT Users,

    I know that Sendmail only works in Live mode because if it works on historical data, it will send too many emails.

    However, I am advocating that NT should consider giving the user the option to use Sendmail on historical data in addition to Live data.

    This could be achieved with an additional argument:

    Sendmail(1,"from","to" .....) Live mode
    Sendmail(0,"from","to" .....) Historical mode

    Reasons:

    1. Much less confusion why Sendmail doesn't work as expected.
    2. Easier to test scripts in both historical data and Live data
    3. Let the users chose how they want to use Sendmail instead of being locked into Live mode.

    If anyone else who has thoughts or comments regarding this request, please feel free to chime in.

    Regards.
    Last edited by rocknroll; 11-06-2008, 12:48 AM.

    #2
    hey rock,

    For the time being you may want to test your sendmail logic as such.

    1. Make a simple indicator that tests the sendmail function call. Put that on a tick chart and check to see if mail is being sent properly with your parameters.
    2. Write a function that wraps SendMail and DrawArrowUp. Within the function use DrawArrowUp if(Historical), otherwise use SendMail. Then, use this function where you would want to have your SendMail calls. You will get an arrow while backtesting in place of where I mail should be sent.

    just some thoughts
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      Good idea Logik,

      I have done this in the mean time, however, the email that is being sent is triggering off another series of external event that is dependent on the email.

      Cheers for your input.

      Comment


        #4
        well for that can't you simulate the email by sending it manually?
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment


          #5
          Thank you for your suggestion. We will put it on the list of future considerations.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Great Josh,

            This for sure will make for a lot less work for Support... no need to ever explain to each and every customer who wants to use Sendmail that it ONLY works on Live data.

            Cheers

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Haiasi, 04-25-2024, 06:53 PM
            2 responses
            17 views
            0 likes
            Last Post Massinisa  
            Started by Creamers, Today, 05:32 AM
            0 responses
            5 views
            0 likes
            Last Post Creamers  
            Started by Segwin, 05-07-2018, 02:15 PM
            12 responses
            1,786 views
            0 likes
            Last Post Leafcutter  
            Started by poplagelu, Today, 05:00 AM
            0 responses
            3 views
            0 likes
            Last Post poplagelu  
            Started by fx.practic, 10-15-2013, 12:53 AM
            5 responses
            5,408 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Working...
            X