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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        26 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X