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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        253 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        164 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        169 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        251 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        203 views
        0 likes
        Last Post CarlTrading  
        Working...
        X