Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator to tweet orders to twitter

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

    indicator to tweet orders to twitter

    Is their an indicator that automatically tweet the openprice target and stoploss?

    #2
    I'd rather go and search for a possibility to post twitter via emails. You could then send and email once an order is filled and tweet it. However, that only works from a strategy.

    Comment


      #3
      Ok thanks. How can I get an email once to order is filled? I filled in the Shared service (screenshot http://prntscr.com/gi6e4v) but I do not get an email once filled only when I have an error on NT. I have testen the email and this works.

      Comment


        #4
        Hello MichaelAlexander,

        Thank you for the post.

        I explain how to send an email when a buy market order is submitted here in your previous post:


        If you wish to receive an email when the order is filled, use Order.Filled in OnOrderUpdate() to achieve this.

        Code:
        bool mailSent = false;
        
        protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string nativeError)
        {
           if (order.Name == "myEntryOrder")
           {
              if (State == State.Realtime)
              {
                 if(mailSent ==  false && order.OrderState == OrderState.Filled) 
                    {
                         SendMail("[email protected]", "Trade Alert", "Order filled");
                    }
              }
           }
        }
        You may also send tweets directly from NinjaTrader.

        Code:
        if (your trigger conditions)
        {
        // sending a screen shot to Twitter
        Share("Twitter", "Check out this setup!", @"C:\MyImages\chart03.PNG");
        }
        Please see the help guide for details and further examples: http://ninjatrader.com/support/helpG...-us/?share.htm

        If we may be of any further assistance, please let us know.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        35 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        12 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        18 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X