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!
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
NinjaTrader
indicator to tweet orders to twitter
Collapse
X
-
indicator to tweet orders to twitter
Is their an indicator that automatically tweet the openprice target and stoploss?Tags: None
-
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
-
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"); } } } }
Code:if (your trigger conditions) { // sending a screen shot to Twitter Share("Twitter", "Check out this setup!", @"C:\MyImages\chart03.PNG"); }
If we may be of any further assistance, please let us know.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
43 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
3 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
||
Started by Conall, Today, 12:06 AM
|
0 responses
5 views
0 likes
|
Last Post
by Conall
Today, 12:06 AM
|
||
Started by proptradingshop, 03-21-2024, 09:50 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 12:02 AM | ||
Started by mly916, Yesterday, 09:48 PM
|
1 response
14 views
0 likes
|
Last Post Yesterday, 11:54 PM |
Comment