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

Share IFTTT how to string values into the Share function

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

    Share IFTTT how to string values into the Share function

    I have successfully added the Share using IFTTT and it sends notification to my IFTTT app but just need some help with the format. Using this line in my strategy which is monitoring account info: Share(@"IFTTT", @"NinjaTrader - MAX Cash", @"Recorded at " ); So the only thing I get in the app is Ninja trader - MAX Cash not the rest of the message. The first value is suppose to be the servicename , that works then it says the message but its looking for 3 possible values in the message. IF anyone has got this to work please let me know how to format it.

    #2
    Looking at the Watchdog Alert on the ecosystem: I got the correct format: Share(@"IFTTT","","",new object[] { "NinjaTrader","MAX DrawDown Recorded at" +Time[0].ToString("HH:mm:ss"),"100500 exceeded"}); Hope this helps anybody else.

    Comment


      #3
      Hello set2win,

      Below is a link to Share() in the help guide.
      https://ninjatrader.com/support/help.../nt8/share.htm

      The arguments supplied are the serviceName, and the message to send. If you would like to set the To, and Subject fields, this can be passed as the object parameter as elements 0 and 1.
      Share(string serviceName, string message, object[] args)

      From the tips:
      2.For the default NinjaTrader share adapters, the "args" array represents the following:
      ▪Mail share service:
      •args[0] = A string representing the email "To" field,
      •args[1] = A string representing the email "Subject" field
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by gotturbo, Yesterday, 06:41 PM
      1 response
      23 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by fromagno, Today, 02:30 AM
      0 responses
      13 views
      0 likes
      Last Post fromagno  
      Started by FrederLksenn, Today, 02:18 AM
      0 responses
      13 views
      0 likes
      Last Post FrederLksenn  
      Started by alphaextractuk, Today, 02:05 AM
      0 responses
      10 views
      0 likes
      Last Post alphaextractuk  
      Started by alphaextractuk, Today, 02:03 AM
      0 responses
      1 view
      0 likes
      Last Post alphaextractuk  
      Working...
      X