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 IanS00, 03-27-2024, 11:24 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
4 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
46 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
6 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
Comment